From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19006 invoked by alias); 30 Sep 2007 03:57:05 -0000 Received: (qmail 18997 invoked by uid 22791); 30 Sep 2007 03:57:04 -0000 X-Spam-Check-By: sourceware.org Received: from smtpout05-04.prod.mesa1.secureserver.net (HELO smtpout05.prod.mesa1.secureserver.net) (64.202.165.221) by sourceware.org (qpsmtpd/0.31) with SMTP; Sun, 30 Sep 2007 03:57:01 +0000 Received: (qmail 5197 invoked from network); 30 Sep 2007 03:57:00 -0000 Received: from unknown (96.226.25.79) by smtpout05-04.prod.mesa1.secureserver.net (64.202.165.221) with ESMTP; 30 Sep 2007 03:57:00 -0000 Message-ID: <46FF1E8B.1040402@computer.org> Date: Sun, 30 Sep 2007 04:02:00 -0000 From: Eric Schuele User-Agent: Thunderbird 2.0.0.6 (X11/20070921) MIME-Version: 1.0 To: gdb@sourceware.org Subject: Trouble with gdb 6.6 and one particular app on FreeBSD 7.0... OpenPGP: url=http://www.ravenlock.us/files/pub_schuele.pgp Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig59D1F142FB5ECE07186CFE4B" X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-09/txt/msg00276.txt.bz2 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig59D1F142FB5ECE07186CFE4B Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-length: 7288 Hello, I have a particular app that I am unable to debug using gdb. When I attach to the app and continue it, gdb begins to take up 100% of my cpu. It will do this forever (well longer than I've ever waited). I am able to debug this particular app on my 6.2-STABLE machine. And I can debug other apps on my 7.0 machine. I've tried both gdb 6.1 and gdb 6.6 on my 7.0 machine with no change in behavior. I first thought maybe I had done something odd when rebuilding my kernel/world? But I've built a second 7.0 machine and stuck with the GENERIC kernel and I have the same results. Most times I can not break into the app once I have continued it. I have attached gdb to gdb to watch what it is doing and it appears to give me a few different backtraces, though it is always one of maybe three traces. [See below for bt of gdb attached to gdb, unfortunately its not the same bt I was seeing... but may offer some insight?] Has anyone seen behavior like this? What else can I provide that might help diagnose this? --=20 Regards, Eric Several backtraces of gdb =3D=3D> gdb in same session... Program received signal SIGINT, Interrupt. 0x0805241b in find_pc_sect_section (pc=3D681465567, section=3D0x0) at objfiles.c:762 762 in objfiles.c (gdb) bt #0 0x0805241b in find_pc_sect_section (pc=3D681465567, section=3D0x0) at objfiles.c:762 #1 0x0805249a in find_pc_section (pc=3D681465567) at objfiles.c:776 #2 0x080aa087 in find_pc_partial_function (pc=3D681465567, name=3D0xbfbfe5= 90, address=3D0xbfbfe588, endaddr=3D0xbfbfe58c) at blockframe.c:189 #3 0x080eed68 in handle_inferior_event (ecs=3D0xbfbfe574) at infrun.c:1776 #4 0x080ed63e in wait_for_inferior () at infrun.c:1009 #5 0x080ed46a in proceed (addr=3D4294967295, siggnal=3DTARGET_SIGNAL_DEFAU= LT, step=3D0) at infrun.c:827 #6 0x080ea249 in continue_command (proc_count_exp=3D0x0, from_tty=3D1) at infcmd.c:642 #7 0x0808082b in do_cfunc (c=3D0x28977190, args=3D0x0, from_tty=3D1) at .././gdb/cli/cli-decode.c:62 #8 0x08082e6d in cmd_func (cmd=3D0x28977190, args=3D0x0, from_tty=3D1) at .././gdb/cli/cli-decode.c:1666 #9 0x08054cbd in execute_command (p=3D0x2890c081 "", from_tty=3D1) at top.= c:455 #10 0x080feadf in command_handler (command=3D0x2890c080 "c") at event-top.c:519 #11 0x080ff307 in command_line_handler (rl=3D0x2895b112 "c") at event-top.c:804 #12 0x28319826 in rl_callback_read_char () from /lib/libreadline.so.7 #13 0x080fe1cf in rl_callback_read_char_wrapper (client_data=3D0x0) at event-top.c:179 #14 0x080fe96f in stdin_event_handler (error=3D0, client_data=3D0x0) at event-top.c:432 ---Type to continue, or q to quit--- #15 0x080fd860 in handle_file_event (event_file_desc=3D0) at event-loop.c:7= 30 #16 0x080fd090 in process_event () at event-loop.c:343 #17 0x080fd0d9 in gdb_do_one_event (data=3D0x0) at event-loop.c:380 #18 0x080fa46c in catch_errors (func=3D0x80fd0a5 , func_args=3D0x0, errstring=3D0x8262c9e "", mask=3D6) at exceptions.c:515 #19 0x0809b11b in tui_command_loop (data=3D0x0) at .././gdb/tui/tui-interp.c:151 #20 0x080fa95d in current_interp_command_loop () at interps.c:278 #21 0x0804eec7 in captured_command_loop (data=3D0x0) at .././gdb/main.c:101 #22 0x080fa46c in catch_errors (func=3D0x804eebc , func_args=3D0x0, errstring=3D0x824f0e6 "", mask=3D6) at exceptions.c:515 #23 0x0804fd3c in captured_main (data=3D0xbfbfead4) at .././gdb/main.c:826 #24 0x080fa46c in catch_errors (func=3D0x804eefd , func_args=3D0xbfbfead4, errstring=3D0x824f0e6 "", mask=3D6) at exceptions.c:515 #25 0x0804fdad in gdb_main (args=3D0xbfbfead4) at .././gdb/main.c:835 #26 0x0804eeb1 in main (argc=3D3, argv=3D0xbfbfeb28) at gdb.c:44 (gdb) c Continuing. ^C Program received signal SIGINT, Interrupt. 0x080b80e1 in set_register_cached (regnum=3D15, state=3D0) at regcache.c:434 434 regcache.c: No such file or directory. in regcache.c (gdb) bt #0 0x080b80e1 in set_register_cached (regnum=3D15, state=3D0) at regcache.= c:434 #1 0x080b8186 in registers_changed () at regcache.c:472 #2 0x080f063c in prepare_to_wait (ecs=3D0xbfbfe574) at infrun.c:2917 #3 0x080f05f8 in keep_going (ecs=3D0xbfbfe574) at infrun.c:2895 #4 0x080ef284 in handle_inferior_event (ecs=3D0xbfbfe574) at infrun.c:2021 #5 0x080ed63e in wait_for_inferior () at infrun.c:1009 #6 0x080ed46a in proceed (addr=3D4294967295, siggnal=3DTARGET_SIGNAL_DEFAU= LT, step=3D0) at infrun.c:827 #7 0x080ea249 in continue_command (proc_count_exp=3D0x0, from_tty=3D1) at infcmd.c:642 #8 0x0808082b in do_cfunc (c=3D0x28977190, args=3D0x0, from_tty=3D1) at .././gdb/cli/cli-decode.c:62 #9 0x08082e6d in cmd_func (cmd=3D0x28977190, args=3D0x0, from_tty=3D1) at .././gdb/cli/cli-decode.c:1666 #10 0x08054cbd in execute_command (p=3D0x2890c081 "", from_tty=3D1) at top.= c:455 #11 0x080feadf in command_handler (command=3D0x2890c080 "c") at event-top.c:519 #12 0x080ff307 in command_line_handler (rl=3D0x2895b112 "c") at event-top.c:804 #13 0x28319826 in rl_callback_read_char () from /lib/libreadline.so.7 #14 0x080fe1cf in rl_callback_read_char_wrapper (client_data=3D0x0) at event-top.c:179 #15 0x080fe96f in stdin_event_handler (error=3D0, client_data=3D0x0) at event-top.c:432 #16 0x080fd860 in handle_file_event (event_file_desc=3D0) at event-loop.c:7= 30 ---Type to continue, or q to quit---q Quit (gdb) c Continuing. ^C Program received signal SIGINT, Interrupt. 0x28784c0b in ?? () from /lib/libc.so.7 (gdb) bt #0 0x28784c0b in ?? () from /lib/libc.so.7 #1 0xbfbfe2b0 in ?? () #2 0x28980c20 in ?? () #3 0x00000004 in ?? () #4 0x00003f80 in ?? () #5 0x00000000 in ?? () (gdb) c Continuing. ^C Program received signal SIGINT, Interrupt. 0x2874cbbb in ptrace () from /lib/libc.so.7 (gdb) bt #0 0x2874cbbb in ptrace () from /lib/libc.so.7 #1 0x08068b42 in i386fbsd_resume (ptid=3D{pid =3D -1, lwp =3D 0, tid =3D 0= }, step=3D0, signal=3DTARGET_SIGNAL_CHLD) at i386fbsd-nat.c:76 #2 0x080ed0de in resume (step=3D0, sig=3DTARGET_SIGNAL_CHLD) at infrun.c:6= 26 #3 0x080f05ed in keep_going (ecs=3D0xbfbfe574) at infrun.c:2892 #4 0x080ef284 in handle_inferior_event (ecs=3D0xbfbfe574) at infrun.c:2021 #5 0x080ed63e in wait_for_inferior () at infrun.c:1009 #6 0x080ed46a in proceed (addr=3D4294967295, siggnal=3DTARGET_SIGNAL_DEFAU= LT, step=3D0) at infrun.c:827 #7 0x080ea249 in continue_command (proc_count_exp=3D0x0, from_tty=3D1) at infcmd.c:642 #8 0x0808082b in do_cfunc (c=3D0x28977190, args=3D0x0, from_tty=3D1) at .././gdb/cli/cli-decode.c:62 #9 0x08082e6d in cmd_func (cmd=3D0x28977190, args=3D0x0, from_tty=3D1) at .././gdb/cli/cli-decode.c:1666 #10 0x08054cbd in execute_command (p=3D0x2890c081 "", from_tty=3D1) at top.= c:455 #11 0x080feadf in command_handler (command=3D0x2890c080 "c") at event-top.c:519 #12 0x080ff307 in command_line_handler (rl=3D0x2895b112 "c") at event-top.c:804 #13 0x28319826 in rl_callback_read_char () from /lib/libreadline.so.7 #14 0x080fe1cf in rl_callback_read_char_wrapper (client_data=3D0x0) at event-top.c:179 #15 0x080fe96f in stdin_event_handler (error=3D0, client_data=3D0x0) at event-top.c:432 ---Type to continue, or q to quit--- --------------enig59D1F142FB5ECE07186CFE4B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-length: 187 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFG/x6LngSDRM3IXUoRAspGAJ43AltRO7c5gQMI09TZSlOqKr9iXwCgrsjq ZBieebDbRRJo24E8eJFve6g= =fMOp -----END PGP SIGNATURE----- --------------enig59D1F142FB5ECE07186CFE4B--