https://bugs.winehq.org/show_bug.cgi?id=50741
Bug ID: 50741 Summary: Microcap12 crashes on addition of new text Product: Wine Version: 4.0 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: devops.sune@gmail.com Distribution: ---
Created attachment 69513 --> https://bugs.winehq.org/attachment.cgi?id=69513 Debug and system error traces
The app crashes upon trying to add a new text item.
Steps: - set wine configuration to Windows XP - open mc12_64.exe - start a new circuit (if not done automatically) - press CTL-T - click anywhere in the main window
Watch it crash
https://bugs.winehq.org/show_bug.cgi?id=50741
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- Please retest with current wine 6.x. Wine 4.0 is 2 years old at this point.
https://bugs.winehq.org/show_bug.cgi?id=50741
Graial devops.sune@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|4.0 |6.0
--- Comment #2 from Graial devops.sune@gmail.com --- (In reply to Nikolay Sivov from comment #1)
Please retest with current wine 6.x. Wine 4.0 is 2 years old at this point.
I have confirmed that the app still crashes following the same steps using WINE6.0
I've uploaded additional traces/logs in case there is a difference between versions.
https://bugs.winehq.org/show_bug.cgi?id=50741
Graial devops.sune@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #69513|0 |1 is obsolete| |
--- Comment #3 from Graial devops.sune@gmail.com --- Created attachment 69527 --> https://bugs.winehq.org/attachment.cgi?id=69527 Crash backtrace using 6.0
https://bugs.winehq.org/show_bug.cgi?id=50741
--- Comment #4 from Graial devops.sune@gmail.com --- Created attachment 69528 --> https://bugs.winehq.org/attachment.cgi?id=69528 debug output using 6.0
https://bugs.winehq.org/show_bug.cgi?id=50741
--- Comment #5 from Graial devops.sune@gmail.com --- Created attachment 69529 --> https://bugs.winehq.org/attachment.cgi?id=69529 screenshot using 6.0
you can see that the crash occurs before the 'add text' dialogue fully renders
https://bugs.winehq.org/show_bug.cgi?id=50741
Graial devops.sune@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #69528|0 |1 is obsolete| |
--- Comment #6 from Graial devops.sune@gmail.com --- Created attachment 69530 --> https://bugs.winehq.org/attachment.cgi?id=69530 debug output using 6.0
https://bugs.winehq.org/show_bug.cgi?id=50741
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |https://web.archive.org/web | |/20210301174639if_/http://w | |ww.spectrum-soft.com/downlo | |ad/mc12cd.zip CC| |focht@gmx.net Status|UNCONFIRMED |NEW Summary|Microcap12 crashes on |64-bit Microcap 12 (MC12) |addition of new text |crashes when adding grid | |text to the schematic | |(CTRL+T) Keywords| |download, Installer, win64 Ever confirmed|0 |1
--- Comment #7 from Anastasius Focht focht@gmx.net --- Hello folks,
confirming. From a cursory look it could be a 64-bit issue in user32. To be debugged later.
--- snip --- $ pwd /home/focht/.wine/drive_c/MC12
$ WINEDEBUG=+seh,+relay,+win,+msg,+combo wine ./mc12_64.exe >>log.txt 2>&1 ... 0104:trace:combo:ComboWndProc_common [00000000000204E6]: msg WM_ERASEBKGND wp 0007003b lp 00000000 0104:Ret window proc 000000018009EEF0 (hwnd=00000000000204E6,msg=WM_ERASEBKGND,wp=0007003b,lp=00000000) retval=00000001 0104:Ret user32.CallWindowProcA() retval=00000001 ret=140af22c8 0104:Ret window proc 0000000140AF0E38 (hwnd=00000000000204E6,msg=WM_ERASEBKGND,wp=0007003b,lp=00000000) retval=00000001 0104:trace:win:BeginPaint hdc = 000000000007003B box = ((0,0)-(128,23)), fErase = 0 0104:trace:combo:COMBO_Paint hdc=000000000007003B 0104:trace:msg:WINPROC_CallProcWtoA (hwnd=00000000000204EC,msg=WM_CTLCOLOREDIT,wp=0007003b,lp=000204e6) 0104:Call window proc 0000000140AF0E38 (hwnd=00000000000204EC,msg=WM_CTLCOLOREDIT,wp=0007003b,lp=000204e6) 0104:Call user32.CallWindowProcA(ffff001e,000204ec,00000133,0007003b,000204e6) ret=140af22c8 0104:trace:msg:WINPROC_CallProcAtoW (hwnd=00000000000204EC,msg=WM_CTLCOLOREDIT,wp=0007003b,lp=000204e6) 0104:Call window proc 00000000008EB040 (hwnd=00000000000204EC,msg=WM_CTLCOLOREDIT,wp=0007003b,lp=000204e6) 0104:Call user32.GetWindowLongPtrW(000204ec,00000000) ret=008eb080 0104:Ret user32.GetWindowLongPtrW() retval=04a0fef0 ret=008eb080 0104:Call user32.DefWindowProcW(000204ec,00000133,0007003b,000204e6) ret=008eb0d4 0104:Ret user32.DefWindowProcW() retval=0001004b ret=008eb0d4 0104:Ret window proc 00000000008EB040 (hwnd=00000000000204EC,msg=WM_CTLCOLOREDIT,wp=0007003b,lp=000204e6) retval=0001004b 0104:Ret user32.CallWindowProcA() retval=0001004b ret=140af22c8 0104:Ret window proc 0000000140AF0E38 (hwnd=00000000000204EC,msg=WM_CTLCOLOREDIT,wp=0007003b,lp=000204e6) retval=0001004b 0104:trace:combo:CBPaintText 0104:Call window proc 000000018009EFB0 (hwnd=00000000000204E4,msg=LB_GETCURSEL,wp=00000000,lp=00000000) 0104:Ret window proc 000000018009EFB0 (hwnd=00000000000204E4,msg=LB_GETCURSEL,wp=00000000,lp=00000000) retval=ffffffff 0104:Call ntdll.RtlFreeHeap(00020000,00000000,00000000) ret=7f1589e9413f 0104:Ret ntdll.RtlFreeHeap() retval=00000001 ret=7f1589e9413f ... 0104:trace:msg:WINPROC_CallProcWtoA (hwnd=00000000000204EC,msg=WM_CTLCOLOREDIT,wp=0007003b,lp=000204e6) 0104:Call window proc 0000000140AF0E38 (hwnd=00000000000204EC,msg=WM_CTLCOLOREDIT,wp=0007003b,lp=000204e6) 0104:Call user32.CallWindowProcA(ffff001e,000204ec,00000133,0007003b,000204e6) ret=140af22c8 0104:trace:msg:WINPROC_CallProcAtoW (hwnd=00000000000204EC,msg=WM_CTLCOLOREDIT,wp=0007003b,lp=000204e6) 0104:Call window proc 00000000008EB040 (hwnd=00000000000204EC,msg=WM_CTLCOLOREDIT,wp=0007003b,lp=000204e6) 0104:Call user32.GetWindowLongPtrW(000204ec,00000000) ret=008eb080 0104:Ret user32.GetWindowLongPtrW() retval=04a0fef0 ret=008eb080 0104:Call user32.DefWindowProcW(000204ec,00000133,0007003b,000204e6) ret=008eb0d4 0104:Ret user32.DefWindowProcW() retval=0001004b ret=008eb0d4 0104:Ret window proc 00000000008EB040 (hwnd=00000000000204EC,msg=WM_CTLCOLOREDIT,wp=0007003b,lp=000204e6) retval=0001004b 0104:Ret user32.CallWindowProcA() retval=0001004b ret=140af22c8 0104:Ret window proc 0000000140AF0E38 (hwnd=00000000000204EC,msg=WM_CTLCOLOREDIT,wp=0007003b,lp=000204e6) retval=0001004b 0104:Call window proc 000000018009EFB0 (hwnd=00000000000204E4,msg=LB_GETITEMDATA,wp=ffffffff,lp=00000000) 0104:Ret window proc 000000018009EFB0 (hwnd=00000000000204E4,msg=LB_GETITEMDATA,wp=ffffffff,lp=00000000) retval=ffffffff 0104:trace:msg:WINPROC_CallProcWtoA (hwnd=00000000000204EC,msg=WM_DRAWITEM,wp=000003e9,lp=0022ec28) 0104:Call window proc 0000000140AF0E38 (hwnd=00000000000204EC,msg=WM_DRAWITEM,wp=000003e9,lp=0022ec28) 0104:Call user32.CopyRect(0022ddf0,0022ec50) ret=1401e1578 0104:Ret user32.CopyRect() retval=00000001 ret=1401e1578 0104:Call gdi32.SaveDC(0007003b) ret=140aeeac6 0104:Ret gdi32.SaveDC() retval=00000001 ret=140aeeac6 0104:Call gdi32.GetBkColor(0007003b) ret=1401e1605 0104:Ret gdi32.GetBkColor() retval=00ffffff ret=1401e1605 0104:Call gdi32.CreateSolidBrush(00ffffff) ret=1401e160d 0104:Ret gdi32.CreateSolidBrush() retval=000102c8 ret=1401e160d 0104:Call gdi32.SetBkMode(0007003b,00000001) ret=140aeef62 0104:Ret gdi32.SetBkMode() retval=00000002 ret=140aeef62 0104:Call user32.FillRect(0007003b,0022ddf0,000102c8) ret=1401e1638 0104:Ret user32.FillRect() retval=00000001 ret=1401e1638 0104:Call user32.SendMessageA(000204e6,00000031,00000000,00000000) ret=1401e1650 0104:Call window proc 0000000140AF0E38 (hwnd=00000000000204E6,msg=WM_GETFONT,wp=00000000,lp=00000000) 0104:Call user32.CallWindowProcA(18009eef0,000204e6,00000031,00000000,00000000) ret=140af22c8 0104:Call window proc 000000018009EEF0 (hwnd=00000000000204E6,msg=WM_GETFONT,wp=00000000,lp=00000000) 0104:trace:combo:ComboWndProc_common [00000000000204E6]: msg WM_GETFONT wp 00000000 lp 00000000 0104:Ret window proc 000000018009EEF0 (hwnd=00000000000204E6,msg=WM_GETFONT,wp=00000000,lp=00000000) retval=02510246 0104:Ret user32.CallWindowProcA() retval=02510246 ret=140af22c8 0104:Ret window proc 0000000140AF0E38 (hwnd=00000000000204E6,msg=WM_GETFONT,wp=00000000,lp=00000000) retval=02510246 0104:Ret user32.SendMessageA() retval=02510246 ret=1401e1650 0104:Call gdi32.GetObjectA(02510246,0000003c,0022de50) ret=1401e166b 0104:Ret gdi32.GetObjectA() retval=0000003c ret=1401e166b 0104:trace:seh:dispatch_exception code=c0000005 flags=0 addr=00000001401E166B ip=00000001401E166B tid=0104 0104:trace:seh:dispatch_exception info[0]=0000000000000000 0104:trace:seh:dispatch_exception info[1]=0000000000000007 0104:warn:seh:dispatch_exception EXCEPTION_ACCESS_VIOLATION exception (code=c0000005) raised 0104:trace:seh:dispatch_exception rax=000000000000003c rbx=00000000ffffffff rcx=00000000977148d7 rdx=000000000000003b 0104:trace:seh:dispatch_exception rsi=000000000022ec28 rdi=00000000000d4b98 rbp=000000000022de59 rsp=000000000022dda0 0104:trace:seh:dispatch_exception r8=000000000000007f r9=0000000000000000 r10=000000000022d8e6 r11=0000000000000246 0104:trace:seh:dispatch_exception r12=00000000000003e9 r13=000000000498e498 r14=0000000000000000 r15=000000000498e228 ... wine: Unhandled page fault on read access to 0000000000000007 at address 00000001401E166B (thread 0104), starting debugger... --- snip ---
I've created a snapshot from today via Internet Archive:
https://web.archive.org/web/20210301174639if_/http://www.spectrum-soft.com/d...
$ sha1sum mc12cd.zip ee85de0378e9f9ca01e11f5053ee96809d5f0eb2 mc12cd.zip
$ du -sh mc12cd.zip 59M mc12cd.zip
$ wine --version wine-6.3
Regards
https://bugs.winehq.org/show_bug.cgi?id=50741
--- Comment #8 from Graial devops.sune@gmail.com --- Good morning,
bringing your attention to a python based automated test-suite that I've started in order to better report bugs and conduct regression testing.
https://gitlab.com/sunE-devops/microcap-wine-tests
Upon successful setup, you can run the test of this bug with the following:
nosetests test/1_bug_tests.py:BugTest.test_bug_50741_crash_on_add_text
Please note that I am currently developing on Mint so the tests will only be valid for this operating system and Windows 10. However, if this approach is welcome to the developer community, I'm ok to switch over to a more common display manager like GNOME.
This forms part of my plan for further testing of this app and so I'm wondering if I can get any comments regarding this approach for doing regression testing of WINE apps.
https://bugs.winehq.org/show_bug.cgi?id=50741
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=50741
Andrey Zgarbul burrbull@yandex.ua changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |burrbull@yandex.ua
--- Comment #9 from Andrey Zgarbul burrbull@yandex.ua --- Works fine on 8.0 for me.