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]

[Bug gdb/16201] internal error on a cygwin program linked against a DLL with no .data section


https://sourceware.org/bugzilla/show_bug.cgi?id=16201

--- Comment #14 from Stas Maximov <smaximov at yahoo dot com> ---
Confirmed the problem on 7.6.50.20131125-cvs snapshot:

$ gdb --args /usr/local/bin/gdb test1.exe 
GNU gdb (GDB) 7.6.50.20130728-cvs (cygwin-special)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-cygwin".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
..
Reading symbols from /usr/local/bin/gdb...done.
(gdb) b internal_error
Breakpoint 1 at 0x5d2ec0: file ../../gdb-7.6.50.20131125/gdb/utils.c, line 826.
(gdb) ru
Starting program: /usr/local/bin/gdb test1.exe
[New Thread 11624.0x1978]
[New Thread 11624.0x48c]
GNU gdb (GDB) 7.6.50.20131125-cvs
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-cygwin".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from test1.exe...done.
(gdb) [New Thread 11624.0x3990]
[New Thread 11624.0x2aa0]
ru
ru
Starting program: /home/user/test/test1.exe 
[New Thread 7868.0x2664]

Breakpoint 1, internal_error (
    file=file@entry=0x734958 <__PRETTY_FUNCTION__.22235+1649>
"../../gdb-7.6.50.20131125/gdb/minsyms.c", line=line@entry=890, 
    string=0x734ad8 <__PRETTY_FUNCTION__.22235+2033> "sect_index_data not
initialized")
    at ../../gdb-7.6.50.20131125/gdb/utils.c:826
826     {
(gdb) bt
#0  internal_error (file=file@entry=0x734958 <__PRETTY_FUNCTION__.22235+1649>
"../../gdb-7.6.50.20131125/gdb/minsyms.c", 
    line=line@entry=890, string=0x734ad8 <__PRETTY_FUNCTION__.22235+2033>
"sect_index_data not initialized")
    at ../../gdb-7.6.50.20131125/gdb/utils.c:826
#1  0x0054ae16 in prim_record_minimal_symbol (name=name@entry=0x8019db78
"icudt49!icudt49_dat", 
    address=address@entry=1585713152, ms_type=mst_data,
objfile=objfile@entry=0x8027a9c8)
    at ../../gdb-7.6.50.20131125/gdb/minsyms.c:890
#2  0x0055538e in add_pe_exported_sym (sym_name=0x8019dcde "icudt49_dat",
func_rva=<optimized out>, ordinal=<optimized out>, 
    section_data=0x8019dab4, dll_name=dll_name@entry=0x8019dcd2 "icudt49",
objfile=0x8027a9c8)
    at ../../gdb-7.6.50.20131125/gdb/coff-pe-read.c:178
#3  0x00555c95 in read_pe_exported_syms (objfile=objfile@entry=0x8027a9c8) at
../../gdb-7.6.50.20131125/gdb/coff-pe-read.c:585
#4  0x00554da6 in coff_symtab_read (objfile=0x8027a9c8, nsyms=0,
symtab_offset=<optimized out>)
    at ../../gdb-7.6.50.20131125/gdb/coffread.c:1200
#5  coff_symfile_read (objfile=0x8027a9c8, symfile_flags=8) at
../../gdb-7.6.50.20131125/gdb/coffread.c:659
#6  0x004eb05b in read_symbols (objfile=objfile@entry=0x8027a9c8,
add_flags=add_flags@entry=8)
    at ../../gdb-7.6.50.20131125/gdb/symfile.c:839
#7  0x004eac49 in syms_from_objfile_1 (add_flags=8, addrs=0x8017bc40,
objfile=0x8027a9c8)
    at ../../gdb-7.6.50.20131125/gdb/symfile.c:1014
#8  syms_from_objfile (add_flags=8, addrs=<optimized out>, objfile=0x8027a9c8)
at ../../gdb-7.6.50.20131125/gdb/symfile.c:1030
#9  symbol_file_add_with_addrs (abfd=<optimized out>, name=<optimized out>,
add_flags=8, addrs=0x8017bc40, flags=2, 
    parent=0x0) at ../../gdb-7.6.50.20131125/gdb/symfile.c:1127
