Repository navigation
Description
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
petrochenkov commentedon May 31, 2016
It's a very recent regression (couple of weeks maybe), I observe it too.
alexcrichton commentedon May 31, 2016
@skiwi2 do you have some sample code that could be used to reproduce this?
skiwi2 commentedon May 31, 2016
I'm running the following code: https://gist.github.com/skiwi2/ce188c7d3b13fe3e3dbdb5c5f0752cd1 (Please don't mind the quality)
alexcrichton commentedon May 31, 2016
I was unfortunately unable to reproduce, @skiwi2 can you also gist the output of
rustc -vVas well ascargo -V?alexcrichton commentedon May 31, 2016
Ah and also, the panic message (e.g. the full output of one compile) would also be useful
skiwi2 commentedon May 31, 2016
@alexcrichton What exactly do you mean by your last request? Do you want the program output (including logging statements), or some compilation output?
skiwi2 commentedon May 31, 2016
The rustc and Cargo info files are up at https://gist.github.com/skiwi2/be1a8bf2171f3c1114a5fa65933e6732
alexcrichton commentedon May 31, 2016
@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!
retep998 commentedon May 31, 2016
#33554 was merged on May 14, your rustc is from May 18, could that have caused the regression perhaps?
alexcrichton commentedon May 31, 2016
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.
retep998 commentedon May 31, 2016
In the meantime if you do want backtraces and don't mind installing VC++ you can always use the
x86_64-pc-windows-msvcversion of Rust.DoumanAsh commentedon Jul 27, 2016
Having the same issue on current stable gnu toolchain
abonander commentedon Aug 25, 2016
This is still occurring on recent nightlies: https://www.reddit.com/r/rust/comments/4zgzfk/is_there_an_unwrap_in_macro_form/d6vrvuw
ruabmbua commentedon Sep 13, 2016
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
13 remaining items
petrochenkov commentedon Jan 28, 2017
Fixed by #39234
dpelevin commentedon Feb 2, 2017
@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.
petrochenkov commentedon Feb 2, 2017
@dpelevin
It's better to create a new issue for this problem, so it doesn't get lost.