This is the mail archive of the gdb-prs@sourceware.org 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]

gdb/2009: Segmentation faults on AMD64


>Number:         2009
>Category:       gdb
>Synopsis:       Segmentation faults on AMD64
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 12 14:38:02 UTC 2005
>Closed-Date:
>Last-Modified:
>Originator:     alvaro@alobbs.com
>Release:        6.3.50.20050912
>Organization:
>Environment:
Debian GNU/Linux unstable
>Description:
gdb crashes on AMD64:
=============
$ gdb /usr/sbin/cherokee
GNU gdb 6.3.50.20050912
Copyright 2004 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 "x86_64-unknown-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) b main
Segmentation fault
=============

The same is working on i386. It is crashing on Debian's version as well as on the last snapshot.

This is the backtrace:
=============
#0  0x00000000005104e5 in process_die (die=<value optimized out>, cu=0x8a14c0) at dwarf2read.c:8815
#1  0x00000000005120c2 in psymtab_to_symtab_1 (pst=<value optimized out>) at dwarf2read.c:2601
#2  0x0000000000512239 in dwarf2_psymtab_to_symtab (pst=0x89c8d0) at dwarf2read.c:2336
#3  0x00000000004c1bf1 in psymtab_to_symtab (pst=0x89c8d0) at symfile.c:287
#4  0x00000000004bdd56 in lookup_symbol_aux_psymtabs (block_index=0, name=0x7fffffc2f4a0 "main", linkage_name=0x0, domain=VAR_DOMAIN, symtab=0x0)
    at symtab.c:1277
#5  0x00000000004be0bf in lookup_symbol (name=0x7fffffc2f4a0 "main", block=0x7fffffc2f4a0, domain=VAR_DOMAIN, is_a_field_of_this=0x0, symtab=0x0)
    at symtab.c:1119
#6  0x000000000052d0ad in find_imps (symtab=0x0, block=0x0, method=0x7fa102 "main", syms=0x0, nsym=0x7fffffc2f5bc, ndebug=0x7fffffc2f5b8) at objc-lang.c:1437
#7  0x00000000004c91a0 in decode_objc (argptr=0x7fffffc2f8e8, funfirstline=1, file_symtab=0x0, canonical=0x7fffffc2f998, saved_arg=<value optimized out>)
    at linespec.c:1094
#8  0x00000000004ca043 in decode_line_1 (argptr=0x7fffffc2f8e8, funfirstline=1, default_symtab=0x0, default_line=0, canonical=0x7fffffc2f998, 
    not_found_ptr=0x7fffffc2f9ac) at linespec.c:719
#9  0x000000000049c4ce in parse_breakpoint_sals (address=0x7fffffc2f8e8, sals=0x7fffffc2f970, addr_string=0x7fffffc2f998, not_found_ptr=0x7fffffc2f9ac)
    at breakpoint.c:5054
#10 0x00000000004dbde7 in catch_exception (uiout=0x852060, func=0x49c660 <do_captured_parse_breakpoint>, func_args=0x7fffffc2f950, mask=<value optimized out>)
    at exceptions.c:469
#11 0x000000000049c909 in break_command_1 (arg=0x7fa102 "main", flag=0, from_tty=1, pending_bp=0x0) at breakpoint.c:5161
#12 0x000000000044897d in execute_command (p=0x7fa105 "n", from_tty=1) at top.c:450
#13 0x00000000004dfd35 in command_handler (command=0x7fa100 "b main") at event-top.c:508
#14 0x00000000004e0161 in command_line_handler (rl=0x812b95 "n") at event-top.c:793
#15 0x000000000057a7b1 in rl_callback_read_char () at callback.c:123
#16 0x00000000004df589 in rl_callback_read_char_wrapper (client_data=<value optimized out>) at event-top.c:174
#17 0x00000000004de74c in process_event () at event-loop.c:341
#18 0x00000000004df111 in gdb_do_one_event (data=<value optimized out>) at event-loop.c:378
#19 0x00000000004dbfc4 in catch_errors (func=0x4def50 <gdb_do_one_event>, func_args=0x0, errstring=0x5f899f "", mask=<value optimized out>) at exceptions.c:515
#20 0x0000000000489756 in tui_command_loop (data=<value optimized out>) at .././gdb/tui/tui-interp.c:151
#21 0x000000000043e899 in captured_command_loop (data=<value optimized out>) at .././gdb/main.c:92
#22 0x00000000004dbfc4 in catch_errors (func=0x43e890 <captured_command_loop>, func_args=0x0, errstring=0x5f899f "", mask=<value optimized out>)
    at exceptions.c:515
#23 0x000000000043eec6 in captured_main (data=<value optimized out>) at .././gdb/main.c:797
#24 0x00000000004dbfc4 in catch_errors (func=0x43e900 <captured_main>, func_args=0x7fffffc2fe10, errstring=0x5f899f "", mask=<value optimized out>)
    at exceptions.c:515
#25 0x000000000043e8f4 in gdb_main (args=<value optimized out>) at .././gdb/main.c:806
#26 0x000000000043e886 in main (argc=<value optimized out>, argv=<value optimized out>) at gdb.c:35
=============
>How-To-Repeat:
Just run gdb and try to set a break point.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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