[Bug 35578] Multiple applications crash on install/startup ('COMPUTERNAME' environment variable not present)(Mentor Pads Free Viewer, Flightgear 3)
wine-bugs at winehq.org
wine-bugs at winehq.org
Fri Mar 28 14:54:41 CDT 2014
http://bugs.winehq.org/show_bug.cgi?id=35578
Anastasius Focht <focht at gmx.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Mentor Pads Free Viewer |Multiple applications crash
|crashes on install |on install/startup
|immediately ('COMPUTERNAME' |('COMPUTERNAME' environment
|environment variable not |variable not
|present) |present)(Mentor Pads Free
| |Viewer, Flightgear 3)
--- Comment #4 from Anastasius Focht <focht at gmx.net> ---
Hello folks,
I found another victim: 'Flightgear 3'
Reported here: http://forum.winehq.org/viewtopic.php?f=8&t=22138
Download:
http://ftp.icm.edu.pl/packages/flightgear/Windows/Setup%20FlightGear%203.0.0.exe
--- snip ---
$ pwd
/home/focht/.wine/drive_c/Program Files/FlightGear/bin/Win32
$ WINEDEBUG=+tid,+seh,+relay wine ./fgfs.exe >>log.txt 2>&1
...
0024:trace:seh:raise_exception code=c0000005 flags=0 addr=0x402158 ip=00402158
tid=0024
0024:trace:seh:raise_exception info[0]=00000000
0024:trace:seh:raise_exception info[1]=00000000
0024:trace:seh:raise_exception eax=00000000 ebx=00000000 ecx=00000000
edx=78b554ac esi=00000001 edi=00ea3d48
0024:trace:seh:raise_exception ebp=018dfd80 esp=018df88c cs=0023 ds=002b
es=002b fs=0063 gs=006b flags=00010202
0024:trace:seh:call_stack_handlers calling handler at 0xbfc5af code=c0000005
flags=0
...
Unhandled exception: page fault on read access to 0x00000000 in 32-bit code
(0x00402158).
...
Backtrace:
=>0 0x00402158 in fgfs (+0x2158) (0x018dfd80)
1 0x00402736 in fgfs (+0x2735) (0x018dfe20)
2 0x7b864120 call_process_entry+0xb() in kernel32 (0x018dfe38)
...
0x00402158: movb 0x0(%ecx),%dl
Modules:
Module Address Debug info Name (69 modules)
PE 240000- 283000 Deferred osg100-osgtext
PE 290000- 357000 Deferred osg100-osgdb
PE 360000- 36a000 Deferred ot13-openthreads
PE 370000- 3de000 Deferred osg100-osgsim
PE 400000- f42000 Export fgfs
PE 18e0000- 1ae5000 Deferred osg100-osg
PE 1af0000- 1c0b000 Deferred osg100-osgutil
PE 1c10000- 1c51000 Deferred osg100-osgparticle
PE 1c60000- 1cf8000 Deferred osg100-osgviewer
PE 1d00000- 1d40000 Deferred osg100-osgga
PE 10000000-10025000 Deferred crashrpt1402
PE 78aa0000-78b5f000 Deferred msvcr100
...
Threads:
process tid prio (all id:s are in hex)
...
00000023 (D) C:\Program Files\FlightGear\bin\Win32\fgfs.exe
00000024 0 <==
--- snip ---
The app code:
--- snip ---
...
00402134 PUSH 8000
00402139 MOV DWORD PTR SS:[EBP-4D4],EAX
0040213F CALL DWORD PTR DS:[<&KERNEL32.SetErrorMode>]
00402145 PUSH fgfs.00CEB73C ; ASCII "COMPUTERNAME"
0040214A CALL DWORD PTR DS:[<&MSVCR100.getenv>]
00402150 MOV ECX,EAX
00402152 ADD ESP,4
00402155 LEA ESI,DWORD PTR DS:[ECX+1]
00402158 MOV DL,BYTE PTR DS:[ECX] ; *boom*
...
--- snip ---
You can work around as follows:
--- snip ---
$ COMPUTERNAME=$HOSTNAME wine ./fgfs.exe
--- snip ---
$ sha1sum Setup\ FlightGear\ 3.0.0.exe
c6b9b7576db3343fce2cedcb81692c3626a82e18 Setup FlightGear 3.0.0.exe
$ du -sh Setup\ FlightGear\ 3.0.0.exe
1014M Setup FlightGear 3.0.0.exe
$ wine --version
wine-1.7.15-107-gf3488d0
Regards
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
More information about the wine-bugs
mailing list