Skip to content

Rust stack backtrace filled with unknown on Windows 8.1 #33985

Closed

Description

@skiwi2

When running a piece of code I get the following stack backtrace:

' panicked at 'index out of bounds', ../src/libcore\option.rs:700 stack backtrace: 0: 0x4707c3 - 1: 0x46fcb5 - 2: 0x433baf - 3: 0x43573b - 4: 0x462eab - 5: 0x484e05 - 6: 0x4a61c4 - 7: 0x41ffdb - 8: 0x41ff4c - 9: 0x402bf5 - 10: 0x46f2ed - 11: 0x46f11a - 12: 0x42ba1a - 13: 0x4013b4 - 14: 0x4014e7 - 15: 0x7ffa1a5613d1 - error: Process didn't exit successfully: `C:\Users\Frank\Dropbox\workspace\sieve_multithreaded\target\debug\sieve_multithreaded.exe` (exit code: 101)

I'm running cargo build with RUST_BACKTRACE=1 and have the following %PATH%:

C:\Program Files\Microsoft MPI\Bin;C:\Program Files\Haskell\bin;C:\Program Files\Haskell Platform\7.10.2-a\lib\extralibs\bin;C:\Program Files\Haskell Platform
7.10.2-a\bin;C:\ProgramData\Oracle\Java\javapath;C:\jet9.0-eval-amd64\bin;C:\Program Files\ImageMagick-6.8.7-Q16;C:\Windows\system32;C:\Windows;C:\Windows\Syste
m32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Microsoft\Web Platform Installer;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pag
es\v1.0;C:\Program Files\Microsoft SQL Server\110\Tools\Binn;C:\Program Files (x86)\CMake 2.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\W
INDOWS\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\Java\jdk1.7.0_25\bin;C:\Program Files (x86)\QuickTime\QTSys
tem;C:\Program Files (x86)\Tesseract-OCR;C:\Program Files\Calibre2;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit;C:\Program Files (x86)
\Microsoft SDKs\TypeScript\1.0;C:\Program Files (x86)\Subversion\bin;C:\texlive\2014\bin\win32;C:\Program Files\nodejs;C:\HashiCorp\Vagrant\bin;C:\Program Fil
es (x86)\Gource\cmd;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Haskell Platform\7.10.2-a\mingw\bin;C:\Leksah\bin;C:\Program Files
(x86)\Skype\Phone;C:\Program Files\Rust stable GNU 1.9\bin;C:\Users\Frank\AppData\Roaming\cabal\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\P
rogramData\Oracle\Java\javapath;C:\jet9.0-eval-amd64\bin;C:\Program Files\ImageMagick-6.8.7-Q16;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windo
ws\System32\WindowsPowerShell\v1.0;C:\Program Files\Microsoft\Web Platform Installer;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0;C:\Progr
am Files\Microsoft SQL Server\110\Tools\Binn;C:\Program Files (x86)\CMake 2.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\W
indowsPowerShell\v1.0;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\Java\jdk1.7.0_25\bin;C:\Program Files (x86)\QuickTime\QTSystem;C:\Program F
iles (x86)\Tesseract-OCR;C:\Program Files\Calibre2;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit;C:\Program Files (x86)\Microsoft SDKs\T
ypeScript\1.0;C:\Program Files (x86)\Subversion\bin;C:\Program Files (x86)\Skype\Phone;C:\python27;C:\python27\Scripts;D:\texlive\2014\bin\win32;C:\Users\Fran
k\AppData\Roaming\npm;C:\Program Files\Oracle\VirtualBox;C:\grails-3.0.9\bin;C:\Program Files\mingw-w64\x86_64-4.9.0-posix-seh-rt_v3-rev2\mingw64\bin;C:\Program
Files (x86)\Git\bin;C:\cntk

I have no clue why it is not showing more information about the stack frames and haven't had any success in Googling it.

Activity

  1. petrochenkov commented on May 31, 2016

    @petrochenkov
    Contributor

    It's a very recent regression (couple of weeks maybe), I observe it too.

  2. alexcrichton commented on May 31, 2016

    @alexcrichton
    Member

    @skiwi2 do you have some sample code that could be used to reproduce this?

  3. skiwi2 commented on May 31, 2016

    @skiwi2
    Author

    I'm running the following code: https://gist.github.com/skiwi2/ce188c7d3b13fe3e3dbdb5c5f0752cd1 (Please don't mind the quality)

  4. alexcrichton commented on May 31, 2016

    @alexcrichton
    Member

    I was unfortunately unable to reproduce, @skiwi2 can you also gist the output of rustc -vV as well as cargo -V?

  5. alexcrichton commented on May 31, 2016

    @alexcrichton
    Member

    Ah and also, the panic message (e.g. the full output of one compile) would also be useful

  6. skiwi2 commented on May 31, 2016

    @skiwi2
    Author

    @alexcrichton What exactly do you mean by your last request? Do you want the program output (including logging statements), or some compilation output?

  7. skiwi2 commented on May 31, 2016

    @skiwi2
    Author
  8. alexcrichton commented on May 31, 2016

    @alexcrichton
    Member

    @skiwi2 oh just along the lines of gisting the entire error (from the invocation of rustc/cargo all the way through to the next prompt). It looks like the snippet above may just be a subset? The panic message may be enough, but can't hurt to have more output!

  9. retep998 commented on May 31, 2016

    @retep998
    Contributor

    #33554 was merged on May 14, your rustc is from May 18, could that have caused the regression perhaps?

  10. alexcrichton commented on May 31, 2016

    @alexcrichton
    Member

    Oh! I apologize, I thought this was about an ICE not for a normal panic (which this appears to be about). In that case, yes, it's likely closely related to #33554, which was implemented for security purposes.

  11. retep998 commented on May 31, 2016

    @retep998
    Contributor

    In the meantime if you do want backtraces and don't mind installing VC++ you can always use the x86_64-pc-windows-msvc version of Rust.

  12. DoumanAsh commented on Jul 27, 2016

    @DoumanAsh

    Having the same issue on current stable gnu toolchain

  13. abonander commented on Aug 25, 2016

    @abonander
    Contributor
  14. ruabmbua commented on Sep 13, 2016

    @ruabmbua
    Contributor

    I have the same problem too on newest gnu nightly and stable.
    Could someone look into fixing that? It is quiet annoying, when I have to use gdb for my cargo test cases, to actually find the panicing code.

    Edit:
    msvc is not an option for me

  15. 13 remaining items

  16. petrochenkov commented on Jan 28, 2017

    @petrochenkov
    Contributor

    Fixed by #39234

  17. dpelevin commented on Feb 2, 2017

    @dpelevin

    @petrochenkov, with current implementation application crashes in the case of panic, if debug info is stripped out with (strip -s helloworld.exe) and RUST_BACKTRACE is set to 1.

  18. petrochenkov commented on Feb 2, 2017

    @petrochenkov
    Contributor

    @dpelevin
    It's better to create a new issue for this problem, so it doesn't get lost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    O-windows-gnuToolchain: GNU, Operating system: Windows

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions