Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353898 - Once debugger catches a segmentation fault, it does not debug the same code again
Summary: Once debugger catches a segmentation fault, it does not debug the same code a...
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug (show other bugs)
Version: 6.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: cdt-debug-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-04 10:38 EDT by gokkurt CLA
Modified: 2020-09-04 15:19 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gokkurt CLA 2011-08-04 10:38:59 EDT
Build Identifier: 20100218-1602

When the debugger catches a segmentation fault, at the proceeding debugging trials, the debugger is not able to create variables and at a line where a automatic local variable is declared, debugger always the following message:

<terminated>gdb/mi (8/4/11 4:02 PM) (Exited. Signal 'SIGSEGV' received. Description: Segmentation fault.)	

and does work unless eclipse is restarted. After the restart it debugs successfully. 

Reproducible: Always
Comment 1 Marc Khouzam CLA 2011-08-05 09:11:46 EDT
What version are you using?
Comment 2 gokkurt CLA 2011-08-08 04:10:32 EDT
The version is: 1.2.2.20100209-1511
Comment 3 gokkurt CLA 2011-08-08 08:47:20 EDT
(In reply to comment #1)
> What version are you using?

The version is: 1.2.2.20100209-1511
Comment 4 Marc Khouzam CLA 2011-08-22 11:20:41 EDT
(In reply to comment #3)
> (In reply to comment #1)
> > What version are you using?
> 
> The version is: 1.2.2.20100209-1511

Where did you get this version number?

Are you running Helios or Indigo? Or older?

Can you give an example program to reproduce and the exact procedure?
Comment 5 gokkurt CLA 2011-08-23 04:50:28 EDT
For example the following code results in the following situation when the debugger is run. At first trial in the debugger, I instantly get the following message in the console pane:

.gdbinit: No such file or directory.
Reading symbols from /home/burtecin/workspace/reverser/Debug/reverser...done.

all of the local variables are defined successfully.

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int stk2fast(void); 

int main(int argc,char *argv[])
{
	int i;
	char *cpBUF;
	FILE *fp[3];
	cpBUF = NULL;
	i = 100;
	i *= 100;
	printf("%d\n",i);
	printf("Bitti\n",i);
	return 1;
};

int stk2fasta(void)
{

	return 1;
};

And at the end of debugging after return 1 line, I get the following message:

"Can't find a source file at "libc-start.c" 
Locate the file or edit the source lookup path to include its location."

At the subsequent debugger trials, I see that in the variable pane, no local variables are allocated, at the first step over click I get the message I mentioned earlier. However, a restart of eclipse resolves this problem.

I got the version number from Help->About Eclipse->Installation details. I think, I use Galileo (?).