Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 361765 - Writing C files crashes eclipse on Win XP x64 with x86_64 Indigo SR1 and CDT.
Summary: Writing C files crashes eclipse on Win XP x64 with x86_64 Indigo SR1 and CDT.
Status: CLOSED DUPLICATE of bug 333227
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: 8.0   Edit
Hardware: PC Windows XP
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Anton Leherbauer CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-23 22:16 EDT by Missing name CLA
Modified: 2011-10-24 08:11 EDT (History)
1 user (show)

See Also:


Attachments
Error log generated by Eclipse (14.37 KB, text/plain)
2011-10-24 07:28 EDT, Missing name CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Missing name CLA 2011-10-23 22:16:27 EDT
Build Identifier: 20110916-0149 

Seems silly but I've tried to several times to use Indigo today, on my first attempt, it failed when I tried to use my current workspace (created with Galileo 3.5.2 x86 with CDT) and would fail every time I tried to open Indigo after that.  My next attempt I tried importing the projects one at a time into a new workspace, which would crash on select projects, but would recover when those projects were deleted from the workspace.  My final attempt before submitting this report was re-writing the code by hand.

This is what I got in:

charIO.h ----------------------------------------------------------------------
#ifndef CHAR_IO
#define CHAR_IO

typedef unsigned short uShort;

/* Reads the unsigned character from the screen at the give location. */
unsigned char readCharU( int, int );

/* Reads the signed character from the screen at the give location. */
char readChar( int, int );

/* Reads the attribute at the given location on screen. */
uShort readAttrib( int, int );

/* Writes attributes to a line of locations on screen. */
void writeAttrib( int, int, int, int, uShort );

/* Writes a string of unsigned characters to the given location on screen. */
void writeCharU( int, int, int, const unsigned char* );

/* Writes a string of signed characters to the given location on screen. */
void writeChar( int, int, int, const char* );

#endif
-------------------------------------------------------------------- charIO.h
charIO.c --------------------------------------------------------------------
/* Standard headers */
<windows.h>

/* Project headers */
#include "charIO.h"
-------------------------------------------------------------------- charIO.c

Indigo crashed when I tried to save charIO.c after including its header.

Reproducible: Always

Steps to Reproduce:
1.Write header
2.Include header in same named source file
3.Save immediately after inclusion of header.
Comment 1 Anton Leherbauer CLA 2011-10-24 02:32:31 EDT
Please attach the JVM crash log file, usually named hs_err_pid<pid>.log and located in the root of the installation.
Comment 2 Missing name CLA 2011-10-24 07:28:02 EDT
Created attachment 205802 [details]
Error log generated by Eclipse
Comment 3 Anton Leherbauer CLA 2011-10-24 08:11:48 EDT
(In reply to comment #2)
> Error log generated by Eclipse

Note that the log file is created by the JVM.
This looks very much like bug 333227.  Please try the workaround mentioned there.

*** This bug has been marked as a duplicate of bug 333227 ***