http://bugs.winehq.org/show_bug.cgi?id=37007
Bug ID: 37007 Summary: Wine crashes when my program calls LoadLibrary function under valgrind Product: WineHQ Bugzilla Version: unspecified Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: bugzilla-unknown Assignee: wine-bugs@winehq.org Reporter: zt20055453@163.com
Created attachment 49171 --> http://bugs.winehq.org/attachment.cgi?id=49171 output info and valgrind logs
I want to run wine under valgrind to get my program's memory leaks info. When the program is run to LoadLibrary function, the wine crashes。 Myvalgrind version is 3.9.0, wine version is 1.7.22.
http://bugs.winehq.org/show_bug.cgi?id=37007
Vincent Povirk madewokherd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|bugzilla-unknown |-unknown Version|unspecified |1.7.22 Product|WineHQ Bugzilla |Wine
--- Comment #1 from Vincent Povirk madewokherd@gmail.com --- [TID:9]LoadLibrary!!!!!!!!! ... err:ntdll:RtlpWaitForCriticalSection section 0x4887ea4 "loader.c: loader_section" wait timed out in thread 0022, blocked by 0009, retrying (60 sec) err:ntdll:RtlpWaitForCriticalSection section 0x4887ea4 "loader.c: loader_section" wait timed out in thread 0023, blocked by 0009, retrying (60 sec)
So, it's a hang that causes a crash later.
Does this only happen when run in valgrind?
Can you get a log with WINEDEBUG=module,tid ?
http://bugs.winehq.org/show_bug.cgi?id=37007
Vincent Povirk madewokherd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |madewokherd@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=37007
--- Comment #2 from zengt zt20055453@163.com ---
Does this only happen when run in valgrind?
Can you get a log with WINEDEBUG=module,tid ?
yes, this only happen when run in valgrind. tid means thread id.
http://bugs.winehq.org/show_bug.cgi?id=37007
--- Comment #3 from zengt zt20055453@163.com --- Created attachment 49175 --> http://bugs.winehq.org/attachment.cgi?id=49175 WINEDEBUG=module info
https://bugs.winehq.org/show_bug.cgi?id=37007
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |valgrind
--- Comment #4 from Austin English austinenglish@gmail.com --- (In reply to zengt from comment #3)
Created attachment 49175 [details] WINEDEBUG=module info
You need to run with WINEDEBUG=module,tid; that will prefix each line with the thread id.
https://bugs.winehq.org/show_bug.cgi?id=37007
--- Comment #5 from Ken Sharp imwellcushtymelike@gmail.com --- Does this still occur in Wine 4.19 or later?
Still waiting on log request from above.
https://bugs.winehq.org/show_bug.cgi?id=37007
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEEDINFO