https://bugs.winehq.org/show_bug.cgi?id=47119
Bug ID: 47119 Summary: winedbg truncates 64-bit address when compiled with mingw Product: Wine Version: 4.5 Hardware: x86 OS: Linux Status: NEW Keywords: download, source Severity: normal Priority: P2 Component: winedbg Assignee: wine-bugs@winehq.org Reporter: madewokherd@gmail.com Distribution: ---
Running "winedbg notepad" with a mingw-compiled winedbg on windows:
Wine-dbg>break *0x123456789 Invalid address 0x0000000023456789, can't set breakpoint
https://bugs.winehq.org/show_bug.cgi?id=47119
Vincent Povirk madewokherd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |madewokherd@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=47119
Bernhard Übelacker bernhardu@mailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bernhardu@mailbox.org
--- Comment #1 from Bernhard Übelacker bernhardu@mailbox.org --- Created attachment 70251 --> https://bugs.winehq.org/attachment.cgi?id=70251 A few backtraces following the truncated address backwards in time.
This line seems responsible: #3 0x000000000041f55f in dbg_lex () at .../wine-git/programs/winedbg/debug.l:159 159 {DIGIT}+ { sscanf(yytext, "%ld", &dbg_lval.integer); return tNUM; }
Compiled with mingw, the line above calls into sscanf in include/msvcrt/stdio.h:314.
https://bugs.winehq.org/show_bug.cgi?id=47119
Eric Pouech eric.pouech@orange.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |eric.pouech@orange.fr
--- Comment #2 from Eric Pouech eric.pouech@orange.fr --- at the time of your testing, winedbg (like many other components) wasn't ripe for being compiled under windows it should be the case now
https://bugs.winehq.org/show_bug.cgi?id=47119
--- Comment #3 from Bernhard Übelacker bernhardu@mailbox.org --- I confirm wine-6.21-214-gbe0684dad50 does not show this truncation: Wine-dbg>break *0x123456789 Invalid address 0x0000000123456789, can't set breakpoint
(Unfortunately I don't have permission to change the status of the bug.)
https://bugs.winehq.org/show_bug.cgi?id=47119
Eric Pouech eric.pouech@orange.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED
--- Comment #4 from Eric Pouech eric.pouech@orange.fr --- thanks for testing. closing
https://bugs.winehq.org/show_bug.cgi?id=47119
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 6.22.