Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28612 - Wine segfaults
Summary: Wine segfaults
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: Wine Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-13 08:15 UTC by JoWilly
Modified: 2003-09-25 19:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description JoWilly 2003-09-13 08:15:32 UTC
Wine 20030811 was running fine. But suddenly this happened. I have remerged it,
and since also updated it to wine 09112003, it is the same:

# wine
/usr/bin/wine: line 48: 26924 Segmentation fault      "$RUNWINE" --debugmsg -all
"$@"
-----


# strace wine
execve("/usr/bin/wine", ["wine"], [/* 54 vars */]) = 0
uname({sys="Linux", node="gentoo", ...}) = 0
brk(0)                                  = 0x810a000
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=90677, ...}) = 0
mmap2(NULL, 90677, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40000000
close(3)                                = 0
open("/lib/libdl.so.2", 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\375z\1"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=14699, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40017000
mmap2(0x41016000, 11976, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x41016000
mmap2(0x41018000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1) =
0x41018000
close(3)                                = 0
open("/lib/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\0Q-TA4\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1435149, ...}) = 0
mmap2(0x4152d000, 1205924, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4152d000
mmap2(0x4164e000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x121)
= 0x4164e000
mmap2(0x41651000, 9892, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x41651000
close(3)                                = 0
munmap(0x40000000, 90677)               = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
open("/dev/tty", O_RDWR|O_NONBLOCK|O_LARGEFILE) = 3
close(3)                                = 0
brk(0)                                  = 0x810a000
brk(0x812b000)                          = 0x812b000
brk(0)                                  = 0x812b000
getuid32()                              = 0
getgid32()                              = 0
geteuid32()                             = 0
getegid32()                             = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
time(NULL)                              = 1063473464
open("/etc/mtab", O_RDONLY)             = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=456, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40018000
read(3, "/dev/md0 / reiserfs rw,noatime,n"..., 131072) = 456
close(3)                                = 0
munmap(0x40018000, 131072)              = 0
open("/proc/meminfo", O_RDONLY)         = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40018000
read(3, "MemTotal:      1034548 kB\nMemFre"..., 1024) = 572
close(3)                                = 0
munmap(0x40018000, 4096)                = 0
rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_DFL}, 8) = 0
uname({sys="Linux", node="gentoo", ...}) = 0
stat64("/home/charlie", {st_mode=S_IFDIR|0700, st_size=4584, ...}) = 0
stat64(".", {st_mode=S_IFDIR|0700, st_size=4584, ...}) = 0
getpid()                                = 26969
getppid()                               = 26968
socket(PF_UNIX, SOCK_STREAM, 0)         = 3
connect(3, {sa_family=AF_UNIX, path="/var/run/.nscd_socket"}, 110) = -1 ENOENT
(No such file or directory)
close(3)                                = 0
open("/etc/nsswitch.conf", O_RDONLY)    = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=498, ...}) = 0
mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40018000
read(3, "# /etc/nsswitch.conf:\n# $Header:"..., 131072) = 498
read(3, "", 131072)                     = 0
close(3)                                = 0
munmap(0x40018000, 131072)              = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=90677, ...}) = 0
mmap2(NULL, 90677, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000
close(3)                                = 0
open("/lib/libnss_compat.so.2", 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\240\21"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=32615, ...}) = 0
mmap2(NULL, 29796, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4002f000
mmap2(0x40036000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x6) =
0x40036000
close(3)                                = 0
open("/lib/libnsl.so.1", 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 \213\n"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=90227, ...}) = 0
mmap2(0x430a5000, 80512, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x430a5000
mmap2(0x430b6000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x11) =
0x430b6000
mmap2(0x430b7000, 6784, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x430b7000
close(3)                                = 0
munmap(0x40018000, 90677)               = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=90677, ...}) = 0
mmap2(NULL, 90677, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000
close(3)                                = 0
open("/lib/libnss_nis.so.2", 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\0p\253\37"..., 512) =
512fstat64(3, {st_mode=S_IFREG|0755, st_size=40756, ...}) = 0
mmap2(0x481f9000, 34472, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x481f9000
mmap2(0x48201000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x7) =
0x48201000
close(3)                                = 0
open("/lib/libnss_files.so.2", 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\340\374"..., 512) =
512fstat64(3, {st_mode=S_IFREG|0755, st_size=42552, ...}) = 0
mmap2(0x481ee000, 36728, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x481ee000
mmap2(0x481f6000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x7) =
0x481f6000
close(3)                                = 0
munmap(0x40018000, 90677)               = 0
open("/etc/passwd", O_RDONLY)           = 3
fcntl64(3, F_GETFD)                     = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
_llseek(3, 0, [0], SEEK_CUR)            = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=2152, ...}) = 0
mmap2(NULL, 2152, PROT_READ, MAP_SHARED, 3, 0) = 0x40018000
_llseek(3, 2152, [2152], SEEK_SET)      = 0
munmap(0x40018000, 2152)                = 0
close(3)                                = 0
getpgrp()                               = 26968
rt_sigaction(SIGCHLD, {0x807f0a2, [], SA_RESTORER, 0x41555bd8}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
open("/usr/bin/wine", O_RDONLY|O_LARGEFILE) = 3
ioctl(3, SNDCTL_TMR_TIMEBASE, 0xbffff2d0) = -1 ENOTTY (Inappropriate ioctl for
device)
_llseek(3, 0, [0], SEEK_CUR)            = 0
read(3, "#!/bin/bash\n# The wine wrapper\n\n"..., 80) = 80
_llseek(3, 0, [0], SEEK_SET)            = 0
getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0
dup2(3, 255)                            = 255
close(3)                                = 0
fcntl64(255, F_SETFD, FD_CLOEXEC)       = 0
fcntl64(255, F_GETFL)                   = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat64(255, {st_mode=S_IFREG|0755, st_size=1224, ...}) = 0
_llseek(255, 0, [0], SEEK_CUR)          = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
read(255, "#!/bin/bash\n# The wine wrapper\n\n"..., 1224) = 1224
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
stat64("/root/.wine/config", {st_mode=S_IFREG|0644, st_size=11527, ...}) = 0
rt_sigprocmask(SIG_SETMASK, [RTMIN], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [RTMIN], 8) = 0
fork()                                  = 26970
rt_sigprocmask(SIG_SETMASK, [RTMIN], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [RTMIN], 8) = 0
rt_sigprocmask(SIG_SETMASK, [RTMIN], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [RTMIN], 8) = 0
rt_sigaction(SIGINT, {0x807e335, [], SA_RESTORER, 0x41555bd8}, {SIG_DFL}, 8) =
0waitpid(-1, [WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV], 0) = 26970
fstat64(2, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40018000
write(2, "/usr/bin/wine: line 48: 26970 Se"..., 86/usr/bin/wine: line 48: 26970
Segmentation fault      "$RUNWINE" --debugmsg -all "$@"
) = 86
rt_sigprocmask(SIG_SETMASK, [RTMIN], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, 0xbfffe7b0, WNOHANG)        = -1 ECHILD (No child processes)
sigreturn()                             = ? (mask now [RTMIN])
rt_sigaction(SIGINT, {SIG_DFL}, {0x807e335, [], SA_RESTORER, 0x41555bd8}, 8) =
0rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
read(255, "", 1224)                     = 0
munmap(0x40018000, 4096)                = 0
_exit(139)                              = ?


----
Comment 1 SpanKY gentoo-dev 2003-09-13 12:25:36 UTC
you forgot `emerge info` ;)
Comment 2 JoWilly 2003-09-13 14:20:46 UTC
Sorry, here you go:

# emerge info
Portage 2.0.49-r4 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r4, 2.6.0-test5-mm1)
=================================================================
System uname: 2.6.0-test5-mm1 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -ffast-math -mmmx -msse -msse2 -mfpmath=sse,387 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -ffast-math -mmmx -msse -msse2 -mfpmath=sse,387 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 apm avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms zlib gtkhtml gdbm berkdb slang readline arts tetex nas bonobo ggi tcltk java guile sdl tcpd pam libwww ssl perl python esd imlib oggvorbis gtk qt kde motif mozilla cdr X gtk2 gnome gnome2 gstreamer mmx sse sse2 oss alsa dvd dvdr opengl icc dga scanner usb acpi aalib directfb fbcon gpm svga xv breakme -3dnow"
Comment 3 Alex Veber (RETIRED) gentoo-dev 2003-09-14 04:33:43 UTC
hmm, glibc 2.3.2-r4 ... 
did you emerge it with nptl support ? (USE=nptl) 
Comment 4 Henrik Schöpel 2003-09-25 10:41:46 UTC
Hi all,

i have the same problem here. I got segfaults with GCC 3.3.1 and GCC 3.3.1-r3

So i think that must be a GCC problem.I fetched wine from winehq too and
compiled with ntpl flag but got the same error.

emerge info comes here:

Portage 2.0.49-r6 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r1, 2.6.0-test5-bk4)
=================================================================
System uname: 2.6.0-test5-bk4 i686 AMD Athlon(tm) MP 1600+
ccache version 2.2 [enabled]
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config
/usr/X11R6/lib/X11/xkb /usr/kde/cvs/share/config /usr/kde/3.1/share/config
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod
mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib
gtkhtml gdbm berkdb slang readline arts aalib bonobo svga tcltk java guile
sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gtk qt kde motif
opengl mozilla snmp cdr X gtk2 gnome -alsa"


uname -a
Linux spock.homelinux.org 2.6.0-test5-bk4 #1 SMP Sun Sep 21 12:21:10 CEST
2003 i686 AMD Athlon(tm) MP 1600+ AuthenticAMD GNU/Linux

the same problem if i boot my "stable" 2.4.20 kernel.

cheers
Henrik
Comment 5 JoWilly 2003-09-25 13:29:19 UTC
Wine suddenly works again. I don't know what I did, have emerged a few things
over the past days, don't remember what.
Comment 6 SpanKY gentoo-dev 2003-09-25 19:04:07 UTC
heh, ok