This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tdep/17521] New: On Windows-x86_64 GDB runs into infinite loop when entering small functions generated by RUSTC/LLVM


https://sourceware.org/bugzilla/show_bug.cgi?id=17521

            Bug ID: 17521
           Summary: On Windows-x86_64 GDB runs into infinite loop when
                    entering small functions generated by RUSTC/LLVM
           Product: gdb
           Version: 7.8
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tdep
          Assignee: unassigned at sourceware dot org
          Reporter: michaelwoerister at posteo dot net

Created attachment 7861
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7861&action=edit
Source+Executable for reproducing - use 'rb tiny_func' to set breakpoint and
then 'run'

Using the GDB version coming with [1], GDB seems to get stuck when entering
some small functions generated by the Rust compiler. Sample backtraces [2] seem
to suggest that control flow never leaves the
`amd64_windows_frame_decode_insns()` function.

Attached you can find a small program for reproducing the bug. Just set a
breakpoint with `rb tiny_func` and then `run`. 

Feel free to contact me if you have any further questions.

[1]
http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/4.9.1/threads-win32/seh/x86_64-4.9.1-release-win32-seh-rt_v3-rev2.7z/download

[2] https://github.com/rust-lang/rust/issues/17540#issuecomment-60264838

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]