From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13229 invoked by alias); 21 Nov 2013 19:29:25 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 13202 invoked by uid 48); 21 Nov 2013 19:29:24 -0000 From: "smaximov at yahoo dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/16201] New: internal error on a cygwin program linked against a DLL with no .data section Date: Thu, 21 Nov 2013 19:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 7.6 X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: smaximov at yahoo dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-q4/txt/msg00350.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=16201 Bug ID: 16201 Summary: internal error on a cygwin program linked against a DLL with no .data section Product: gdb Version: 7.6 Status: NEW Severity: critical Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: smaximov at yahoo dot com An internal error in gdb prevents debugging any Cygwin program linked against a DLL without a .data section: /netrel/src/gdb-7.6.50-4/gdb/minsyms.c:885: internal-error: sect_index_data not initialized A problem internal to GDB has been detected, further debugging may prove unreliable. Quit this debugging session? (y or n) y /netrel/src/gdb-7.6.50-4/gdb/minsyms.c:885: internal-error: sect_index_data not initialized A problem internal to GDB has been detected, further debugging may prove unreliable. Create a core file of GDB? (y or n) n Environment: $ uname -a CYGWIN_NT-6.1-WOW64 my-PC 1.7.25(0.270/5/3) 2013-08-31 20:39 i686 Cygwin $ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i686-pc-cygwin/4.8.2/lto-wrapper.exe Target: i686-pc-cygwin Configured with: /cygdrive/i/szsz/tmpp/cygwin64/gcc/gcc-4.8.2-1/src/gcc-4.8.2/configure --srcdir=/cygdrive/i/szsz/tmpp/cygwin64/gcc/gcc-4.8.2-1/src/gcc-4.8.2 --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec --datadir=/usr/share --localstatedir=/var --sysconfdir=/etc --libdir=/usr/lib --datarootdir=/usr/share --docdir=/usr/share/doc/gcc -C --build=i686-pc-cygwin --host=i686-pc-cygwin --target=i686-pc-cygwin --without-libiconv-prefix --without-libintl-prefix --enable-shared --enable-shared-libgcc --enable-static --enable-version-specific-runtime-libs --enable-bootstrap --disable-__cxa_atexit --with-dwarf2 --with-arch=i686 --with-tune=generic --disable-sjlj-exceptions --enable-languages=ada,c,c++,fortran,java,lto,objc,obj-c++ --enable-graphite --enable-threads=posix --enable-libatomic --enable-libgomp --disable-libitm --enable-libquadmath --enable-libquadmath-support --enable-libssp --enable-libada --enable-libjava --enable-libgcj-sublibs --disable-java-awt --disable-symvers --with-ecj-jar=/usr/share/java/ecj.jar --with-gnu-ld --with-gnu-as --with-cloog-include=/usr/include/cloog-isl --without-libiconv-prefix --without-libintl-prefix --with-system-zlib Thread model: posix gcc version 4.8.2 (GCC) How-To-Repeat: $ cat test1.c int icudt49_dat(int); int main() { icudt49_dat(0); return 0; } $ gcc -g -L. -o test1 test1.c -licudt49 $ gdb --args test1 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 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: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". .. Reading symbols from /home/user/test/test1...done. (gdb) ru Starting program: /home/user/test/test1 [New Thread 12768.0x1ce4] /netrel/src/gdb-7.6.50-4/gdb/minsyms.c:885: internal-error: sect_index_data not initialized A problem internal to GDB has been detected, further debugging may prove unreliable. Quit this debugging session? (y or n) y /netrel/src/gdb-7.6.50-4/gdb/minsyms.c:885: internal-error: sect_index_data not initialized A problem internal to GDB has been detected, further debugging may prove unreliable. Create a core file of GDB? (y or n) n $ ldd test1.exe ntdll.dll => /cygdrive/c/Windows/SysWOW64/ntdll.dll (0x77320000) kernel32.dll => /cygdrive/c/Windows/syswow64/kernel32.dll (0x76950000) KERNELBASE.dll => /cygdrive/c/Windows/syswow64/KERNELBASE.dll (0x753d0000) cygwin1.dll => /usr/bin/cygwin1.dll (0x61000000) icudt49.dll => /home/user/test/icudt49.dll (0x62c40000) $ objdump -h test1.exe test1.exe: file format pei-i386 Sections: Idx Name Size VMA LMA File off Algn 0 .text 00000768 00401000 00401000 00000400 2**4 CONTENTS, ALLOC, LOAD, READONLY, CODE, DATA 1 .data 000000d8 00402000 00402000 00000c00 2**5 CONTENTS, ALLOC, LOAD, DATA 2 .rdata 00000018 00403000 00403000 00000e00 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA 3 .eh_frame 0000036c 00404000 00404000 00001000 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA 4 .bss 00000110 00405000 00405000 00000000 2**5 ALLOC 5 .idata 00000248 00406000 00406000 00001400 2**2 CONTENTS, ALLOC, LOAD, DATA 6 .debug_aranges 00000198 00407000 00407000 00001800 2**0 CONTENTS, READONLY, DEBUGGING 7 .debug_info 00006366 00408000 00408000 00001a00 2**0 CONTENTS, READONLY, DEBUGGING 8 .debug_abbrev 00000c33 0040f000 0040f000 00007e00 2**0 CONTENTS, READONLY, DEBUGGING 9 .debug_line 00000cb5 00410000 00410000 00008c00 2**0 CONTENTS, READONLY, DEBUGGING 10 .debug_str 00000043 00411000 00411000 00009a00 2**0 CONTENTS, READONLY, DEBUGGING 11 .debug_loc 0000027f 00412000 00412000 00009c00 2**0 CONTENTS, READONLY, DEBUGGING 12 .debug_ranges 00000018 00413000 00413000 0000a000 2**0 CONTENTS, READONLY, DEBUGGING $ objdump -h icudt49.dll icudt49.dll: file format pei-i386 Sections: Idx Name Size VMA LMA File off Algn 0 .rdata 0111f4fa 10001000 10001000 00000400 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA 1 .rsrc 00000458 11121000 11121000 0111fa00 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA -- You are receiving this mail because: You are on the CC list for the bug.