#10 0x004eb10b in symbol_file_add_from_bfd (abfd=<optimized out>,
name=<optimized out>, 
    name@entry=0x80199a10 "/home/user/test/icudt49.dll", add_flags=<optimized
out>, add_flags@entry=8, 
    addrs=addrs@entry=0x8017bc40, flags=flags@entry=2, parent=parent@entry=0x0)
    at ../../gdb-7.6.50.20131125/gdb/symfile.c:1216
#11 0x005e51d7 in solib_read_symbols (so=so@entry=0x80199808,
flags=flags@entry=8)
    at ../../gdb-7.6.50.20131125/gdb/solib.c:630
#12 0x005e5671 in solib_add (pattern=pattern@entry=0x0,
from_tty=from_tty@entry=0, 
    target=target@entry=0x8856a0 <current_target>, readsyms=1) at
../../gdb-7.6.50.20131125/gdb/solib.c:941
#13 0x004f9fbb in post_create_inferior (target=0x8856a0 <current_target>,
from_tty=from_tty@entry=0)
    at ../../gdb-7.6.50.20131125/gdb/infcmd.c:455
#14 0x004fa617 in run_command_1 (args=0x0, from_tty=<optimized out>,
tbreak_at_main=<optimized out>)
    at ../../gdb-7.6.50.20131125/gdb/infcmd.c:607
#15 0x005cf0ee in execute_command (p=<optimized out>, p@entry=0x8003acf8 "",
from_tty=1)
    at ../../gdb-7.6.50.20131125/gdb/top.c:468
#16 0x00519f88 in command_handler (command=0x8003acf8 "") at
../../gdb-7.6.50.20131125/gdb/event-top.c:435
#17 0x0051a3e0 in command_line_handler (rl=0x80039878 "") at
../../gdb-7.6.50.20131125/gdb/event-top.c:632
#18 0x0061165e in rl_callback_read_char () at
../../gdb-7.6.50.20131125/readline/callback.c:220
#19 0x00519ff8 in rl_callback_read_char_wrapper (client_data=0x0) at
../../gdb-7.6.50.20131125/gdb/event-top.c:164
#20 0x0051859e in handle_file_event (data=data@entry=...) at
../../gdb-7.6.50.20131125/gdb/event-loop.c:768
#21 0x00518cf4 in process_event () at
../../gdb-7.6.50.20131125/gdb/event-loop.c:342
#22 0x00518ff7 in gdb_do_one_event () at
../../gdb-7.6.50.20131125/gdb/event-loop.c:394
#23 0x0051923e in start_event_loop () at
../../gdb-7.6.50.20131125/gdb/event-loop.c:431
#24 0x005128e8 in current_interp_command_loop () at
../../gdb-7.6.50.20131125/gdb/interps.c:327
#25 0x00512fb2 in captured_command_loop (data=0x0) at
../../gdb-7.6.50.20131125/gdb/main.c:267
#26 0x00511619 in catch_errors (func=func@entry=0x512fa0
<captured_command_loop>, func_args=func_args@entry=0x0, 
    errstring=errstring@entry=0x71801c <__PRETTY_FUNCTION__.13085+214> "",
mask=mask@entry=RETURN_MASK_ALL)
    at ../../gdb-7.6.50.20131125/gdb/exceptions.c:524
#27 0x00513da4 in captured_main (data=0x2e4abe0) at
../../gdb-7.6.50.20131125/gdb/main.c:1067
#28 0x00511619 in catch_errors (func=func@entry=0x513280 <captured_main>,
func_args=func_args@entry=0x2e4abe0, 
    errstring=errstring@entry=0x71801c <__PRETTY_FUNCTION__.13085+214> "",
mask=mask@entry=RETURN_MASK_ALL)
    at ../../gdb-7.6.50.20131125/gdb/exceptions.c:524
#29 0x005142d0 in gdb_main (args=args@entry=0x2e4abe0) at
../../gdb-7.6.50.20131125/gdb/main.c:1076
#30 0x006ac8c8 in main (argc=2, argv=0x2e4ac1c) at
../../gdb-7.6.50.20131125/gdb/gdb.c:34
(gdb)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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