segfault fault at startup

Morten Welinder terra at gnome.org
Sun May 30 21:29:15 CDT 2004


No change with 'set follow-fork-mode child', or even '... ask'.

With strace, I get...

strace -i $WINELOADER
[...]
[40113d71] close(9)                     = 0
[400f0c37] getpid()                     = 30133
[40113ce3] open("/tmp/reg75b50000.tmp", O_WRONLY|O_CREAT|O_EXCL|O_LARGEFILE, 0666) = 9
[401140b8] fcntl64(9, F_GETFL)          = 0x8001 (flags O_WRONLY|O_LARGEFILE)
[40112dcb] fstat64(9, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
[4011e6ed] old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40032000
[40121ce7] _llseek(9, 0, [0], SEEK_CUR) = 0
[400b7fdc] --- SIGSEGV (Segmentation fault) @ 0 (0) ---
upeek: ptrace(PTRACE_PEEKUSER,30133,48,0): No such process
[????????] +++ killed by SIGSEGV +++

Hmm...

welinder at anemone:~/wine> printenv | grep WINE
WINESERVER=/home/welinder/wine/server/wineserver
WINELOADER=/home/welinder/wine/loader/wine
WINEDLLPATH=/home/welinder/wine/dlls:/home/welinder/wine/programs:/home/welinder/wine/dlls:/home/welinder/wine/programs


welinder at anemone:~/wine> gdb $WINELOADER 
GNU gdb 5.3.92
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i586-suse-linux"...
(gdb) tb main
Breakpoint 1 at 0x8048857: file glibc.c, line 76.
(gdb) r
Starting program: /home/welinder/wine/loader/wine 
[New Thread 16384 (LWP 30150)]
[Switching to Thread 16384 (LWP 30150)]
main (argc=1, argv=0xbffff414) at glibc.c:76
76          const char *loader = getenv( "WINELOADER" );
(gdb) info symbol 0x400b7fdc
nl_langinfo + 60 in section .text

(I'm not sure I believe that)

Morten



More information about the wine-devel mailing list