[Bug 1166] Msvcrt: unhandled: %

Wine Bugs wine-bugs at winehq.com
Sat Jun 28 09:24:08 CDT 2003


http://bugs.winehq.com/show_bug.cgi?id=1166





------- Additional Comments From winebug at flonet.net  2003-28-06 09:24 -------
Bug comments restored from Gmane.org:

was bug 1002 but I don't know how to reopen it...

the msvcrt's 'unhandled: %' bug  is still there in Wine 20021125
last time you had some problems with attachments, so now I put part of it into
comment:

08077c00:Call msvcrt.strstr(406c2820 "// Registry key which tells that there is
already a complete installation on the"...,0040537c "KEY_INSTALLCOMPLETE")
ret=004010a9
08077c00:Ret  msvcrt.strstr() retval=00000000 ret=004010a9
08077c00:Call msvcrt.fgets(406c2820,00000200,403c1050) ret=00401092
08077c00:trace:msvcrt:MSVCRT_fgets :file(0x403c1050) fd (3) str (0x406c2820) len
(512)
08077c00:trace:msvcrt:MSVCRT_fgets :got 'KEY_INSTALLCOMPLETE
"SOFTWARE\BlueByte\Incubation\InstallIncComplete"
'
08077c00:Ret  msvcrt.fgets() retval=406c2820 ret=00401092
08077c00:Call msvcrt.strstr(406c2820 "KEY_INSTALLCOMPLETE
\"SOFTWARE\\BlueByte\\Incubation\\InstallIncComplete\"\n",0040537c
"KEY_INSTALLCOMPLETE") ret=004010a9
08077c00:Ret  msvcrt.strstr() retval=406c2820 ret=004010a9
08077c00:warn:msvcrt:MSVCRT_sscanf KEY_INSTALLCOMPLETE
"SOFTWARE\BlueByte\Incubation\InstallIncComplete"
 ("%s"): semi-stub
08077c00:trace:msvcrt:MSVCRT_sscanf returning 1
08077c00:Call msvcrt.strlen(406c2a20 "KEY_INSTALLCOMPLETE") ret=004010d8
08077c00:Ret  msvcrt.strlen() retval=00000013 ret=004010d8
08077c00:Call msvcrt.strcpy(406c2abc,406c2833 "
\"SOFTWARE\\BlueByte\\Incubation\\InstallIncComplete\"\n") ret=004010e6
08077c00:Ret  msvcrt.strcpy() retval=406c2abc ret=004010e6
08077c00:warn:msvcrt:MSVCRT_sscanf 
"SOFTWARE\BlueByte\Incubation\InstallIncComplete"
 ("%"%[^"]s"): semi-stub
08077c00:fixme:msvcrt:MSVCRT_sscanf unhandled: %"
08077c00:trace:msvcrt:MSVCRT_sscanf returning 0


------- Additional Comments From nog at sdf.lonestar.org  2002-12-14 06:04 -------
Created an attachment (id=359)
 --> (http://bugs.winehq.com/attachment.cgi?id=359&action=view)
Quick-hack patch


------- Additional Comments From nog at sdf.lonestar.org  2002-12-14 06:09 -------
This is the first part of your origional problem (bug #1002).  The program is
passing %" as the format and is expecting to start the input from the first "
character in the input stream.  I have attached a simple fix which should work
but I haven't actually tested if it works ok.  Let me know if it works.


------- Additional Comments From michal.seliga at visicom.sk  2002-12-17 03:21 -------
install now works but later in game it crashes (with unhandled exception)

it is strange - when i run game normally (wine incubation.exe) I get unhandled
exception in msvcrt sscanf. but when I run game with 'wine --debugmsg +all,
+trace, +relay incubation.exe >& log' I get unhandled exception in ntdll sscanf.
So I don't know... Part of log is attached, but I am not sure if it is connected
to this bug or it is something else. so if it does then send me how i should
test it for you (parameters to --debugmsg and stuff like that)... if it soeasn't
then for me it is fixed (when this patch will be in wine sources)

log:

...lot of stuff before..... full length of log was 250MB....
080ced98:Call ntdll.RtlEnterCriticalSection(468d13c0) ret=40eb8503
080ced98:Ret  ntdll.RtlEnterCriticalSection() retval=00000000 ret=40eb8503
080ced98:Call ntdll.RtlLeaveCriticalSection(468d13c0) ret=40eb8537
080ced98:Ret  ntdll.RtlLeaveCriticalSection() retval=00000000 ret=40eb8537
080ced98:Call msvcrt.??2 at YAPAXI@Z(00000024) ret=00478f08
080ced98:Call ntdll.RtlAllocateHeap(40370000,00000000,00000024) ret=40c60547
080ced98:trace:heap:RtlAllocateHeap (0x40370000,00000002,00000028): returning
468d14c0
080ced98:Ret  ntdll.RtlAllocateHeap() retval=468d14c0 ret=40c60547
080ced98:trace:msvcrt:MSVCRT_operator_new (36) returning 0x468d14c0
080ced98:trace:msvcrt:_lock (9)
080ced98:Call ntdll.RtlEnterCriticalSection(40c76340) ret=40c61961
080ced98:Ret  ntdll.RtlEnterCriticalSection() retval=00000000 ret=40c61961
080ced98:trace:msvcrt:_unlock (9)
080ced98:Call ntdll.RtlLeaveCriticalSection(40c76340) ret=40c61a39
080ced98:Ret  ntdll.RtlLeaveCriticalSection() retval=00000000 ret=40c61a39
080ced98:Ret  msvcrt.??2 at YAPAXI@Z() retval=468d14c0 ret=00478f08
080ced98:CALL newtoolsr.10: ??0DListBase at BB@@QAE at XZ() ret=0048ccd3
080ced98:RET  newtoolsr.10: ??0DListBase at BB@@QAE at XZ() retval = 468d14c4 ret=0048ccd3
080ced98:CALL newtoolsr.10: ??0DListBase at BB@@QAE at XZ() ret=0048cd15
080ced98:RET  newtoolsr.10: ??0DListBase at BB@@QAE at XZ() retval = 468d14d4 ret=0048cd15
080ced98:CALL newtoolsr.38: ??0String at BB@@QAE at XZ() ret=00478f84
080ced98:Call msvcrt.??2 at YAPAXI@Z(00000001) ret=10001ef4
080ced98:Call ntdll.RtlAllocateHeap(40370000,00000000,00000001) ret=40c60547
080ced98:trace:heap:RtlAllocateHeap (0x40370000,00000002,00000018): returning
468d14f0
080ced98:Ret  ntdll.RtlAllocateHeap() retval=468d14f0 ret=40c60547
080ced98:trace:msvcrt:MSVCRT_operator_new (1) returning 0x468d14f0
080ced98:trace:msvcrt:_lock (9)
080ced98:Call ntdll.RtlEnterCriticalSection(40c76340) ret=40c61961
080ced98:Ret  ntdll.RtlEnterCriticalSection() retval=00000000 ret=40c61961
080ced98:trace:msvcrt:_unlock (9)
080ced98:Call ntdll.RtlLeaveCriticalSection(40c76340) ret=40c61a39
080ced98:Ret  ntdll.RtlLeaveCriticalSection() retval=00000000 ret=40c61a39
080ced98:Ret  msvcrt.??2 at YAPAXI@Z() retval=468d14f0 ret=10001ef4
080ced98:RET  newtoolsr.38: ??0String at BB@@QAE at XZ() retval = 004eda84 ret=00478f84
080ced98:Call msvcrt.?name at type_info@@QBEPBDXZ(00000001) ret=00478f9f
080ced98:trace:msvcrt:MSVCRT_type_info_name
080ced98:trace:seh:EXC_RtlRaiseException code=c0000005 flags=0 addr=0x402b2b9b
080ced98:trace:seh:EXC_RtlRaiseException  info[0]=00000000
080ced98:trace:seh:EXC_RtlRaiseException  info[1]=00000009
080ced98: queue_exception_event( first=1,
record={context={flags=00000000,eax=00000009,ebx=40359340,ecx=00000001,edx=00000073,esi=00000000,edi=402879da,ebp=406c2960,eip=402b2b9b,esp=406c2244,eflags=00210202,cs=0023,ds=002b,es=002b,fs=008f,gs=0007,dr0=00000000,dr1=00000000,dr2=00000000,dr3=00000000,dr6=00000000,dr7=00000000,float={00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000}},rec={code=c0000005,flags=0,rec=(nil),addr=0x402b2b9b,params={0,9}}
)
080ced98: queue_exception_event() = 0 { handle=(nil) }
080ced98:trace:seh:EXC_CallHandler calling handler at 0x479e25 code=c0000005 flags=0
080ced98:Call msvcrt.__CxxFrameHandler(405b09d0,406c2c88,405b0a44,405b0960)
ret=400d5085 fs=008f
 eax=004abf28 ebx=4010af6c ecx=405b0960 edx=405b0a44 esi=405b09d0 edi=4010ad44
 ebp=405b0930 esp=405b0904 ds=002b es=002b gs=0007 flags=00200216
080ced98:Ret  msvcrt.__CxxFrameHandler() retval=00000001 ret=400d5085 fs=008f
 eax=00000001 ebx=4010af6c ecx=405b0960 edx=405b0a44 esi=405b09d0 edi=4010ad44
 ebp=405b0930 esp=405b0904 ds=002b es=002b gs=0007 flags=00200216
080ced98:trace:seh:EXC_CallHandler handler returned 1
080ced98:trace:seh:EXC_CallHandler calling handler at 0x4124dc code=c0000005 flags=0
080ced98:Call msvcrt.__CxxFrameHandler(405b09d0,406c2ca4,405b0a44,405b0960)
ret=400d5085 fs=008f
 eax=004aa9e0 ebx=4010af6c ecx=405b0960 edx=405b0a44 esi=405b09d0 edi=4010ad44
 ebp=405b0930 esp=405b0904 ds=002b es=002b gs=0007 flags=00200216
080ced98:Ret  msvcrt.__CxxFrameHandler() retval=00000001 ret=400d5085 fs=008f
 eax=00000001 ebx=4010af6c ecx=405b0960 edx=405b0a44 esi=405b09d0 edi=4010ad44
 ebp=405b0930 esp=405b0904 ds=002b es=002b gs=0007 flags=00200216
080ced98:trace:seh:EXC_CallHandler handler returned 1
080ced98:trace:seh:EXC_CallHandler calling handler at 0x4a3102 code=c0000005 flags=0
080ced98:Call msvcrt._except_handler3(405b09d0,406c2e74,405b0a44,405b0960)
ret=400d5085
080ced98:trace:msvcrt:_except_handler3 exception c0000005 flags=0 at 0x402b2b9b
handler=0x4a3102 0x405b0a44 0x405b0960 semi-stub
080ced98:trace:msvcrt:_except_handler3 filter = 0x4a2e80
080ced98:Call msvcrt._XcptFilter(c0000005,405b0844) ret=004a2e97
080ced98:fixme:msvcrt:_XcptFilter (-1073741819,0x405b0844)semi-stub
080ced98:Call kernel32.UnhandledExceptionFilter(405b0844) ret=40c5aeb9
080ced98: queue_exception_event( first=0,
record={context={flags=00000000,eax=00000009,ebx=40359340,ecx=00000001,edx=00000073,esi=00000000,edi=402879da,ebp=406c2960,eip=402b2b9b,esp=406c2244,eflags=00210202,cs=0023,ds=002b,es=002b,fs=008f,gs=0007,dr0=00000000,dr1=00000000,dr2=00000000,dr3=00000000,dr6=00000000,dr7=00000000,float={00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000}},rec={code=c0000005,flags=0,rec=(nil),addr=0x402b2b9b,params={0,9}}
)
080ced98: queue_exception_event() = 0 { handle=(nil) }
080ced98: create_event( manual_reset=1, initial_state=0, inherit=1, name=L"" )
080ced98: create_event() = 0 { handle=0x98 }
wine: Unhandled exception, starting debugger...


------- Additional Comments From nog at sdf.lonestar.org  2002-12-17 11:25 -------
This doesn't look like it's related to the sscanf problem.  It seems like this
is related to bug #1124.  By looking at that bug, it could be possible that your
program doesn't install properly, wether because of a scanf bug or not.

------- Additional Comments From michal.seliga at visicom.sk  2002-12-18 07:00 -------
hard to tell, anyway I think when this patch will be commited to wine this
should be marked as fixed

-- 
Configure bugmail: http://bugs.winehq.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list