Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
wine and zsnes segmentation fault [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
luismw
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jan 2010
Posts: 85

PostPosted: Wed Sep 28, 2011 5:00 pm    Post subject: wine and zsnes segmentation fault [SOLVED] Reply with quote

Hi, recently and seemingly out of nowhere wine and zsnes have stopped working. Zsnes just prints "Segmentation fault" and exits. Wine at least provides the information you can find below.

My PC is an EeePC S101. Intel Atom N270, Intel GMA 945 and 2GB of RAM.

I have tried downgrading wine, xf86-video-intel and mesa, but the failure persists. Wine doesn't always segfault, it tends to happen with fullscreen games.

I really don't know what to do, so any help would be greatly appreciated. You can also ask for any information you require.

EDIT. Problem solved. Finally I tried to make some sense of the gibberish that follows and it really is quite simple. You can find that the problem is a page fault at address 0x7bb8b910. Now, if we look for this address at the module list below you can find that the address belongs to libasound.so.2. This file belongs to package alsa-lib. I reemerged alsa-lib, restarted the alsasound service and voila, problem solved. Thanks for your suggestions anyway.

Code:
lmw@lmw-gentoo Starcraft % wine StarCraft.exe                                                           
fixme:win:EnumDisplayDevicesW ((null),0,0x32f384,0x00000000), stub!
err:d3d_surface:surface_blt_fbo >>>>>>>>>>>>>>>>> GL_INVALID_ENUM (0x500) from glBlitFramebuffer() @ /var/tmp/portage/app-emulation/wine-1.3.29/work/wine-1.3.29/dlls/wined3d/surface.c / 1277
err:d3d_surface:surface_blt_fbo >>>>>>>>>>>>>>>>> GL_INVALID_ENUM (0x500) from glBlitFramebuffer() @ /var/tmp/portage/app-emulation/wine-1.3.29/work/wine-1.3.29/dlls/wined3d/surface.c / 1277
fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 10000 channels, pretending there's only 2 channels
fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 10000 channels, pretending there's only 2 channels
fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 10000 channels, pretending there's only 2 channels
fixme:alsa:AudioClient_GetMixFormat Don't know what to do with 10000 channels, pretending there's only 2 channels
wine: Unhandled page fault on read access to 0xffffffff at address 0x7bb8b910 (thread 0009), starting debugger...
Unhandled exception: page fault on read access to 0xffffffff in 32-bit code (0x7bb8b910).
Register dump:
 CS:0073 SS:007b DS:007b ES:007b FS:0033 GS:003b
 EIP:7bb8b910 ESP:0032e514 EBP:00000014 EFLAGS:00010246(  R- --  I  Z- -P- )
 EAX:ffffffff EBX:7bbfeff4 ECX:0032e5d4 EDX:0032e584
 ESI:00080000 EDI:00000090
Stack dump:
0x0032e514:  0032e890 7bbefc84 00000008 00000000
0x0032e524:  00000040 7bbefc00 0032e5d4 0032e80c
0x0032e534:  00000000 ffffffc8 ffffffc8 0032e7d0
0x0032e544:  00000000 00000000 00000001 00000000
0x0032e554:  b75a53a0 00000000 00000040 00000000
0x0032e564:  0032e6fc 7bbf9d94 00000008 00000000
Backtrace:
0x7bb8b910: movq   %mm0,0x0(%edx)
Modules:
Module   Address         Debug info   Name (98 modules)
PE     400000-  6be000   Deferred        starcraft
PE    2000000- 2011000   Deferred        local
PE   15000000-1503a000   Deferred        storm
ELF   42734000-4273e000   Deferred        libpciaccess.so.0
ELF   43a48000-43a51000   Deferred        librt.so.1
ELF   43db5000-43ddf000   Deferred        libexpat.so.1
ELF   4405a000-44075000   Deferred        libgcc_s.so.1
ELF   44077000-440c6000   Deferred        libgl.so.1
ELF   440d3000-440e9000   Deferred        libglapi.so.0
ELF   440eb000-440ff000   Deferred        libxcb-glx.so.0
ELF   44101000-4410c000   Deferred        libdrm.so.2
ELF   4410e000-44111000   Deferred        libx11-xcb.so.1
ELF   4411f000-44123000   Deferred        libxdamage.so.1
ELF   7b800000-7b8f5000   Deferred        kernel32<elf>
  \-PE   7b810000-7b8f5000   \               kernel32
ELF   7bb39000-7bc00000   Dwarf           libasound.so.2
ELF   7bc00000-7bcc4000   Deferred        ntdll<elf>
  \-PE   7bc10000-7bcc4000   \               ntdll
ELF   7bf00000-7bf04000   Deferred        <wine-loader>
ELF   7c425000-7c46b000   Deferred        winealsa<elf>
  \-PE   7c430000-7c46b000   \               winealsa
ELF   7c46b000-7c55f000   Deferred        oleaut32<elf>
  \-PE   7c480000-7c55f000   \               oleaut32
ELF   7c55f000-7c581000   Deferred        mmdevapi<elf>
  \-PE   7c560000-7c581000   \               mmdevapi
ELF   7c581000-7c5c9000   Deferred        winmm<elf>
  \-PE   7c590000-7c5c9000   \               winmm
ELF   7cf35000-7cf5c000   Deferred        msacm32<elf>
  \-PE   7cf40000-7cf5c000   \               msacm32
ELF   7cf5c000-7cfa2000   Deferred        dsound<elf>
  \-PE   7cf60000-7cfa2000   \               dsound
ELF   7dc2a000-7df63000   Deferred        i915_dri.so
ELF   7df63000-7e09e000   Deferred        wined3d<elf>
  \-PE   7df70000-7e09e000   \               wined3d
ELF   7e0f4000-7e100000   Deferred        libdrm_intel.so.1
ELF   7e116000-7e17c000   Deferred        ddraw<elf>
  \-PE   7e120000-7e17c000   \               ddraw
ELF   7e1a0000-7e217000   Deferred        rpcrt4<elf>
  \-PE   7e1b0000-7e217000   \               rpcrt4
ELF   7e217000-7e320000   Deferred        ole32<elf>
  \-PE   7e230000-7e320000   \               ole32
ELF   7e34e000-7e383000   Deferred        uxtheme<elf>
  \-PE   7e350000-7e383000   \               uxtheme
ELF   7e383000-7e389000   Deferred        libxfixes.so.3
ELF   7e389000-7e394000   Deferred        libxcursor.so.1
ELF   7e394000-7e3a3000   Deferred        libxi.so.6
ELF   7e3a3000-7e3ac000   Deferred        libxrandr.so.2
ELF   7e3ac000-7e3b6000   Deferred        libxrender.so.1
ELF   7e3b6000-7e3bc000   Deferred        libxxf86vm.so.1
ELF   7e3bc000-7e3de000   Deferred        imm32<elf>
  \-PE   7e3c0000-7e3de000   \               imm32
ELF   7e3de000-7e3e4000   Deferred        libxdmcp.so.6
ELF   7e3e4000-7e400000   Deferred        libxcb.so.1
ELF   7e400000-7e419000   Deferred        libice.so.6
ELF   7e419000-7e53d000   Deferred        libx11.so.6
ELF   7e53d000-7e54e000   Deferred        libxext.so.6
ELF   7e54e000-7e5f4000   Deferred        winex11<elf>
  \-PE   7e560000-7e5f4000   \               winex11
ELF   7e5f4000-7e604000   Deferred        libbz2.so.1
ELF   7e604000-7e61a000   Deferred        libz.so.1
ELF   7e61a000-7e6a7000   Deferred        libfreetype.so.6
ELF   7e6a7000-7e6ea000   Deferred        libncurses.so.5
ELF   7e700000-7e738000   Deferred        winspool<elf>
  \-PE   7e710000-7e738000   \               winspool
ELF   7e738000-7e82d000   Deferred        comctl32<elf>
  \-PE   7e740000-7e82d000   \               comctl32
ELF   7e82d000-7e898000   Deferred        shlwapi<elf>
  \-PE   7e840000-7e898000   \               shlwapi
ELF   7e898000-7ea75000   Deferred        shell32<elf>
  \-PE   7e8b0000-7ea75000   \               shell32
ELF   7ea75000-7eb24000   Deferred        comdlg32<elf>
  \-PE   7ea80000-7eb24000   \               comdlg32
ELF   7eb24000-7eb3d000   Deferred        version<elf>
  \-PE   7eb30000-7eb3d000   \               version
ELF   7eb3d000-7eb9f000   Deferred        advapi32<elf>
  \-PE   7eb50000-7eb9f000   \               advapi32
ELF   7eb9f000-7ec45000   Deferred        gdi32<elf>
  \-PE   7ebb0000-7ec45000   \               gdi32
ELF   7ec45000-7ed82000   Deferred        user32<elf>
  \-PE   7ec60000-7ed82000   \               user32
ELF   7ed82000-7ee10000   Deferred        msvcrt<elf>
  \-PE   7eda0000-7ee10000   \               msvcrt
ELF   7ee10000-7ee2b000   Deferred        crtdll<elf>
  \-PE   7ee20000-7ee2b000   \               crtdll
ELF   7efa2000-7efae000   Deferred        libnss_files.so.2
ELF   7efae000-7efc5000   Deferred        libnsl.so.1
ELF   7efc5000-7efea000   Deferred        libm.so.6
ELF   7efed000-7eff8000   Deferred        libnss_nis.so.2
ELF   7eff8000-7f000000   Deferred        libnss_compat.so.2
ELF   b7441000-b7445000   Deferred        libxau.so.6
ELF   b7447000-b744b000   Deferred        libdl.so.2
ELF   b744b000-b75a9000   Deferred        libc.so.6
ELF   b75a9000-b75c3000   Deferred        libpthread.so.0
ELF   b75c4000-b75c9000   Deferred        libuuid.so.1
ELF   b75c9000-b75d2000   Deferred        libsm.so.6
ELF   b75d9000-b771c000   Dwarf           libwine.so.1
ELF   b771d000-b773b000   Deferred        ld-linux.so.2
ELF   b773b000-b773c000   Deferred        [vdso].so
Threads:
process  tid      prio (all id:s are in hex)
00000008 (D) C:\Program Files\Starcraft\StarCraft.exe
   00000024    0
   00000023    0
   00000022    1
   00000009    0 <==
0000000e services.exe
   0000001e    0
   0000001d    0
   00000018    0
   00000017    0
   00000015    0
   00000010    0
   0000000f    0
00000012 winedevice.exe
   00000019    0
   00000014    0
   00000013    0
0000001a plugplay.exe
   0000001f    0
   0000001c    0
   0000001b    0
00000020 explorer.exe
   00000021    0
Backtrace:


Last edited by luismw on Sat Oct 01, 2011 9:25 pm; edited 1 time in total
Back to top
View user's profile Send private message
Raptor85
Apprentice
Apprentice


Joined: 29 Dec 2007
Posts: 208

PostPosted: Wed Sep 28, 2011 10:08 pm    Post subject: Reply with quote

Have you upgraded any packages on your system lately? Probably want to try doing a revdep-rebuild. If not that might want to provide the use flags and versions of wine and zsnes you build, along with your cflags
Back to top
View user's profile Send private message
luismw
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jan 2010
Posts: 85

PostPosted: Thu Sep 29, 2011 6:14 pm    Post subject: Reply with quote

Lately, I upgraded xorg-server, mesa and xf86-video-intel. I have tried downgrading those already. Doing a revdep-rebuild was among the first things I tried, without any improvement.

My use flags for wine are: Wine 1.3.29!t(09:12:07 PM 09/27/2011)(X alsa dbus gecko jpeg ldap mp3 ncurses opengl oss png ssl threads truetype win32 xml -capi -cups -custom-cflags -fontconfig -gnutls -gphoto2 -gsm -gstreamer -hardened -lcms -nls -openal -opencl -perl -samba -scanner -test -v4l -win64 -xcomposite -xinerama)

And for zsnes: 1.51-r2(10:44:43 PM 09/27/2011)(opengl png -ao -custom-cflags)

My cflags: CFLAGS="-march=native -O2 -fomit-frame-pointer -pipe"

Pretty standard stuff. By the way, I know my wine version is not the stable one. I have tried with wine 1.2.2 and wine 1.2.3 but the games segfault anyway.
Back to top
View user's profile Send private message
LiquidAcid
Apprentice
Apprentice


Joined: 11 Sep 2006
Posts: 171

PostPosted: Thu Sep 29, 2011 9:08 pm    Post subject: Reply with quote

Have you tried enabling the virtual desktop in winecfg?
Back to top
View user's profile Send private message
luismw
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jan 2010
Posts: 85

PostPosted: Sat Oct 01, 2011 8:59 pm    Post subject: Reply with quote

Yes, I tried that. There wasn't any improvement. I really don't know what could be happening.
Back to top
View user's profile Send private message
aminalshmu
Tux's lil' helper
Tux's lil' helper


Joined: 13 Sep 2004
Posts: 78
Location: Tallahassee, Florida, USA

PostPosted: Sun Oct 02, 2011 12:28 am    Post subject: Reply with quote

Why not just run zsnes natively? Why are you using wine???
Back to top
View user's profile Send private message
luismw
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jan 2010
Posts: 85

PostPosted: Sun Oct 02, 2011 8:48 am    Post subject: Reply with quote

I am running zsnes natively. My problem was that both zsnes (native) and some wine games would segfault. Both problems have been solved by reemerging alsa-lib (see my edit on the first post).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum