NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-i386/50742 (wine gives the error: wine: Unhandled page fault on read access to 0x0069004c at address 0x0017:0x7f1d20c0 (thread 0021), starting debugger...)



Synopsis: wine gives the error: wine: Unhandled page fault on read access to 0x0069004c at address 0x0017:0x7f1d20c0 (thread 0021), starting debugger...

State-Changed-From-To: open->analyzed
State-Changed-By: maya%NetBSD.org@localhost
State-Changed-When: Fri, 22 May 2020 23:25:35 +0000
State-Changed-Why:
This was resolved by Naveen Narayanan as part of GSoC 2019. Since it isn't in pkgsrc proper, not closing yet.
Fix Unhandled page fault on write access owing to pthread_attr_setstack(3)
setting guard on NetBSD 8.0 and newer. This patch has been submitted to Wine
and can be removed to once upstreamed.

--- dlls/ntdll/thread.c.orig	2019-03-15 20:18:31.000000000 +0000
+++ dlls/ntdll/thread.c
@@ -526,6 +526,7 @@ NTSTATUS WINAPI RtlCreateUserThread( HAN
     pthread_attr_init( &attr );
     pthread_attr_setstack( &attr, teb->DeallocationStack,
                          (char *)teb->Tib.StackBase + extra_stack - (char *)teb->DeallocationStack );
+    pthread_attr_setguardsize(&attr, 0);
     pthread_attr_setscope( &attr, PTHREAD_SCOPE_SYSTEM ); /* force creating a kernel thread */
     interlocked_xchg_add( &nb_threads, 1 );
     if (pthread_create( &pthread_id, &attr, (void * (*)(void *))start_thread, info ))






Home | Main Index | Thread Index | Old Index