public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "smaximov at yahoo dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug gdb/16201] internal error on a cygwin program linked against a DLL with no .data section
Date: Mon, 25 Nov 2013 18:30:00 -0000	[thread overview]
Message-ID: <bug-16201-4717-BRC6c7XxHh@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-16201-4717@http.sourceware.org/bugzilla/>

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

--- Comment #11 from Stas Maximov <smaximov at yahoo dot com> ---
Hi Tom, thanks to Keith's suggestion, here is the backtrace for the point of
failure:

$ 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 0x5cb530: file ../../gdb-7.6.50-4/gdb/utils.c, line 839.
(gdb) ru
Starting program: /usr/local/bin/gdb test1.exe
[New Thread 14808.0x1d60]
[New Thread 14808.0x3b6c]
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 /home/user/test/test1.exe...done.
(gdb) [New Thread 14808.0xb44]
[New Thread 14808.0x3514]
run
run
Starting program: /home/user/test/test1.exe 
[New Thread 14704.0x2bcc]

Breakpoint 1, internal_error (file=file@entry=0x729c38
<__PRETTY_FUNCTION__.21996+1640> "../../gdb-7.6.50-4/gdb/minsyms.c", 
    line=line@entry=885, string=0x729dd8 <__PRETTY_FUNCTION__.21996+2056>
"sect_index_data not initialized")
    at ../../gdb-7.6.50-4/gdb/utils.c:839
839     {
(gdb) bt
#0  internal_error (file=file@entry=0x729c38 <__PRETTY_FUNCTION__.21996+1640>
"../../gdb-7.6.50-4/gdb/minsyms.c", 
    line=line@entry=885, string=0x729dd8 <__PRETTY_FUNCTION__.21996+2056>
"sect_index_data not initialized")
    at ../../gdb-7.6.50-4/gdb/utils.c:839
#1  0x00545c86 in prim_record_minimal_symbol (name=name@entry=0x801a7f38
"icudt49!icudt49_dat", 
    address=address@entry=1645875200, ms_type=mst_data,
objfile=objfile@entry=0x803e8c60)
    at ../../gdb-7.6.50-4/gdb/minsyms.c:885
#2  0x005501ce in add_pe_exported_sym (sym_name=0x8019f156 "icudt49_dat",
func_rva=<optimized out>, ordinal=<optimized out>, 
    section_data=0x801a7e8c, dll_name=dll_name@entry=0x8019f14a "icudt49",
objfile=0x803e8c60)
    at ../../gdb-7.6.50-4/gdb/coff-pe-read.c:178
#3  0x00550ad5 in read_pe_exported_syms (objfile=objfile@entry=0x803e8c60) at
../../gdb-7.6.50-4/gdb/coff-pe-read.c:585
#4  0x0054fbf2 in coff_symtab_read (objfile=0x803e8c60, nsyms=0,
symtab_offset=<optimized out>)
    at ../../gdb-7.6.50-4/gdb/coffread.c:1187
#5  coff_symfile_read (objfile=0x803e8c60, symfile_flags=8) at
../../gdb-7.6.50-4/gdb/coffread.c:646
#6  0x004e8c9b in read_symbols (objfile=objfile@entry=0x803e8c60,
add_flags=add_flags@entry=8)
    at ../../gdb-7.6.50-4/gdb/symfile.c:830
#7  0x004e8879 in syms_from_objfile_1 (add_flags=8, addrs=0x80166a40,
objfile=0x803e8c60)
    at ../../gdb-7.6.50-4/gdb/symfile.c:998
#8  syms_from_objfile (add_flags=8, addrs=0x80166a40, objfile=0x803e8c60) at
../../gdb-7.6.50-4/gdb/symfile.c:1014
#9  symbol_file_add_with_addrs (abfd=<optimized out>, add_flags=8,
addrs=addrs@entry=0x80166a40, flags=2, parent=0x0)
    at ../../gdb-7.6.50-4/gdb/symfile.c:1109
#10 0x004e8d31 in symbol_file_add_from_bfd (abfd=<optimized out>,
add_flags=<optimized out>, add_flags@entry=8, 
    addrs=addrs@entry=0x80166a40, flags=flags@entry=2, parent=parent@entry=0x0)
at ../../gdb-7.6.50-4/gdb/symfile.c:1196
#11 0x005dd5fe in solib_read_symbols (so=so@entry=0x80199200,
flags=flags@entry=8) at ../../gdb-7.6.50-4/gdb/solib.c:611
#12 0x005dda91 in solib_add (pattern=pattern@entry=0x0,
from_tty=from_tty@entry=0, 
    target=target@entry=0x877cc0 <current_target>, readsyms=1) at
