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 #5 from Stas Maximov <smaximov at yahoo dot com> ---
This appears to be COFF-PE specific. It is not likely to be repeatable on a
platform other than 32-bit Cygwin.

If it helps, here is the result of coff-pe-read trace:

...
$ gdb test1
(gdb) set debug coff-pe-read 1
(gdb) run
Starting program: /home/user/test/test1.exe 
[New Thread 8076.0x29e8]
Export RVA for dll "/cygdrive/c/Windows/system32/ntdll.dll" is in section
".text"
DLL "ntdll" has 2025 export entries, base=1
Finished reading "ntdll", exports 2025, forwards 0, total 2025/2025.
Export RVA for dll "/cygdrive/c/Windows/syswow64/kernel32.dll" is in section
".text"
DLL "KERNEL32" has 1364 export entries, base=1
Unable to find function "AddDllDirectory" in dll
"api-ms-win-core-libraryloader-l1-1-0", forward of "AddDllDirectory" in dll
"KERNEL32"
Unable to find function "CreateRemoteThreadEx" in dll
"api-ms-win-core-processthreads-l1-1-0", forward of "CreateRemoteThreadEx" in
dll "KERNEL32"
Unable to find function "DeleteProcThreadAttributeList" in dll
"api-ms-win-core-processthreads-l1-1-0", forward of
"DeleteProcThreadAttributeList" in dll "KERNEL32"
Unable to find function "GetLogicalProcessorInformationEx" in dll
"api-ms-win-core-sysinfo-l1-1-0", forward of "GetLogicalProcessorInformationEx"
in dll "KERNEL32"
Unable to find function "InitializeProcThreadAttributeList" in dll
"api-ms-win-core-processthreads-l1-1-0", forward of
"InitializeProcThreadAttributeList" in dll "KERNEL32"
Unable to find function "OpenProcessToken" in dll
"api-ms-win-core-processthreads-l1-1-0", forward of "OpenProcessToken" in dll
"KERNEL32"
Unable to find function "OpenThreadToken" in dll
"api-ms-win-core-processthreads-l1-1-0", forward of "OpenThreadToken" in dll
"KERNEL32"
Unable to find function "RemoveDllDirectory" in dll
"api-ms-win-core-libraryloader-l1-1-0", forward of "RemoveDllDirectory" in dll
"KERNEL32"
Unable to find function "SetDefaultDllDirectories" in dll
"api-ms-win-core-libraryloader-l1-1-0", forward of "SetDefaultDllDirectories"
in dll "KERNEL32"
Unable to find function "SetThreadToken" in dll
"api-ms-win-core-processthreads-l1-1-0", forward of "SetThreadToken" in dll
"KERNEL32"
Unable to find function "SetWaitableTimerEx" in dll
"api-ms-win-core-threadpool-l1-1-0", forward of "SetWaitableTimerEx" in dll
"KERNEL32"
Unable to find function "SystemTimeToTzSpecificLocalTimeEx" in dll
"kernelbase", forward of "SystemTimeToTzSpecificLocalTimeEx" in dll "KERNEL32"
Unable to find function "TzSpecificLocalTimeToSystemTimeEx" in dll
"kernelbase", forward of "TzSpecificLocalTimeToSystemTimeEx" in dll "KERNEL32"
Unable to find function "UpdateProcThreadAttribute" in dll
"api-ms-win-core-processthreads-l1-1-0", forward of "UpdateProcThreadAttribute"
in dll "KERNEL32"
Finished reading "KERNEL32", exports 1282, forwards 68, total 1350/1364.
Export RVA for dll "/cygdrive/c/Windows/syswow64/KERNELBASE.dll" is in section
".text"
DLL "KERNELBASE" has 633 export entries, base=1
Finished reading "KERNELBASE", exports 576, forwards 57, total 633/633.
Export RVA for dll "/home/user/test/icudt49.dll" is in section ".rdata"
DLL "icudt49" has 1 export entries, base=1
/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

-- 
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]