From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27579 invoked by alias); 4 May 2002 02:37:06 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 27572 invoked from network); 4 May 2002 02:37:04 -0000 Received: from unknown (HELO duracef.shout.net) (204.253.184.12) by sources.redhat.com with SMTP; 4 May 2002 02:37:04 -0000 Received: (from mec@localhost) by duracef.shout.net (8.11.6/8.11.6) id g442b3702257; Fri, 3 May 2002 21:37:03 -0500 Date: Fri, 03 May 2002 19:37:00 -0000 From: Michael Elizabeth Chastain Message-Id: <200205040237.g442b3702257@duracef.shout.net> To: drow@mvista.com, gdb-patches@sources.redhat.com Subject: Re: RFA: Check for corruption of cv_type chain X-SW-Source: 2002-05/txt/msg00096.txt.bz2 Daniel Jacobowitz writes: > Er... fails on 3.0.4 DWARF-2? Does anyone know why? I threw up some tarballs (errr ...) ftp://ftp.shout.net/pub/users/mec/gdb/2002-05-01c,result.tar.gz ftp://ftp.shout.net/pub/users/mec/gdb/2002-05-01c,testsuite.tar.gz result.tar.gz has ten subdirectories, one per each configuration. You want the one with gcc-3.0.4,g-dwarf-2 in the name. There is a nice gdb.log and executable file "gdb.c++/hang". testsuite.tar.gz has the source for the testsuite. The GPL requires me to make this available because result.tar.gz has test binaries in it. Plus, you can see exactly what went into my "gdb.c++/hang" binary if you need to. The gdb.log for gcc 3.0.4 -gdwarf-2 says: (gdb) print var_in_b^M ERROR: Process no longer exists UNRESOLVED: gdb.c++/hang.exp: doesn't overwrite struct type FAIL: gdb.c++/hang.exp: doesn't corrupt cv_type chain (timeout) testcase /berman/fsf/_today_/source/gdb/HEAD/src/gdb/testsuite/gdb.c++/hang.exp completed in 62 seconds gdb dumped core. Here is a typescript with the backtrace. Michael C === Script started on Fri May 3 22:29:57 2002 [mec@berman 2002-05-01c,native,i686-pc-linux-gnu%rh-7.2,HEAD,3.0.4,g-dwarf-2]$ g db /berman/fsf/_today_/berman/native/install/gdb/HEAD/bin/gdb core GNU gdb Red Hat Linux 7.x (5.0rh-15) (MI_OUT) Copyright 2001 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 "i386-redhat-linux"... Core was generated by `/berman/fsf/_today_/berman/native/install/gdb/HEAD/bin/gdb -nw -nx'. Program terminated with signal 11, Segmentation fault. Reading symbols from /usr/lib/libncurses.so.5...done. Loaded symbols for /usr/lib/libncurses.so.5 Reading symbols from /usr/X11R6/lib/libX11.so.6...done. Loaded symbols for /usr/X11R6/lib/libX11.so.6 Reading symbols from /lib/libdl.so.2...done. Loaded symbols for /lib/libdl.so.2 Reading symbols from /lib/i686/libm.so.6...done. Loaded symbols for /lib/i686/libm.so.6 Reading symbols from /lib/i686/libc.so.6...done. Loaded symbols for /lib/i686/libc.so.6 Reading symbols from /lib/ld-linux.so.2...done. Loaded symbols for /lib/ld-linux.so.2 Reading symbols from /lib/libthread_db.so.1...done. Loaded symbols for /lib/libthread_db.so.1 #0 dwarf_decode_lines (offset=185, comp_dir=0x0, abfd=0x8409c10, cu_header=0xbfffe000) at /berman/fsf/_today_/source/gdb/HEAD/src/gdb/dwarf2read.c:4070 4070 lh.standard_opcode_lengths[0] = 1; (gdb) set height 0 (gdb) backtrace #0 dwarf_decode_lines (offset=185, comp_dir=0x0, abfd=0x8409c10, cu_header=0xbfffe000) at /berman/fsf/_today_/source/gdb/HEAD/src/gdb/dwarf2read.c:4070 #1 0x0812b80c in read_file_scope (die=0x8417668, objfile=0x841ff90, cu_header=0xbfffe000) at /berman/fsf/_today_/source/gdb/HEAD/src/gdb/dwarf2read.c:1678 #2 0x0812b37c in psymtab_to_symtab_1 (pst=0x842bd84) at /berman/fsf/_today_/source/gdb/HEAD/src/gdb/dwarf2read.c:1449 #3 0x0812b232 in dwarf2_psymtab_to_symtab (pst=0x842bd84) at /berman/fsf/_today_/source/gdb/HEAD/src/gdb/dwarf2read.c:1396 #4 0x080a5f89 in psymtab_to_symtab (pst=0x842bd84) at /berman/fsf/_today_/source/gdb/HEAD/src/gdb/symfile.c:374 #5 0x080a17c9 in lookup_symbol_aux (name=0xbffff040 "var_in_b", mangled_name=0x0, block=0x0, namespace=VAR_NAMESPACE, is_a_field_of_this=0xbfffe170, symtab=0x0) at /berman/fsf/_today_/source/gdb/HEAD/src/gdb/symtab.c:923 #6 0x080a13b4 in lookup_symbol (name=0xbffff040 "var_in_b", block=0x0, namespace=VAR_NAMESPACE, is_a_field_of_this=0xbfffe170, symtab=0x0) at /berman/fsf/_today_/source/gdb/HEAD/src/gdb/symtab.c:716 #7 0x08119a93 in c_lex () at /berman/fsf/_today_/source/gdb/HEAD/src/gdb/c-exp.y:1622 #8 0x08119275 in c_parse () at /berman/migchain/install/native/bison-1.35/share/bison/bison.simple:573 #9 0x080dc2c1 in parse_exp_1 (stringptr=0xbffff080, block=0x0, comma=0) at /berman/fsf/_today_/source/gdb/HEAD/src/gdb/parse.c:1153 #10 0x080dc3b5 in parse_expression (string=0x83d996e "var_in_b") at /berman/fsf/_today_/source/gdb/HEAD/src/gdb/parse.c:1191 #11 0x0809e0d9 in print_command_1 (exp=0x83d996e "var_in_b", inspect=0, voidprint=1) at /berman/fsf/_today_/source/gdb/HEAD/src/gdb/printcmd.c:922 #12 0x0809e2f3 in print_command (exp=0x83d996e "var_in_b", from_tty=1) at /berman/fsf/_today_/source/gdb/HEAD/src/gdb/printcmd.c:988 #13 0x081538c4 in do_cfunc (c=0x83e18b0, args=0x83d996e "var_in_b", from_tty=1) at /berman/fsf/_today_/source/gdb/HEAD/src/gdb/cli/cli-decode.c:52 #14 0x080f3093 in execute_command (p=0x83d9975 "b", from_tty=1) at /berman/fsf/_today_/source/gdb/HEAD/src/gdb/top.c:711 #15 0x080b9a2d in command_handler (command=0x83d9968 "print var_in_b") at /berman/fsf/_today_/source/gdb/HEAD/src/gdb/event-top.c:504 #16 0x080b9ef3 in command_line_handler (rl=0x83edd80 "print var_in_b") at /berman/fsf/_today_/source/gdb/HEAD/src/gdb/event-top.c:797 #17 0x081b9dd6 in rl_callback_read_char () at /berman/fsf/_today_/source/gdb/HEAD/src/readline/callback.c:114 #18 0x080b93bb in rl_callback_read_char_wrapper (client_data=0x0) at /berman/fsf/_today_/source/gdb/HEAD/src/gdb/event-top.c:168 #19 0x080b991f in stdin_event_handler (error=0, client_data=0x0) at /berman/fsf/_today_/source/gdb/HEAD/src/gdb/event-top.c:418 #20 0x081075e7 in handle_file_event (event_file_desc=0) at /berman/fsf/_today_/source/gdb/HEAD/src/gdb/event-loop.c:714 #21 0x0810705e in process_event () at /berman/fsf/_today_/source/gdb/HEAD/src/gdb/event-loop.c:335 #22 0x081070ab in gdb_do_one_event (data=0x0) at /berman/fsf/_today_/source/gdb/HEAD/src/gdb/event-loop.c:372 #23 0x080f2d1f in do_catch_errors (uiout=0x83f7908, data=0xbffff380) at /berman/fsf/_today_/source/gdb/HEAD/src/gdb/top.c:492 #24 0x080f2c61 in catcher (func=0x80f2d10 , func_uiout=0x83f7908, func_args=0xbffff380, func_val=0xbffff378, func_caught=0xbffff37c, errstring=0x832bda0 "", mask=6) at /berman/fsf/_today_/source/gdb/HEAD/src/gdb/top.c:424 #25 0x080f2d66 in catch_errors (func=0x8107080 , func_args=0x0, errstring=0x832bda0 "", mask=6) at /berman/fsf/_today_/source/gdb/HEAD/src/gdb/top.c:504 #26 0x081070e3 in start_event_loop () at /berman/fsf/_today_/source/gdb/HEAD/src/gdb/event-loop.c:396 #27 0x0808ad41 in captured_command_loop (data=0x0) at /berman/fsf/_today_/source/gdb/HEAD/src/gdb/main.c:94 #28 0x080f2d1f in do_catch_errors (uiout=0x83f7908, data=0xbffff4f0) at /berman/fsf/_today_/source/gdb/HEAD/src/gdb/top.c:492 #29 0x080f2c61 in catcher (func=0x80f2d10 , func_uiout=0x83f7908, func_args=0xbffff4f0, func_val=0xbffff4e8, func_caught=0xbffff4ec, errstring=0x82fc51e "", mask=6) at /berman/fsf/_today_/source/gdb/HEAD/src/gdb/top.c:424 #30 0x080f2d66 in catch_errors (func=0x808ad30 , func_args=0x0, errstring=0x82fc51e "", mask=6) at /berman/fsf/_today_/source/gdb/HEAD/src/gdb/top.c:504 #31 0x0808b313 in captured_main (data=0xbffff7b0) at /berman/fsf/_today_/source/gdb/HEAD/src/gdb/main.c:723 #32 0x080f2d1f in do_catch_errors (uiout=0x838e3e0, data=0xbffff790) at /berman/fsf/_today_/source/gdb/HEAD/src/gdb/top.c:492 #33 0x080f2c61 in catcher (func=0x80f2d10 , func_uiout=0x838e3e0, func_args=0xbffff790, func_val=0xbffff788, func_caught=0xbffff78c, errstring=0x82fc51e "", mask=6) at /berman/fsf/_today_/source/gdb/HEAD/src/gdb/top.c:424 #34 0x080f2d66 in catch_errors (func=0x808ad80 , func_args=0xbffff7b0, errstring=0x82fc51e "", mask=6) at /berman/fsf/_today_/source/gdb/HEAD/src/gdb/top.c:504 #35 0x0808b89a in main (argc=3, argv=0xbffff824) at /berman/fsf/_today_/source/gdb/HEAD/src/gdb/main.c:734 #36 0x4018e507 in __libc_start_main (main=0x808b870
, argc=3, ubp_av=0xbffff824, init=0x8089430 <_init>, fini=0x82fc3b0 <_fini>, rtld_fini=0x4000dc14 <_dl_fini>, stack_end=0xbffff81c) at ../sysdeps/generic/libc-start.c:129 (gdb) quit [mec@berman 2002-05-01c,native,i686-pc-linux-gnu%rh-7.2,HEAD,3.0.4,g-dwarf-2]$ e xit Script done on Fri May 3 22:30:33 2002