* "SIGSEGV, Segmentation fault." message on a standard program
@ 2006-02-09 8:36 Frederic Kwiatkowski
2006-02-09 9:28 ` Jim Blandy
0 siblings, 1 reply; 3+ messages in thread
From: Frederic Kwiatkowski @ 2006-02-09 8:36 UTC (permalink / raw)
To: gdb
Hello all
I'm actually trying to debug a basic application to a remote host.
So i've crosscompiled my application, launch gdbserver 6.4 on my
remote host and gdbtui 6.4 or gdb 6.4on my local host
So i can see the code source of the application and place break point
but if i try to use the "continue" function, the system send me the
following message:
>(>gdb) continue
>>Continuing.
>>
>>Program received signal SIGSEGV, Segmentation fault.
>>0x4000e54c in ?? ()
Next, if i retry to launch the continue function, i've got the following:
>>(gdb) continue
>vContinuing.
>>
>>Program terminated with signal SIGSEGV, Segmentation fault.
>>The program no longer exists.
and the server is exited:
>>Listening on port 2345
>>Remote debugging from host 192.168.0.250
>>
>>Child terminated with signal = b
>>
>>Child terminated with signal = 0xb
>>GDBserver exiting
So i've tried to debug the application on my desktop computer, with no
remote (gdbserver and gdb hosted on the desktop), and then, everything
is right.
I've compiled gdbserver and the application with arm-linux-gcc 3.4.4
and compiled gdb and gdbtui with the arm-linux target option
Does any body have an idea about it?
With kind of regards
Frederic Kwiatkowski
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: "SIGSEGV, Segmentation fault." message on a standard program
2006-02-09 8:36 "SIGSEGV, Segmentation fault." message on a standard program Frederic Kwiatkowski
@ 2006-02-09 9:28 ` Jim Blandy
2006-02-09 9:36 ` Frederic Kwiatkowski
0 siblings, 1 reply; 3+ messages in thread
From: Jim Blandy @ 2006-02-09 9:28 UTC (permalink / raw)
To: Frederic Kwiatkowski; +Cc: gdb
On 2/9/06, Frederic Kwiatkowski <stagedrt@gmail.com> wrote:
> So i've tried to debug the application on my desktop computer, with no
> remote (gdbserver and gdb hosted on the desktop), and then, everything
> is right.
What happens when you run your program on the arm-linux system,
without gdbserver?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: "SIGSEGV, Segmentation fault." message on a standard program
2006-02-09 9:28 ` Jim Blandy
@ 2006-02-09 9:36 ` Frederic Kwiatkowski
0 siblings, 0 replies; 3+ messages in thread
From: Frederic Kwiatkowski @ 2006-02-09 9:36 UTC (permalink / raw)
To: Jim Blandy; +Cc: gdb
If i run the program on the arm-linux system, everything goes right,
that's why i don't understand the reason of the segmentation fault:
# /mnt/nfs/frk/essai_gdb/essai_gdb
Enter first number : 1
Enter second number : 2
The sum is : 3
#
2006/2/9, Jim Blandy <jimb@red-bean.com>:
> On 2/9/06, Frederic Kwiatkowski <stagedrt@gmail.com> wrote:
> > So i've tried to debug the application on my desktop computer, with no
> > remote (gdbserver and gdb hosted on the desktop), and then, everything
> > is right.
>
> What happens when you run your program on the arm-linux system,
> without gdbserver?
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-02-09 9:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-09 8:36 "SIGSEGV, Segmentation fault." message on a standard program Frederic Kwiatkowski
2006-02-09 9:28 ` Jim Blandy
2006-02-09 9:36 ` Frederic Kwiatkowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox