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: Tue, 26 Nov 2013 00:21:00 -0000	[thread overview]
Message-ID: <bug-16201-4717-T3Rjrg7xFY@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 #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.


  parent reply	other threads:[~2013-11-26  0:21 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
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 [this message]
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-T3Rjrg7xFY@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).