http://bugs.winehq.org/show_bug.cgi?id=28801
Bug #: 28801 Summary: stack_set_frame_internal passes undefined value into SymSetContext()? Product: Wine Version: 1.3.30 Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: dank@kegel.com Classification: Unclassified
On my i5 laptop, with ubuntu 11.10, its gcc-4.6.1, and wine compiled with the options mentioned in bug 28753, valgrind complained in d3d9/visual.ok:
... visual.c:7741: Tests skipped: Card has unconditional pow2 support, skipping conditional NP2 tests Invalid read of size 2 at 0x52E44EC: ??? (in /tmp/gl25sfGl (deleted)) Address 0x0 is not stack'd, malloc'd or (recently) free'd wine: Unhandled page fault on read access to 0x00000000 at address 0x52e44ec (thread 0038), starting debugger... ... Unhandled exception: page fault on read access to 0x00000000 in 32-bit code (0x052e44ec). Conditional jump or move depends on uninitialised value(s) at SymSetContext (dbghelp.c:487) by stack_set_frame_internal (stack.c:82) by stack_fetch_frames (stack.c:238) by dbg_exception_prolog (tgt_active.c:137) by dbg_handle_exception (tgt_active.c:274) by dbg_handle_debug_event (tgt_active.c:354) by wait_exception (tgt_active.c:556) by dbg_active_wait_for_first_exception (tgt_active.c:587) by dbg_active_auto (tgt_active.c:832) by main (winedbg.c:676) Uninitialised value was created by a stack allocation at stack_set_frame_internal (stack.c:70)
(Dunno what caused that exception, kind of reminds me of bug 20985, but the interesting bit is the uninitialised variable, which happens while showing the backtrace from that exception.)
http://bugs.winehq.org/show_bug.cgi?id=28801
Eric Pouech eric.pouech@orange.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |eric.pouech@orange.fr
--- Comment #1 from Eric Pouech eric.pouech@orange.fr 2011-10-19 05:03:41 CDT --- Hi Dan,
just a wild guess looking the winedbg code. - in programs/winedbg/stack.c, line 81, can you add a printf when stack_get_current_frame() fails (returns FALSE) ? - it looks like winedbg cannot get any valid frame for some reasons, and the stack code forces to go to first frame (instead of reporting an error)
TIA
http://bugs.winehq.org/show_bug.cgi?id=28801
--- Comment #2 from Dan Kegel dank@kegel.com 2011-10-19 11:16:24 CDT --- Yep:
Unhandled exception: page fault on read access to 0x00000000 in 32-bit code (0x052e44ec). XYZZY: stack_get_current_frame returned false Conditional jump or move depends on uninitialised value(s) at SymSetContext (dbghelp.c:487) by stack_set_frame_internal (stack.c:83) by stack_fetch_frames (stack.c:239) by dbg_exception_prolog (tgt_active.c:137) by dbg_handle_exception (tgt_active.c:274) by dbg_handle_debug_event (tgt_active.c:354) by wait_exception (tgt_active.c:556) by dbg_active_wait_for_first_exception (tgt_active.c:587) by dbg_active_auto (tgt_active.c:832) by main (winedbg.c:676) Uninitialised value was created by a stack allocation at stack_set_frame_internal (stack.c:70)
http://bugs.winehq.org/show_bug.cgi?id=28801
Eric Pouech eric.pouech@orange.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |winedbg
http://bugs.winehq.org/show_bug.cgi?id=28801
--- Comment #3 from Eric Pouech eric.pouech@orange.fr 2011-11-12 14:26:04 CST --- Created attachment 37468 --> http://bugs.winehq.org/attachment.cgi?id=37468 Always create a stack frame set (even when StackWalk fails)
Hi Dan,
Does the attached patch solve the issue ? TIA
http://bugs.winehq.org/show_bug.cgi?id=28801
--- Comment #4 from Eric Pouech eric.pouech@orange.fr 2012-02-01 08:14:21 CST --- patch has been applied to git by now can you retest?
http://bugs.winehq.org/show_bug.cgi?id=28801
Eric Pouech eric.pouech@orange.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #5 from Eric Pouech eric.pouech@orange.fr 2012-02-25 13:58:44 CST --- closing
http://bugs.winehq.org/show_bug.cgi?id=28801
Jerome Leclanche adys.wh@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |1ecef8242de0027dbe38f1a2d79 | |062ebd87f9b53 CC| |adys.wh@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=28801
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Alexandre Julliard julliard@winehq.org 2012-03-02 13:01:41 CST --- Closing bugs fixed in 1.4-rc6.