public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* dl_debug.c????  Stopping on that code???
@ 2003-07-31 18:52 Frank
  2003-07-31 20:28 ` Keith Seitz
  0 siblings, 1 reply; 3+ messages in thread
From: Frank @ 2003-07-31 18:52 UTC (permalink / raw)
  To: insight

Trying for the first time to run insight. No matter what I seem to do it
stops on this dl_debug.c????  that is not part (or at least I did not
knowingly add to my program). And it listed in assembly, when I continue
I get a segmentation error. The code runs fine out side insight. And it
also runs fine in gdb on another linux on V 5.0 gdb. ny thoughts?

I tried it in native gdb, simular problems:
[fcg@kw4 parser]$ gdb parser_test
GNU gdb 5.3
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i686-pc-linux-gnu"...
(gdb) set args s
(gdb) r
Starting program: /home/fcg/Gecka/parser/parser_test s
Error while reading shared library symbols:
Cannot find new threads: generic error
Cannot find user-level thread for LWP 30703: no LWP to satisfy query
(gdb) bt
#0  _dl_debug_state () at dl-debug.c:56
#1  0x40010197 in _dl_sysdep_start (start_argptr=0xbffec2c0,
    dl_main=0x40002520 <dl_main>) at ../sysdeps/generic/dl-sysdep.c:208
#2  0x40002441 in _dl_start_final (arg=0xbffec2c0,
bootstrap_map_p=0xbffec08c,
    start_time=493332180866518) at rtld.c:263
#3  0x40002233 in _dl_start () at rtld.c:216
Current language:  auto; currently c
(gdb)

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

* Re: dl_debug.c????  Stopping on that code???
  2003-07-31 18:52 dl_debug.c???? Stopping on that code??? Frank
@ 2003-07-31 20:28 ` Keith Seitz
  2003-07-31 22:22   ` Frank
  0 siblings, 1 reply; 3+ messages in thread
From: Keith Seitz @ 2003-07-31 20:28 UTC (permalink / raw)
  To: Frank; +Cc: insight

On Thu, 2003-07-31 at 11:52, Frank wrote:
> I tried it in native gdb, simular problems:
> [fcg@kw4 parser]$ gdb parser_test
> GNU gdb 5.3
> This GDB was configured as "i686-pc-linux-gnu"...
> (gdb) set args s
> (gdb) r

[I presume you've intentionally left out a breakpoint because the
debugger is failing to run the program. Correct me if I am wrong.]

> Starting program: /home/fcg/Gecka/parser/parser_test s
> Error while reading shared library symbols:
> Cannot find new threads: generic error
> Cannot find user-level thread for LWP 30703: no LWP to satisfy query
> (gdb) bt
> #0  _dl_debug_state () at dl-debug.c:56
> #1  0x40010197 in _dl_sysdep_start (start_argptr=0xbffec2c0,
>     dl_main=0x40002520 <dl_main>) at ../sysdeps/generic/dl-sysdep.c:208
> #2  0x40002441 in _dl_start_final (arg=0xbffec2c0,
> bootstrap_map_p=0xbffec08c,
>     start_time=493332180866518) at rtld.c:263
> #3  0x40002233 in _dl_start () at rtld.c:216
> Current language:  auto; currently c
> (gdb)

This is all system stuff. Are you by chance using an NPTL-enabled linux
system? If so, older versions of gdb (and hence Insight) will not work
with them. You will need to try out 6.0, which is due out soon. You can
check out the "gdb_6_0-branch" branch, i.e., cvs co -rgdb_6_0-branch
insight+dejagnu, as per the instructions on the download page.

Then build as normal.

Of course, if you are NOT using threads or an NPTL system, then there's
another problem with gdb, and you should ask on that mailing list (gdb
at sources dot redhat dot com). Be sure to include the session output
above. That would help them tremendously.

Keith


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

* Re: dl_debug.c????  Stopping on that code???
  2003-07-31 20:28 ` Keith Seitz
@ 2003-07-31 22:22   ` Frank
  0 siblings, 0 replies; 3+ messages in thread
From: Frank @ 2003-07-31 22:22 UTC (permalink / raw)
  To: Keith Seitz; +Cc: insight

Keith,
    Yup left out break points on purpose. Yup I'm using threads.  And when I
took out the code/lib's  that deals with it  works just  fine.

I'm using -lpthread so I guess yes that is the Native posix thread lib(NPTL),
right?

Ok, I'll try and install gdb6.0.  Humm, this should be fun, LOL

Thanks for all the help!!!!!

Frank

Keith Seitz wrote:

> On Thu, 2003-07-31 at 11:52, Frank wrote:
> > I tried it in native gdb, simular problems:
> > [fcg@kw4 parser]$ gdb parser_test
> > GNU gdb 5.3
> > This GDB was configured as "i686-pc-linux-gnu"...
> > (gdb) set args s
> > (gdb) r
>
> [I presume you've intentionally left out a breakpoint because the
> debugger is failing to run the program. Correct me if I am wrong.]
>
> > Starting program: /home/fcg/Gecka/parser/parser_test s
> > Error while reading shared library symbols:
> > Cannot find new threads: generic error
> > Cannot find user-level thread for LWP 30703: no LWP to satisfy query
> > (gdb) bt
> > #0  _dl_debug_state () at dl-debug.c:56
> > #1  0x40010197 in _dl_sysdep_start (start_argptr=0xbffec2c0,
> >     dl_main=0x40002520 <dl_main>) at ../sysdeps/generic/dl-sysdep.c:208
> > #2  0x40002441 in _dl_start_final (arg=0xbffec2c0,
> > bootstrap_map_p=0xbffec08c,
> >     start_time=493332180866518) at rtld.c:263
> > #3  0x40002233 in _dl_start () at rtld.c:216
> > Current language:  auto; currently c
> > (gdb)
>
> This is all system stuff. Are you by chance using an NPTL-enabled linux
> system? If so, older versions of gdb (and hence Insight) will not work
> with them. You will need to try out 6.0, which is due out soon. You can
> check out the "gdb_6_0-branch" branch, i.e., cvs co -rgdb_6_0-branch
> insight+dejagnu, as per the instructions on the download page.
>
> Then build as normal.
>
> Of course, if you are NOT using threads or an NPTL system, then there's
> another problem with gdb, and you should ask on that mailing list (gdb
> at sources dot redhat dot com). Be sure to include the session output
> above. That would help them tremendously.
>
> Keith

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

end of thread, other threads:[~2003-07-31 22:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-31 18:52 dl_debug.c???? Stopping on that code??? Frank
2003-07-31 20:28 ` Keith Seitz
2003-07-31 22:22   ` Frank

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).