This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdb/371


The following reply was made to PR gdb/371; it has been noted by GNATS.

From: Michael Elizabeth Chastain <mec@shout.net>
To: s.chauveau@chello.nl
Cc: gdb-gnats@sources.redhat.com
Subject: Re: gdb/371
Date: Wed, 20 Feb 2002 15:27:23 -0600

 This is a good bug report, thanks.
 
 The rest of this message is meant for the gnats audit trail.  It won't
 help you with the bug but it will help the engineer who will fix the bug.
 
 I reproduced this with:
 
   target=native host=i686-pc-linux-gnu%rh-7.2 gdb=5.1.1 gcc=3.0.3 goption=-gstabs+
   target=native host=i686-pc-linux-gnu%rh-7.2 gdb=HEAD%2002-02-16 gcc=3.0.3 goption=-gstabs+
 
 Here is a stack trace from the gdb crash with gdb HEAD%2002-02-16.
 
 (gdb) bt
 #0  0x08076a56 in value_headof (in_arg=0x85497a8, btype=0x0, dtype=0x8268640)
     at /berman/fsf/_today_/source/gdb/HEAD/gdb/values.c:1083
 #1  0x08076b20 in value_from_vtable_info (arg=0x85497a8, type=0x8268640)
     at /berman/fsf/_today_/source/gdb/HEAD/gdb/values.c:1108
 #2  0x08085a40 in print_command_1 (exp=0x823b66e "x", inspect=0, voidprint=1)
     at /berman/fsf/_today_/source/gdb/HEAD/gdb/printcmd.c:938
 #3  0x08085ac3 in print_command (exp=0x823b66e "x", from_tty=1)
     at /berman/fsf/_today_/source/gdb/HEAD/gdb/printcmd.c:988
 #4  0x08139774 in do_cfunc (c=0x8243810, args=0x823b66e "x", from_tty=1)
     at /berman/fsf/_today_/source/gdb/HEAD/gdb/cli/cli-decode.c:50
 #5  0x080d9f94 in execute_command (p=0x823b66e "x", from_tty=1)
     at /berman/fsf/_today_/source/gdb/HEAD/gdb/top.c:715
 #6  0x080a0b5d in command_handler (command=0x823b668 "print x")
     at /berman/fsf/_today_/source/gdb/HEAD/gdb/event-top.c:504
 #7  0x080a1023 in command_line_handler (rl=0x82dcc08 "\200\203,\bč\214-\b\020")
     at /berman/fsf/_today_/source/gdb/HEAD/gdb/event-top.c:800
 #8  0x081962a6 in rl_callback_read_char ()
     at /berman/fsf/_today_/source/gdb/HEAD/readline/callback.c:114
 #9  0x080a04eb in rl_callback_read_char_wrapper (client_data=0x0)
     at /berman/fsf/_today_/source/gdb/HEAD/gdb/event-top.c:168
 #10 0x080a0a4f in stdin_event_handler (error=0, client_data=0x0)
     at /berman/fsf/_today_/source/gdb/HEAD/gdb/event-top.c:418
 #11 0x080ee367 in handle_file_event (event_file_desc=0)
     at /berman/fsf/_today_/source/gdb/HEAD/gdb/event-loop.c:714
 #12 0x080eddfe in process_event ()
     at /berman/fsf/_today_/source/gdb/HEAD/gdb/event-loop.c:335
 #13 0x080ede4b in gdb_do_one_event (data=0x0)
     at /berman/fsf/_today_/source/gdb/HEAD/gdb/event-loop.c:372
 #14 0x080d9bef in do_catch_errors (uiout=0x8258d10, data=0xbffff3d0)
     at /berman/fsf/_today_/source/gdb/HEAD/gdb/top.c:491
 #15 0x080d9b31 in catcher (func=0x80d9be0 <do_catch_errors>, 
     func_uiout=0x8258d10, func_args=0xbffff3d0, func_val=0xbffff3c8, 
     func_caught=0xbffff3cc, errstring=0x81def00 "", mask=6)
     at /berman/fsf/_today_/source/gdb/HEAD/gdb/top.c:423
 #16 0x080d9c36 in catch_errors (func=0x80ede20 <gdb_do_one_event>, 
     func_args=0x0, errstring=0x81def00 "", mask=6)
     at /berman/fsf/_today_/source/gdb/HEAD/gdb/top.c:503
 #17 0x080ede83 in start_event_loop ()
     at /berman/fsf/_today_/source/gdb/HEAD/gdb/event-loop.c:396
 #18 0x080727c1 in captured_command_loop (data=0x0)
     at /berman/fsf/_today_/source/gdb/HEAD/gdb/main.c:94
 #19 0x080d9bef in do_catch_errors (uiout=0x8258d10, data=0xbffff540)
     at /berman/fsf/_today_/source/gdb/HEAD/gdb/top.c:491
 #20 0x080d9b31 in catcher (func=0x80d9be0 <do_catch_errors>, 
     func_uiout=0x8258d10, func_args=0xbffff540, func_val=0xbffff538, 
     func_caught=0xbffff53c, errstring=0x81afb6d "", mask=6)
     at /berman/fsf/_today_/source/gdb/HEAD/gdb/top.c:423
 #21 0x080d9c36 in catch_errors (func=0x80727b0 <captured_command_loop>, 
     func_args=0x0, errstring=0x81afb6d "", mask=6)
     at /berman/fsf/_today_/source/gdb/HEAD/gdb/top.c:503
 #22 0x08072d93 in captured_main (data=0xbffff800)
     at /berman/fsf/_today_/source/gdb/HEAD/gdb/main.c:723
 #23 0x080d9bef in do_catch_errors (uiout=0x821cea0, data=0xbffff7e0)
     at /berman/fsf/_today_/source/gdb/HEAD/gdb/top.c:491
 #24 0x080d9b31 in catcher (func=0x80d9be0 <do_catch_errors>, 
     func_uiout=0x821cea0, func_args=0xbffff7e0, func_val=0xbffff7d8, 
     func_caught=0xbffff7dc, errstring=0x81afb6d "", mask=6)
     at /berman/fsf/_today_/source/gdb/HEAD/gdb/top.c:423
 #25 0x080d9c36 in catch_errors (func=0x8072800 <captured_main>, 
     func_args=0xbffff800, errstring=0x81afb6d "", mask=6)
     at /berman/fsf/_today_/source/gdb/HEAD/gdb/top.c:503
 #26 0x080732ba in main (argc=2, argv=0xbffff874)
     at /berman/fsf/_today_/source/gdb/HEAD/gdb/main.c:734
 #27 0x400b0507 in __libc_start_main (main=0x8073290 <main>, argc=2, 
     ubp_av=0xbffff874, init=0x8071ba4 <_init>, fini=0x81afa30 <_fini>, 
     rtld_fini=0x4000dc14 <_dl_fini>, stack_end=0xbffff86c)
     at ../sysdeps/generic/libc-start.c:129
 
 (gdb) list
 1078		  TYPE_NAME (error_type) = savestring ("suspicious *", sizeof ("suspicious *"));
 1079		  VALUE_TYPE (in_arg) = error_type;
 1080		  return in_arg;
 1081	      }
 1082	  demangled_name = cplus_demangle(demangled_name,DMGL_ANSI);
 1083	  *(strchr (demangled_name, ' ')) = '\0';
 1084	
 1085	  sym = lookup_symbol (demangled_name, 0, VAR_NAMESPACE, 0, 0);
 1086	  if (sym == NULL)
 1087	      error ("could not find type declaration for `%s'", demangled_name);
 
 (gdb) print demangled_name
 $1 = 0x85b4e38 "bla::c()"
 
 Michael C


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]