ntdll compile error
Chris Underhill
usenet at REMOVE-THIS.tart.net
Wed Aug 15 10:18:26 CDT 2001
gerard patel wrote:
> Do you have a vanilla system, or did you do upgrades of
> tools or libraries ? (If yes, don't forget to make distclean
> at the top level directory)
I have exactly the same problem. It's Red Hat 7.1+updates machine with
gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-85), glibc-2.2.2,
Pentium III, kernel 2.4.7-ac9.
I can cause it by setting my LD_LIBRARY_PATH appropriately and running
cd dlls/ntdll
../../tools/winebuild/winebuild -fPIC -L../../dlls -o ntdll.spec.c
-spec ./ntdll.spec
Using gdb and comparing the backtrace (all ???) with /proc/<pid>/maps
reveals an address associated with /lib/ld-2.2.2.so. Running strace -fF
gives the below.
Note that I'm pretty sure the hardware is stable as it has been running
for over a year with no problems using Red Hat 6.2+updates (including
building wine), and this only started happening after upgrading to 7.1.
Cheers,
Chris.
execve("../../tools/winebuild/winebuild",
["../../tools/winebuild/winebuild", "-fPIC", "-L../../dlls", "-o",
"ntdll.spec.c", "-spec", "./ntdll.spec"], [/* 42 vars */]) = 0
uname({sys="Linux", node="cunderhill", ...}) = 0
brk(0) = 0x811a470
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x40017000
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/usr/src/build/wine-20010731/dlls/ntdll/../../unicode/i686/mmx/libwine_unicode.so",
O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/src/build/wine-20010731/dlls/ntdll/../../unicode/i686/mmx",
0xbfffe7cc) = -1 ENOENT (No such file or directory)
open("/usr/src/build/wine-20010731/dlls/ntdll/../../unicode/i686/libwine_unicode.so",
O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/src/build/wine-20010731/dlls/ntdll/../../unicode/i686",
0xbfffe7cc) = -1 ENOENT (No such file or
directory)open("/usr/src/build/wine-20010731/dlls/ntdll/../../unicode/mmx/libwine_unicode.so",
O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/src/build/wine-20010731/dlls/ntdll/../../unicode/mmx",
0xbfffe7cc) = -1 ENOENT (No such file or directory)
open("/usr/src/build/wine-20010731/dlls/ntdll/../../unicode/libwine_unicode.so",
O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\32"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0775, st_size=939534, ...}) = 0
old_mmap(NULL, 816508, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40018000
mprotect(0x400de000, 5500, PROT_NONE) = 0
old_mmap(0x400de000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0xc5000) = 0x400de000
close(3) = 0
open("/usr/src/build/wine-20010731/dlls/ntdll/../../unicode/libc.so.6",
O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/i686/i686/mmx/libc.so.6", O_RDONLY) = -1 ENOENT (No such file
or directory)
stat64("/lib/i686/i686/mmx", 0xbfffe7bc) = -1 ENOENT (No such file or
directory)
open("/lib/i686/i686/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat64("/lib/i686/i686", 0xbfffe7bc) = -1 ENOENT (No such file or
directory)
open("/lib/i686/mmx/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat64("/lib/i686/mmx", 0xbfffe7bc) = -1 ENOENT (No such file or
directory)
open("/lib/i686/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\302"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=5634864, ...}) = 0
old_mmap(NULL, 1242920, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x400e0000
mprotect(0x40206000, 38696, PROT_NONE) = 0
old_mmap(0x40206000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x125000) = 0x40206000
old_mmap(0x4020c000, 14120, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4020c000
close(3) = 0
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++
More information about the wine-users
mailing list