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