https://bugs.winehq.org/show_bug.cgi?id=36288
Bug ID: 36288 Summary: valgrind shows an invalid read in kernel32/tests/thread.c Product: Wine Version: 1.7.18 Hardware: x86 OS: Linux Status: NEW Keywords: download, source, testcase Severity: normal Priority: P2 Component: kernel32 Assignee: wine-bugs@winehq.org Reporter: austinenglish@gmail.com
==29807== Thread 2: ==29807== Invalid read of size 4 ==29807== at 0x4A39EA1: set_test_val (thread.c:944) ==29807== by 0x7B876351: SleepEx (sync.c:108) ==29807== by 0x7B87630B: Sleep (sync.c:97) ==29807== by 0x4A39F11: threadFunc6 (thread.c:952) ==29807== by 0x7BC87087: ??? (signal_i386.c:2571) ==29807== by 0x7BC870D0: call_thread_func (signal_i386.c:2630) ==29807== by 0x7BC87065: ??? (signal_i386.c:2571) ==29807== by 0x7BC8E4B0: start_thread (thread.c:428) ==29807== by 0x4EA7BD89: start_thread (in /usr/lib/libpthread-2.18.so) ==29807== by 0x4E95CA0D: clone (in /usr/lib/libc-2.18.so) ==29807== Address 0x62ae8e0 is on thread 1's stack ==29807==
https://bugs.winehq.org/show_bug.cgi?id=36288
--- Comment #1 from Austin English austinenglish@gmail.com --- On my laptop, it's: ==28218== Thread 3: ==28218== Invalid read of size 1 ==28218== at 0x4009EB8: strlen (vg_replace_strmem.c:412) ==28218== by 0x7B875FBC: lstrlenA (string.c:194) ==28218== by 0x4B2665B: threadFunc1 (thread.c:223) ==28218== by 0x7BC87137: ??? (signal_i386.c:2571) ==28218== by 0x7BC87180: call_thread_func (signal_i386.c:2630) ==28218== by 0x7BC87115: ??? (signal_i386.c:2571) ==28218== by 0x7BC8E560: start_thread (thread.c:428) ==28218== by 0x4EA7BD89: start_thread (in /usr/lib/libpthread-2.18.so) ==28218== by 0x4E95CA0D: clone (in /usr/lib/libc-2.18.so) ==28218== Address 0xdeadbeef is on thread 1's stack ==28218==
https://bugs.winehq.org/show_bug.cgi?id=36288
--- Comment #2 from Bruno Jesus 00cpxxx@gmail.com --- (In reply to Austin English from comment #1)
On my laptop, it's: ==28218== Thread 3: ==28218== Invalid read of size 1 ==28218== at 0x4009EB8: strlen (vg_replace_strmem.c:412) ==28218== by 0x7B875FBC: lstrlenA (string.c:194) ==28218== by 0x4B2665B: threadFunc1 (thread.c:223) ==28218== by 0x7BC87137: ??? (signal_i386.c:2571) ==28218== by 0x7BC87180: call_thread_func (signal_i386.c:2630) ==28218== by 0x7BC87115: ??? (signal_i386.c:2571) ==28218== by 0x7BC8E560: start_thread (thread.c:428) ==28218== by 0x4EA7BD89: start_thread (in /usr/lib/libpthread-2.18.so) ==28218== by 0x4E95CA0D: clone (in /usr/lib/libc-2.18.so) ==28218== Address 0xdeadbeef is on thread 1's stack ==28218==
This is expected according to the source code:
222 /* lstrlenA contains an exception handler so this makes sure exceptions work in threads */ 223 ok( lstrlenA( (char *)0xdeadbeef ) == 0, "lstrlenA: unexpected success\n " );
https://bugs.winehq.org/show_bug.cgi?id=36288
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |WONTFIX
--- Comment #3 from Austin English austinenglish@gmail.com --- (In reply to Bruno Jesus from comment #2)
(In reply to Austin English from comment #1)
On my laptop, it's: ==28218== Thread 3: ==28218== Invalid read of size 1 ==28218== at 0x4009EB8: strlen (vg_replace_strmem.c:412) ==28218== by 0x7B875FBC: lstrlenA (string.c:194) ==28218== by 0x4B2665B: threadFunc1 (thread.c:223) ==28218== by 0x7BC87137: ??? (signal_i386.c:2571) ==28218== by 0x7BC87180: call_thread_func (signal_i386.c:2630) ==28218== by 0x7BC87115: ??? (signal_i386.c:2571) ==28218== by 0x7BC8E560: start_thread (thread.c:428) ==28218== by 0x4EA7BD89: start_thread (in /usr/lib/libpthread-2.18.so) ==28218== by 0x4E95CA0D: clone (in /usr/lib/libc-2.18.so) ==28218== Address 0xdeadbeef is on thread 1's stack ==28218==
This is expected according to the source code:
222 /* lstrlenA contains an exception handler so this makes sure exceptions work in threads */ 223 ok( lstrlenA( (char *)0xdeadbeef ) == 0, "lstrlenA: unexpected success\n " );
Marked as intentonal, thanks.
https://bugs.winehq.org/show_bug.cgi?id=36288
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Austin English austinenglish@gmail.com --- Closing.