../../gdb-7.6.50-4/gdb/solib.c:922
#13 0x004f636b in post_create_inferior (target=0x877cc0 <current_target>,
from_tty=from_tty@entry=0)
    at ../../gdb-7.6.50-4/gdb/infcmd.c:451
#14 0x004f69c7 in run_command_1 (args=0x0, from_tty=<optimized out>,
tbreak_at_main=<optimized out>)
    at ../../gdb-7.6.50-4/gdb/infcmd.c:603
#15 0x005c773e in execute_command (p=<optimized out>, p@entry=0x8003acf8 "",
from_tty=1) at ../../gdb-7.6.50-4/gdb/top.c:478
#16 0x00516238 in command_handler (command=0x8003acf8 "") at
../../gdb-7.6.50-4/gdb/event-top.c:433
#17 0x005165c1 in command_line_handler (rl=0x80161e60 "") at
../../gdb-7.6.50-4/gdb/event-top.c:631
#18 0x0060987e in rl_callback_read_char () at
../../gdb-7.6.50-4/readline/callback.c:220
#19 0x005162a8 in rl_callback_read_char_wrapper (client_data=0x0) at
../../gdb-7.6.50-4/gdb/event-top.c:164
#20 0x0051484e in handle_file_event (data=data@entry=...) at
../../gdb-7.6.50-4/gdb/event-loop.c:768
#21 0x00514fa4 in process_event () at ../../gdb-7.6.50-4/gdb/event-loop.c:342
#22 0x005152a7 in gdb_do_one_event () at
../../gdb-7.6.50-4/gdb/event-loop.c:394
#23 0x005154ee in start_event_loop () at
../../gdb-7.6.50-4/gdb/event-loop.c:431
#24 0x0050f282 in captured_command_loop (data=0x0) at
../../gdb-7.6.50-4/gdb/main.c:260
#25 0x0050d959 in catch_errors (func=func@entry=0x50f270
<captured_command_loop>, func_args=func_args@entry=0x0, 
    errstring=errstring@entry=0x70e766 <__PRETTY_FUNCTION__.13081+203> "",
mask=mask@entry=6)
    at ../../gdb-7.6.50-4/gdb/exceptions.c:546
#26 0x00510089 in captured_main (data=0x2dbabe0) at
../../gdb-7.6.50-4/gdb/main.c:1057
#27 0x0050d959 in catch_errors (func=func@entry=0x50f540 <captured_main>,
func_args=func_args@entry=0x2dbabe0, 
    errstring=errstring@entry=0x70e766 <__PRETTY_FUNCTION__.13081+203> "",
mask=mask@entry=6)
    at ../../gdb-7.6.50-4/gdb/exceptions.c:546
#28 0x005105b0 in gdb_main (args=args@entry=0x2dbabe0) at
../../gdb-7.6.50-4/gdb/main.c:1066
#29 0x006a4bc8 in main (argc=2, argv=0x2dbac1c) at
../../gdb-7.6.50-4/gdb/gdb.c:34
(gdb)

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


  parent reply	other threads:[~2013-11-25 18:30 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-21 19:29 [Bug gdb/16201] New: " smaximov at yahoo dot com
2013-11-21 20:37 ` [Bug gdb/16201] " smaximov at yahoo dot com
2013-11-21 21:09 ` smaximov at yahoo dot com
2013-11-21 21:30 ` tromey at redhat dot com
2013-11-21 21:36 ` smaximov at yahoo dot com
2013-11-21 21:39 ` tromey at redhat dot com
2013-11-21 21:54 ` smaximov at yahoo dot com
2013-11-21 22:01 ` tromey at redhat dot com
2013-11-21 22:04 ` smaximov at yahoo dot com
2013-11-22 15:58 ` tromey at redhat dot com
2013-11-22 23:48 ` smaximov at yahoo dot com
2013-11-23 17:23 ` keiths at redhat dot com
2013-11-25 18:30 ` smaximov at yahoo dot com [this message]
2013-11-25 21:33 ` tromey at redhat dot com
2013-11-25 21:56 ` tromey at redhat dot com
2013-11-26  0:21 ` smaximov at yahoo dot com
2013-11-26  2:20 ` muller at sourceware dot org
2013-11-26  3:13 ` smaximov at yahoo dot com
2013-11-27  0:04 ` smaximov at yahoo dot com
2013-12-02 11:33 ` asmwarrior at gmail dot com
2013-12-21  0:49 ` smaximov at yahoo dot com
2013-12-21  1:02 ` asmwarrior at gmail dot com
2023-12-09 12:46 ` ssbssa at sourceware dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-16201-4717-BRC6c7XxHh@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).