From nobody@FreeBSD.org  Wed Nov 24 16:35:55 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 03F2A1065673
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 24 Nov 2010 16:35:55 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (unknown [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id E69258FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 24 Nov 2010 16:35:54 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id oAOGZsO2093183
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 24 Nov 2010 16:35:54 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id oAOGZsEa093182;
	Wed, 24 Nov 2010 16:35:54 GMT
	(envelope-from nobody)
Message-Id: <201011241635.oAOGZsEa093182@red.freebsd.org>
Date: Wed, 24 Nov 2010 16:35:54 GMT
From: kenorb <kenorb@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: gdb: internal-error: fbsd_thread_new_objfile: Assertion `proc_handle.pid == 0' failed.
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         152546
>Category:       bin
>Synopsis:       gdb(1): internal-error: fbsd_thread_new_objfile: Assertion `proc_handle.pid == 0' failed.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 24 16:40:09 UTC 2010
>Closed-Date:    
>Last-Modified:  Mon Nov 29 06:36:00 UTC 2010
>Originator:     kenorb
>Release:        
>Organization:
>Environment:
FreeBSD kenorb 8.1-STABLE FreeBSD 8.1-STABLE #4: Mon Nov 15 14:40:15 GMT 2010     root@kenorb:/usr/obj/usr/src/sys/BRO  amd64

>Description:
Compiled QT33 with debug symbols, Opera crashed.
Tried to reload the symbols, this error appeared:

(gdb) symbol-file /usr/local/lib/libqt-mt.so.3
Load new symbol table from "/usr/local/lib/libqt-mt.so.3"? (y or n) y
Reading symbols from /usr/local/lib/libqt-mt.so.3...done.

/usr/src/gnu/usr.bin/gdb/libgdb/fbsd-threads.c:440: internal-error: fbsd_thread_new_objfile: Assertion `proc_handle.pid == 0' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:

From: bronek <kenorb@gmail.com>
To: bug-followup@freebsd.org, kenorb@gmail.com
Cc:  
Subject: Re: misc/152546: gdb: internal-error: fbsd_thread_new_objfile:
 Assertion `proc_handle.pid == 0' failed.
Date: Wed, 24 Nov 2010 16:46:40 +0000

 --00163646d53c0177790495cf3d46
 Content-Type: text/plain; charset=ISO-8859-1
 
 (gdb) symbol-file /usr/local/lib/libqt-mt.so.3
 Load new symbol table from "/usr/local/lib/libqt-mt.so.3"? (y or n) y
 Reading symbols from /usr/local/lib/libqt-mt.so.3...done.
 
 fbsd-threads.c:440: internal-error: fbsd_thread_new_objfile: Assertion
 `proc_handle.pid == 0' failed.
 A problem internal to GDB has been detected,
 further debugging may prove unreliable.
 Quit this debugging session? (y or n) y
 fbsd-threads.c:440: internal-error: fbsd_thread_new_objfile: Assertion
 `proc_handle.pid == 0' failed.
 A problem internal to GDB has been detected,
 further debugging may prove unreliable.
 Create a core file of GDB? (y or n) y
 Abort (core dumped)
 
 #0  0x0000000800e93eac in kill () from /lib/libc.so.7
 No symbol table info available.
 #1  0x0000000800e92e33 in abort () from /lib/libc.so.7
 No symbol table info available.
 #2  0x000000000049a4fa in internal_vproblem (problem=0x7af990, file=0x679119
 "fbsd-threads.c", line=440, fmt=0x6790fe "%s: Assertion `%s' failed.",
 ap=0x7fffffffd990)
     at
 /usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/utils.c:804
     quit_p = 1
     dump_core_p = 1
     reason = 0x801093b40 "fbsd-threads.c:440: internal-error:
 fbsd_thread_new_objfile: Assertion `proc_handle.pid == 0' failed.\nA problem
 internal to GDB has been detected,\nfurther debugging may prove unreliable."
     dejavu = 1
     msg = "Recursive internal problem.\n"
 #3  0x000000000049a557 in internal_verror (file=0x679119 "fbsd-threads.c",
 line=440, fmt=0x6790fe "%s: Assertion `%s' failed.", ap=0x7fffffffd990)
     at
 /usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/utils.c:827
 No locals.
 #4  0x000000000049a649 in internal_error (file=Could not find the frame base
 for "internal_error".
 ) at /usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/utils.c:836
     ap = Could not find the frame base for "internal_error".
 #5  0x0000000000570201 in fbsd_thread_new_objfile (objfile=0x0) at
 fbsd-threads.c:440
 #6  0x00000000004f7b95 in remote_new_objfile (objfile=0x0) at
 /usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/remote.c:5484
 #7  0x00000000004a9488 in tui_new_objfile_hook (objfile=0x0) at
 /usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/tui/tui-hooks.c:66
 #8  0x00000000004dae10 in clear_symtab_users () at
 /usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/symfile.c:2314
 #9  0x00000000004d84e4 in new_symfile_objfile (objfile=0x8046db000,
 mainline=1, verbo=1) at
 /usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/symfile.c:750
 #10 0x00000000004d886e in symbol_file_add_with_addrs_or_offsets
 (name=0x8010abee0 "/usr/local/lib/libqt-mt.so.3", from_tty=1, addrs=0x0,
 offsets=0x0, num_offsets=0,
     mainline=1, flags=32) at
 /usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/symfile.c:904
 #11 0x00000000004d88de in symbol_file_add (name=0x8010abee0
 "/usr/local/lib/libqt-mt.so.3", from_tty=1, addrs=0x0, mainline=1, flags=32)
     at
 /usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/symfile.c:920
 #12 0x00000000004d8930 in symbol_file_add_main_1 (args=0x8010abee0
 "/usr/local/lib/libqt-mt.so.3", from_tty=1, flags=32)
     at
 /usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/symfile.c:942
 #13 0x00000000004d8ea6 in symbol_file_command (args=0x80100508c
 "/usr/local/lib/libqt-mt.so.3", from_tty=1)
     at
 /usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/symfile.c:1164
 #14 0x0000000000487b20 in do_cfunc (c=0x80109ca00, args=0x80100508c
 "/usr/local/lib/libqt-mt.so.3", from_tty=1)
     at
 /usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/cli/cli-decode.c:57
 #15 0x000000000048a593 in cmd_func (cmd=0x80109ca00, args=0x80100508c
 "/usr/local/lib/libqt-mt.so.3", from_tty=1)
     at
 /usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/cli/cli-decode.c:1541
 #16 0x00000000004ac0eb in execute_command (p=0x8010050a7 "3", from_tty=1) at
 /usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/top.c:743
 #17 0x0000000000454f7b in command_handler (command=0x801005080 "") at
 /usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/event-top.c:500
 #18 0x00000000004558c7 in command_line_handler (rl=0x8010efb20 "symbol-file
 /usr/local/lib/libqt-mt.so.3")
     at
 /usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/event-top.c:793
 #19 0x0000000800a28c2f in rl_callback_read_char () from
 /lib/libreadline.so.8
 #20 0x0000000000454585 in rl_callback_read_char_wrapper (client_data=0x0) at
 /usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/event-top.c:166
 #21 0x0000000000454e05 in stdin_event_handler (error=0, client_data=0x0) at
 /usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/event-top.c:416
 #22 0x0000000000456931 in handle_file_event (event_file_desc=0) at
 /usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/event-loop.c:721
 #23 0x0000000000456067 in process_event () at
 /usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/event-loop.c:334
 #24 0x00000000004560b6 in gdb_do_one_event (data=0x0) at
 /usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/event-loop.c:371
 #25 0x00000000004abc9c in do_catch_errors (uiout=0x80106de00,
 data=0x7fffffffe050) at
 /usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/top.c:523
 #26 0x00000000004aba33 in catcher (func=0x4abc73 <do_catch_errors>,
 func_uiout=0x80106de00, func_args=0x7fffffffe050, func_val=0x7fffffffe06c,
     func_caught=0x7fffffffe068, errstring=0x679f1d "", gdberrmsg=0x0,
 mask=6) at
 /usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/top.c:430
 #27 0x00000000004abd04 in catch_errors (func=0x45607c <gdb_do_one_event>,
 func_args=0x0, errstring=0x679f1d "", mask=6)
     at /usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/top.c:535
 #28 0x0000000000576a4b in tui_command_loop (data=0x0) at
 /usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/tui/tui-interp.c:150
 #29 0x0000000000436453 in current_interp_command_loop () at
 /usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/interps.c:277
 #30 0x0000000000435045 in captured_command_loop (data=0x0) at
 /usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/main.c:97
 #31 0x00000000004abc9c in do_catch_errors (uiout=0x80106de00,
 data=0x7fffffffe220) at
 /usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/top.c:523
 #32 0x00000000004aba33 in catcher (func=0x4abc73 <do_catch_errors>,
 func_uiout=0x80106de00, func_args=0x7fffffffe220, func_val=0x7fffffffe23c,
     func_caught=0x7fffffffe238, errstring=0x607e08 "", gdberrmsg=0x0,
 mask=6) at
 /usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/top.c:430
 #33 0x00000000004abd04 in catch_errors (func=0x435034
 <captured_command_loop>, func_args=0x0, errstring=0x607e08 "", mask=6)
     at /usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/top.c:535
 #34 0x0000000000435e84 in captured_main (data=0x7fffffffe620) at
 /usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/main.c:805
 #35 0x00000000004abc9c in do_catch_errors (uiout=0x7afa80,
 data=0x7fffffffe5c0) at
 /usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/top.c:523
 #36 0x00000000004aba33 in catcher (func=0x4abc73 <do_catch_errors>,
 func_uiout=0x7afa80, func_args=0x7fffffffe5c0, func_val=0x7fffffffe5dc,
 func_caught=0x7fffffffe5d8,
     errstring=0x607e08 "", gdberrmsg=0x0, mask=6) at
 /usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/top.c:430
 #37 0x00000000004abd04 in catch_errors (func=0x435077 <captured_main>,
 func_args=0x7fffffffe620, errstring=0x607e08 "", mask=6)
     at /usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/top.c:535
 #38 0x0000000000435ef9 in gdb_main (args=0x7fffffffe620) at
 /usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/main.c:814
 #39 0x0000000000435030 in main (argc=2, argv=0x7fffffffe698) at
 /usr/src/gnu/usr.bin/gdb/gdb/../../../../contrib/gdb/gdb/gdb.c:35
 
 --00163646d53c0177790495cf3d46--

From: bronek <kenorb@gmail.com>
To: bug-followup@freebsd.org, kenorb@gmail.com
Cc:  
Subject: Re: misc/152546: gdb: internal-error: fbsd_thread_new_objfile:
 Assertion `proc_handle.pid == 0' failed.
Date: Wed, 24 Nov 2010 16:50:11 +0000

 --0016363b8436d110e60495cf49a0
 Content-Type: text/plain; charset=ISO-8859-1
 
 Doesn't happen when program is not run. Only when it's run (after Control-C
 or SEGV).
 
 --0016363b8436d110e60495cf49a0--
>Unformatted:
