public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Re: gdbserver multithreaded debugging
@ 2005-10-20  5:36 olivier.carmona@ieee.org
  0 siblings, 0 replies; 3+ messages in thread
From: olivier.carmona@ieee.org @ 2005-10-20  5:36 UTC (permalink / raw)
  To: gdb

Thanks Daniel and Lim.

Here are more information as requested:

We are using:
GLIBC 2.3.3
Thread : LinuxThread 0.10
GDB 6.3

When we set the breakpoint in the main thread: program is
running correctly and we can watch the main program.

But as soon as we set the breakpoint in a thread, gdb server
terminates with a signal "Killing inferior" and stops,
whereas gdb stops printing the following message:
 "Program terminated with signal SIGKILL, Killed".
 "The program no longer exists."
At this point, of course, when we do a backtrace in gdb, we
got a corrupted stack.

We checked hat all shared libraries exists on target and are
loaded correctly. Moreover, libthread_db.so exists on the
target side and we tried copying on the local host using set
solib-absolute-prefix.

We have a slight difference between a GDB 6.3 2005.3.17 and
a GDB 6.3.50, the only difference is that gdb prints the
following message in place:
" Program received signal SIGSEGV, Segmentation fault."
"0x00000000 in ?? ()"

Olivier Carmona

------------ ALICE HAUT DEBIT A 29,95 EUR/MOIS ------------
ALICEBOX, l'offre Internet tout en 1 : ADSL, téléphonie, modem Wi-Fi et en exclusivité
la hotline gratuite 24h/24 ! Soumis à conditions. Pour en profiter cliquez ici http://abonnement.aliceadsl.fr


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gdbserver multithreaded debugging
  2005-10-18 13:08 olivier.carmona@ieee.org
@ 2005-10-18 13:19 ` Daniel Jacobowitz
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel Jacobowitz @ 2005-10-18 13:19 UTC (permalink / raw)
  To: olivier.carmona@ieee.org; +Cc: gdb

On Tue, Oct 18, 2005 at 03:08:16PM +0200, olivier.carmona@ieee.org wrote:
> Dear All,
> 
> I am trying to use gdbserver to remotely debug a
> multithreaded application.
> 
> Target is a ARM9, running Linux v2.6.10; gdbserver from the
> 6.3 release tarball and built on local host.
> 
> Local host is a Pentium IV, running Fedora Core 3, gdb v 6.3.
> 
> I get a SIGKILL as soon as a thread starts, execution stops
> on gdb side, and on gdbserver side it also stops showing a
> Terminated: Killing Inferior.

You should figure out where the SIGKILL comes from, first.

-- 
Daniel Jacobowitz
CodeSourcery, LLC

^ permalink raw reply	[flat|nested] 3+ messages in thread

* gdbserver multithreaded debugging
@ 2005-10-18 13:08 olivier.carmona@ieee.org
  2005-10-18 13:19 ` Daniel Jacobowitz
  0 siblings, 1 reply; 3+ messages in thread
From: olivier.carmona@ieee.org @ 2005-10-18 13:08 UTC (permalink / raw)
  To: gdb

Dear All,

I am trying to use gdbserver to remotely debug a
multithreaded application.

Target is a ARM9, running Linux v2.6.10; gdbserver from the
6.3 release tarball and built on local host.

Local host is a Pentium IV, running Fedora Core 3, gdb v 6.3.

I get a SIGKILL as soon as a thread starts, execution stops
on gdb side, and on gdbserver side it also stops showing a
Terminated: Killing Inferior.

We tried a few things:

- we forced to ignore the SIGKILL and/or the SIG32 signals,

- we forced loading the symbol from shared library on the
host side (thanks to solib-absolute-prefix and
solib-search-path, library copied: libpthread, ldlinux, libc),

- we forced loading a local copy of libthread_db.so (using
also solib-absolute-prefix and solib-search-path),

...,but nonetheless we got not solution.

I don't see this problem while debugging in
non-multithreaded application.

Is there anything I can do to solve the problem I am
experiencing with gdbserver?

__
Olivier Carmona





------------ ALICE HAUT DEBIT A 29,95 EUR/MOIS ------------
ALICEBOX, l'offre Internet tout en 1 : ADSL, téléphonie, modem Wi-Fi et en exclusivité
la hotline gratuite 24h/24 ! Soumis à conditions. Pour en profiter cliquez ici http://abonnement.aliceadsl.fr


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-10-20  5:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-20  5:36 gdbserver multithreaded debugging olivier.carmona@ieee.org
  -- strict thread matches above, loose matches on Subject: below --
2005-10-18 13:08 olivier.carmona@ieee.org
2005-10-18 13:19 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).