gdb/263: internal error when doing "info threads"
Thu Nov 1 09:18:00 GMT 2001

>Number:         263
>Category:       gdb
>Synopsis:       internal error when doing "info threads"
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 18 01:48:01 PST 2001
>Release:        5.1
gdb 5.1 on Linux RH6.2, gcc 2.95.3 and kernel 2.4.12
When doing "info threads" on a particular core file I get an internal error. Other core files do not give this problem.

(gdb) info threads
lin-lwp.c:1292: gdb-internal-error: lin_lwp_thread_alive: Assertion `is_lwp (ptid)' failed.
An internal GDB error was detected.  This may make further
debugging unreliable.  Continue this debugging session? (y or n) n
Create a core file containing the current state of GDB? (y or n) y
Aborted (core dumped)

and loading the resultant core in gdb:

(gdb) bt
#0  0x4009ed21 in __kill () from /lib/
#1  0x4009e996 in raise (sig=6) at ../sysdeps/posix/raise.c:27
#2  0x400a00b8 in abort () at ../sysdeps/generic/abort.c:88
#3  0x080d1599 in internal_verror (file=0x81b353d "lin-lwp.c", line=1292, fmt=0x81b3522 "%s%sAssertion `%s' failed.", ap=0xbffff0dc) at utils.c:740
#4  0x080d15e0 in safe_strerror (errnum=136000829) at utils.c:755
#5  0x080aebb0 in lin_lwp_thread_alive (ptid={pid = 27849, lwp = 0, tid = 0}) at lin-lwp.c:1292
#6  0x080edbcc in thread_db_thread_alive (ptid={pid = 27849, lwp = 0, tid = 0}) at thread-db.c:927
#7  0x0809cdc0 in thread_alive (tp=0x8290638) at thread.c:392
#8  0x0809ce1b in prune_threads () at thread.c:408
#9  0x0809ce75 in info_threads_command (arg=0x0, from_tty=1) at thread.c:435
#10 0x080cf0a2 in execute_command (p=0x8221c1c "", from_tty=1) at top.c:668
#11 0x0809e06a in command_handler (command=0x8221c10 "info threads") at event-top.c:506
#12 0x0809e7eb in command_line_handler (rl=0x8b4ac78 "ðÚÂ\bXí\026@eads") at event-top.c:802
#13 0x08186e5a in rl_callback_read_char () at callback.c:114
#14 0x0809d72b in rl_callback_read_char_wrapper (client_data=0x0) at event-top.c:164
#15 0x0809df3e in stdin_event_handler (error=0, client_data=0x0) at event-top.c:420
#16 0x080e6de8 in handle_file_event (event_file_desc=0) at event-loop.c:706
#17 0x080e68f6 in process_event () at event-loop.c:335
#18 0x080e6935 in gdb_do_one_event (data=0x0) at event-loop.c:372
#19 0x080cecbd in catch_errors (func=0x80e690c <gdb_do_one_event>, args=0x0, errstring=0x81c6aa0 "", mask=6) at top.c:416
#20 0x080e696c in start_event_loop () at event-loop.c:408
#21 0x0809d8a5 in cli_command_loop () at event-top.c:194
#22 0x08072e98 in captured_command_loop (data=0x0) at main.c:96
#23 0x080cecbd in catch_errors (func=0x8072e80 <captured_command_loop>, args=0x0, errstring=0x8199f26 "", mask=6) at top.c:416
#24 0x080738e3 in captured_main (data=0xbffff900) at main.c:705
#25 0x080cecbd in catch_errors (func=0x8072ecc <captured_main>, args=0xbffff900, errstring=0x8199f26 "", mask=6) at top.c:416
#26 0x0807390f in main (argc=3, argv=0xbffff954) at main.c:716
#27 0x400989cb in __libc_start_main (main=0x80738e8 <main>, argc=3, argv=0xbffff954, init=0x80720e4 <_init>, fini=0x8199e04 <_fini>, rtld_fini=0x4000aea0 <_dl_fini>, stack_end=0xbffff94c)
    at ../sysdeps/generic/libc-start.c:92
repeatable every time with this particular core file


More information about the Gdb-prs mailing list