https://bugs.winehq.org/show_bug.cgi?id=38505
Bug ID: 38505 Summary: Unhandled exception: page fault on read access to 0x exiting a vb5 program Product: Wine Version: unspecified Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: blocker Priority: P2 Component: user32 Assignee: wine-bugs@winehq.org Reporter: joluinfante@gmail.com Distribution: ---
I’m trying to execute sijpv12.exe (a fiscal program from Argentina), and, when I try to exit it, the wine crash. I did try with wine 1.4.1, 1.7.x, and the problem is not repaired.
I did see the problem is here:
static LRESULT call_window_proc( HWND hwnd, UINT msg, WPARAM wp, LPARAM lp, LRESULT *result, void *arg ) { WNDPROC proc = arg;
USER_CheckNotLock();
hwnd = WIN_GetFullHandle( hwnd ); if (TRACE_ON(relay)) DPRINTF( "%04x:Call window proc %p (hwnd=%p,msg=%s,wp=%08lx,lp=%08lx)\n", GetCurrentThreadId(), proc, hwnd, SPY_GetMsgName(msg, hwnd), wp, lp ); FIXME("%04x:Call window proc %p (hwnd=%p,msg=%s,wp=%08lx,lp=%08lx)\n", GetCurrentThreadId(), proc, hwnd, SPY_GetMsgName(msg, hwnd), wp, lp );
*result = WINPROC_wrapper( proc, hwnd, msg, wp, lp ); <<<<<- The problem is here
if (TRACE_ON(relay)) DPRINTF( "%04x:Ret window proc %p (hwnd=%p,msg=%s,wp=%08lx,lp=%08lx) retval=%08lx\n", GetCurrentThreadId(), proc, hwnd, SPY_GetMsgName(msg, hwnd), wp, lp, *result ); return *result; }
I did "repair" (using wine1.5), adding this to except.c: 430a431,433
case EXCEPTION_READ_FAULT: TerminateProcess( GetCurrentProcess(), 1 ); break;
This works for me, because I can complete the exit, but, is not appropiate. To reproduce the problem:
Download siap application from: http://www.afip.gob.ar/aplicativos/siap/archivos/siap.zip Install It (It is a vb5 application, only next, next with default options).
Download sicoss application from: http://www.afip.gob.ar/Aplicativos/seguridadSocial/archivos/SICOSS_39_R1-Mas... Install It (like siap)
Start the application siap. Add information required for business. Select business, and click on sicoss (right, upper icon). Add minimal information required. Try to exit. Your program hung.
I'll send more information later, including screen shots, but this the problem.
TIA
https://bugs.winehq.org/show_bug.cgi?id=38505
--- Comment #1 from joluinfante joluinfante@gmail.com --- I can’t to modify the vb code (it is a tax program from argentina) The code running (decompiled with vbdecompiler) is:
Private Sub MnuArchivo_Salir_Click() '4F2994 'Data Table: 42B278 Dim var_88 As Long loc_4F293C: If (Me.global.Forms.Count > 3) Then loc_4F2960: MsgBox("Aún existen formularios activos. Para poder cerrar la aplicación debe cerrar los formularios abiertos.", &H40, "Salida del Sisitema", var_EC, var_10C) loc_4F2975: var_88 = 1 loc_4F297B: Else loc_4F2988: Me.global.Unload Me loc_4F2990: End loc_4F2992: End If loc_4F2992: Exit Sub End Sub
https://bugs.winehq.org/show_bug.cgi?id=38505
--- Comment #2 from joluinfante joluinfante@gmail.com --- Created attachment 51357 --> https://bugs.winehq.org/attachment.cgi?id=51357 Steps to reproduce the bug
https://bugs.winehq.org/show_bug.cgi?id=38505
Rosanne DiMesio dimesio@earthlink.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|blocker |normal
--- Comment #3 from Rosanne DiMesio dimesio@earthlink.net --- Not a blocker. https://bugs.winehq.org/page.cgi?id=fields.html
https://bugs.winehq.org/show_bug.cgi?id=38505
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download Summary|Unhandled exception: page |sijpv12.exe crashes |fault on read access to 0x | |exiting a vb5 program |
--- Comment #4 from Austin English austinenglish@gmail.com --- What 1.7.x version are you using?
https://bugs.winehq.org/show_bug.cgi?id=38505
--- Comment #5 from joluinfante joluinfante@gmail.com --- (In reply to Austin English from comment #4)
What 1.7.x version are you using?
I did try with: * 1.4.1 (deb installed with ubuntu 13.10) * 1.4.1 (compiled from sources in debian 7.0) * 1.5.11 (compiled from sources in debian 7.0) * 1.7.39 (compiled from sources in debian 7.0)
https://bugs.winehq.org/show_bug.cgi?id=38505
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |1.4.1
https://bugs.winehq.org/show_bug.cgi?id=38505
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |super_man@post.com
--- Comment #6 from super_man@post.com --- The installer has regressed? Doesnt start for me.
wine 1.8.rc1