Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Debugger Problem
Debugger Problem [message #150984] Wed, 10 August 2005 05:34 Go to next message
Eclipse UserFriend
Originally posted by: stefanm.uniblue.net

Hi there,

I have a problem debugging my application. I found a related post here
(26.07. by Mark Fortner) that seems to describe something similar.

Environment:
------------
Eclipse v3.1 (Build ID - I20050513-1415)
CDT v3.0.0 RC3
Windows XP SP2
MinGW/GCC 3.4.2

Problem:
--------
.: I set a single breakpoint and begin debug process.
.: The debugger starts at main() and waits for input
.: Click on Resume to allow debugger to run to next breakpoint
.: Debugger halts on arbitrary position within a function
.: I get the following reference in the Debug view:

Thread[1](Suspended: Signal 'SIGSEGV' received. Description:
Segmentation
fault.

.: Any attempt to Step Over, Step In or Resume results in the debugger
to remain at the current position.
.: Trying a number of Step Over, Step In and Resume (does not matter
which
you press) the debugger will simply terminate gracefully.

This problem occured a number of times and seems to be shifting, giving
the impression of a linker fault. Sometimes it is resolved after modifying
the code....

Funny enough no problem is reported if the application is simply run and
not debugged...

I have a screenshot, but don't know how to attach it.

Also in amendment to aboves' post reference, the path of my project is
c:\eclipse\workspace\storage_tape_test and does not contain any spaces.

Any input helps,

Stefan
Re: Debugger Problem [message #150990 is a reply to message #150984] Wed, 10 August 2005 05:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: stefanm.uniblue.net

Amendment:

I modified the code to see what happens and after some more stepping
through the GDB crashed...
Re: Debugger Problem [message #151010 is a reply to message #150984] Wed, 10 August 2005 11:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikhailk.qnx.com

This means a memory violation happens during the execution of your program.
Stepping further is meaningless, try to investigate the current state to
find the corrupt pointer.

"Stefan" <stefanm@uniblue.net> wrote in message
news:fd3782bc02ce76efbef601ca49edf474$1@www.eclipse.org...
> Hi there,
>
> I have a problem debugging my application. I found a related post here
> (26.07. by Mark Fortner) that seems to describe something similar.
>
> Environment:
> ------------
> Eclipse v3.1 (Build ID - I20050513-1415)
> CDT v3.0.0 RC3
> Windows XP SP2
> MinGW/GCC 3.4.2
>
> Problem:
> --------
> .: I set a single breakpoint and begin debug process.
> .: The debugger starts at main() and waits for input
> .: Click on Resume to allow debugger to run to next breakpoint
> .: Debugger halts on arbitrary position within a function
> .: I get the following reference in the Debug view:
>
> Thread[1](Suspended: Signal 'SIGSEGV' received. Description:
> Segmentation
> fault.
>
> .: Any attempt to Step Over, Step In or Resume results in the debugger
> to remain at the current position.
> .: Trying a number of Step Over, Step In and Resume (does not matter
> which
> you press) the debugger will simply terminate gracefully.
>
> This problem occured a number of times and seems to be shifting, giving
> the impression of a linker fault. Sometimes it is resolved after modifying
> the code....
>
> Funny enough no problem is reported if the application is simply run and
> not debugged...
>
> I have a screenshot, but don't know how to attach it.
>
> Also in amendment to aboves' post reference, the path of my project is
> c:\eclipse\workspace\storage_tape_test and does not contain any spaces.
>
> Any input helps,
>
> Stefan
>
Re: Debugger Problem [message #151041 is a reply to message #151010] Thu, 11 August 2005 04:23 Go to previous message
Eclipse UserFriend
Originally posted by: stefanm.uniblue.net

Hi Mikhail,

it was a pointer issue. I guess I didn't see it because the code still
used to run (debug) on Borland. I had to port the code as Borland has
problems compiling templates. My guess is that Borland captures some of
those pointer issues and simply 'ignores' them... kind of like a safety
net.

I fixed the issue and it runs ok now.

Thanks

Mikhail Khodjaiants wrote:

> This means a memory violation happens during the execution of your program.
> Stepping further is meaningless, try to investigate the current state to
> find the corrupt pointer.

> "Stefan" <stefanm@uniblue.net> wrote in message
> news:fd3782bc02ce76efbef601ca49edf474$1@www.eclipse.org...
>> Hi there,
>>
>> I have a problem debugging my application. I found a related post here
>> (26.07. by Mark Fortner) that seems to describe something similar.
>>
>> Environment:
>> ------------
>> Eclipse v3.1 (Build ID - I20050513-1415)
>> CDT v3.0.0 RC3
>> Windows XP SP2
>> MinGW/GCC 3.4.2
>>
>> Problem:
>> --------
>> .: I set a single breakpoint and begin debug process.
>> .: The debugger starts at main() and waits for input
>> .: Click on Resume to allow debugger to run to next breakpoint
>> .: Debugger halts on arbitrary position within a function
>> .: I get the following reference in the Debug view:
>>
>> Thread[1](Suspended: Signal 'SIGSEGV' received. Description:
>> Segmentation
>> fault.
>>
>> .: Any attempt to Step Over, Step In or Resume results in the debugger
>> to remain at the current position.
>> .: Trying a number of Step Over, Step In and Resume (does not matter
>> which
>> you press) the debugger will simply terminate gracefully.
>>
>> This problem occured a number of times and seems to be shifting, giving
>> the impression of a linker fault. Sometimes it is resolved after modifying
>> the code....
>>
>> Funny enough no problem is reported if the application is simply run and
>> not debugged...
>>
>> I have a screenshot, but don't know how to attach it.
>>
>> Also in amendment to aboves' post reference, the path of my project is
>> c:eclipseworkspacestorage_tape_test and does not contain any spaces.
>>
>> Any input helps,
>>
>> Stefan
>>
Previous Topic:crash while linking my project
Next Topic:Debug crashes when selecting object in variables tab
Goto Forum:
  


Current Time: Sat Jun 21 14:02:58 EDT 2025

Powered by FUDForum. Page generated in 0.04697 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top