Skip to content

Instantly share code, notes, and snippets.

@japaric
Created November 3, 2014 17:01
Show Gist options
  • Save japaric/1defb212b59968c9d21c to your computer and use it in GitHub Desktop.
Save japaric/1defb212b59968c9d21c to your computer and use it in GitHub Desktop.
SIGILL on run-pass tests
$ LD_LIBRARY_PATH=~/tmp/rust/build/x86_64-unknown-linux-gnu/stage2/lib gdb ./concat.stage2-x86_64-unknown-linux-gnu
Program received signal SIGILL, Illegal instruction.
#0 0x00007ffff7465df0 in oom::h93dfd3e3972e6f01uTa () from /home/japaric/tmp/rust/build/x86_64-unknown-linux-gnu/stage2/lib/librustrt-4e7c5e5c.so
#1 0x00007ffff744e291 in vec::Vec$LT$T$GT$::push_all::h13280501910359069037 () from /home/japaric/tmp/rust/build/x86_64-unknown-linux-gnu/stage2/lib/librustrt-4e7c5e5c.so
#2 0x00007ffff7452917 in unwind::begin_unwind_fmt::VecWriter$LT$$x27a$GT$.fmt..FormatWriter::write::ha595f73718a41d22vQd () from /home/japaric/tmp/rust/build/x86_64-unknown-linux-gnu/stage2/lib/librustrt-4e7c5e5c.so
#3 0x00007ffff74ad564 in fmt::Formatter$LT$$x27a$GT$::pad::hee6379fddecf9c14aMy () from /home/japaric/tmp/rust/build/x86_64-unknown-linux-gnu/stage2/lib/librustrt-4e7c5e5c.so
#4 0x00007ffff74a49ca in fmt::str.Show::fmt::he759648c8d60206aF4y () from /home/japaric/tmp/rust/build/x86_64-unknown-linux-gnu/stage2/lib/librustrt-4e7c5e5c.so
#5 0x0000555555555784 in fmt::secret_show::h15564060572863455715 ()
#6 0x00007ffff74accb2 in fmt::write::h8546aef2fdd4fc6fSBy () from /home/japaric/tmp/rust/build/x86_64-unknown-linux-gnu/stage2/lib/librustrt-4e7c5e5c.so
#7 0x00007ffff74acaeb in fmt::Arguments$LT$$x27a$GT$.Show::fmt::hb7aa64e895d9b931oty () from /home/japaric/tmp/rust/build/x86_64-unknown-linux-gnu/stage2/lib/librustrt-4e7c5e5c.so
#8 0x00007ffff74accb2 in fmt::write::h8546aef2fdd4fc6fSBy () from /home/japaric/tmp/rust/build/x86_64-unknown-linux-gnu/stage2/lib/librustrt-4e7c5e5c.so
#9 0x00007ffff7452667 in unwind::begin_unwind_fmt::h208c840af388ba59YPd () from /home/japaric/tmp/rust/build/x86_64-unknown-linux-gnu/stage2/lib/librustrt-4e7c5e5c.so
#10 0x0000555555555719 in main::ha0f72e4332cd1cc6eaa ()
#11 0x00007ffff7bb03fd in start::closure.8525 () from /home/japaric/tmp/rust/build/x86_64-unknown-linux-gnu/stage2/lib/libnative-4e7c5e5c.so
#12 0x00007ffff74b26bc in rust_try_inner () from /home/japaric/tmp/rust/build/x86_64-unknown-linux-gnu/stage2/lib/librustrt-4e7c5e5c.so
#13 0x00007ffff74b26a6 in rust_try () from /home/japaric/tmp/rust/build/x86_64-unknown-linux-gnu/stage2/lib/librustrt-4e7c5e5c.so
#14 0x00007ffff7450293 in unwind::try::hdba9f8a1c1736369QGd () from /home/japaric/tmp/rust/build/x86_64-unknown-linux-gnu/stage2/lib/librustrt-4e7c5e5c.so
#15 0x00007ffff745015c in task::Task::run::hde9290f1c903c62cGMc () from /home/japaric/tmp/rust/build/x86_64-unknown-linux-gnu/stage2/lib/librustrt-4e7c5e5c.so
#16 0x00007ffff7bb023f in start::he6fa27f7df669190Yje () from /home/japaric/tmp/rust/build/x86_64-unknown-linux-gnu/stage2/lib/libnative-4e7c5e5c.so
#17 0x00007ffff7bb0076 in lang_start::hb37e1e3ed226686chje () from /home/japaric/tmp/rust/build/x86_64-unknown-linux-gnu/stage2/lib/libnative-4e7c5e5c.so
#18 0x00007ffff6e4f010 in __libc_start_main () from /lib64/libc.so.6
#19 0x0000555555554d69 in _start ()
failures:
---- [run-pass] run-pass/concat.rs stdout ----
error: test run failed!
status: signal: 4
command: x86_64-unknown-linux-gnu/test/run-pass/concat.stage2-x86_64-unknown-linux-gnu
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
------------------------------------------
task '[run-pass] run-pass/concat.rs' panicked at 'explicit panic', /home/japaric/tmp/rust/src/compiletest/runtest.rs:1485
---- [run-pass] run-pass/const-cross-crate-const.rs stdout ----
error: test run failed!
status: signal: 4
command: x86_64-unknown-linux-gnu/test/run-pass/const-cross-crate-const.stage2-x86_64-unknown-linux-gnu
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
------------------------------------------
task '[run-pass] run-pass/const-cross-crate-const.rs' panicked at 'explicit panic', /home/japaric/tmp/rust/src/compiletest/runtest.rs:1485
---- [run-pass] run-pass/issue-16278.rs stdout ----
error: test run failed!
status: signal: 4
command: x86_64-unknown-linux-gnu/test/run-pass/issue-16278.stage2-x86_64-unknown-linux-gnu
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
------------------------------------------
task '[run-pass] run-pass/issue-16278.rs' panicked at 'explicit panic', /home/japaric/tmp/rust/src/compiletest/runtest.rs:1485
---- [run-pass] run-pass/issue-17734.rs stdout ----
error: test run failed!
status: signal: 4
command: x86_64-unknown-linux-gnu/test/run-pass/issue-17734.stage2-x86_64-unknown-linux-gnu
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
------------------------------------------
task '[run-pass] run-pass/issue-17734.rs' panicked at 'explicit panic', /home/japaric/tmp/rust/src/compiletest/runtest.rs:1485
---- [run-pass] run-pass/issue-7784.rs stdout ----
error: test run failed!
status: signal: 4
command: x86_64-unknown-linux-gnu/test/run-pass/issue-7784.stage2-x86_64-unknown-linux-gnu
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
------------------------------------------
task '[run-pass] run-pass/issue-7784.rs' panicked at 'explicit panic', /home/japaric/tmp/rust/src/compiletest/runtest.rs:1485
---- [run-pass] run-pass/issue-8709.rs stdout ----
error: test run failed!
status: signal: 4
command: x86_64-unknown-linux-gnu/test/run-pass/issue-8709.stage2-x86_64-unknown-linux-gnu
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
------------------------------------------
task '[run-pass] run-pass/issue-8709.rs' panicked at 'explicit panic', /home/japaric/tmp/rust/src/compiletest/runtest.rs:1485
---- [run-pass] run-pass/istr.rs stdout ----
error: test run failed!
status: signal: 4
command: x86_64-unknown-linux-gnu/test/run-pass/istr.stage2-x86_64-unknown-linux-gnu
stdout:
------------------------------------------
a
a big ol' string
ab
------------------------------------------
stderr:
------------------------------------------
------------------------------------------
task '[run-pass] run-pass/istr.rs' panicked at 'explicit panic', /home/japaric/tmp/rust/src/compiletest/runtest.rs:1485
---- [run-pass] run-pass/lexer-crlf-line-endings-string-literal-doc-comment.rs stdout ----
error: test run failed!
status: signal: 4
command: x86_64-unknown-linux-gnu/test/run-pass/lexer-crlf-line-endings-string-literal-doc-comment.stage2-x86_64-unknown-linux-gnu
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
------------------------------------------
task '[run-pass] run-pass/lexer-crlf-line-endings-string-literal-doc-comment.rs' panicked at 'explicit panic', /home/japaric/tmp/rust/src/compiletest/runtest.rs:1485
---- [run-pass] run-pass/macro-block-nonterminal.rs stdout ----
error: test run failed!
status: signal: 4
command: x86_64-unknown-linux-gnu/test/run-pass/macro-block-nonterminal.stage2-x86_64-unknown-linux-gnu
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
------------------------------------------
task '[run-pass] run-pass/macro-block-nonterminal.rs' panicked at 'explicit panic', /home/japaric/tmp/rust/src/compiletest/runtest.rs:1485
---- [run-pass] run-pass/macro-deep_expansion.rs stdout ----
error: test run failed!
status: signal: 4
command: x86_64-unknown-linux-gnu/test/run-pass/macro-deep_expansion.stage2-x86_64-unknown-linux-gnu
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
------------------------------------------
task '[run-pass] run-pass/macro-deep_expansion.rs' panicked at 'explicit panic', /home/japaric/tmp/rust/src/compiletest/runtest.rs:1485
---- [run-pass] run-pass/match-arm-statics.rs stdout ----
error: test run failed!
status: signal: 4
command: x86_64-unknown-linux-gnu/test/run-pass/match-arm-statics.stage2-x86_64-unknown-linux-gnu
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
------------------------------------------
task '[run-pass] run-pass/match-arm-statics.rs' panicked at 'explicit panic', /home/japaric/tmp/rust/src/compiletest/runtest.rs:1485
---- [run-pass] run-pass/match-pattern-bindings.rs stdout ----
error: test run failed!
status: signal: 4
command: x86_64-unknown-linux-gnu/test/run-pass/match-pattern-bindings.stage2-x86_64-unknown-linux-gnu
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
------------------------------------------
task '[run-pass] run-pass/match-pattern-bindings.rs' panicked at 'explicit panic', /home/japaric/tmp/rust/src/compiletest/runtest.rs:1485
---- [run-pass] run-pass/match-vec-alternatives.rs stdout ----
error: test run failed!
status: signal: 4
command: x86_64-unknown-linux-gnu/test/run-pass/match-vec-alternatives.stage2-x86_64-unknown-linux-gnu
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
------------------------------------------
task '[run-pass] run-pass/match-vec-alternatives.rs' panicked at 'explicit panic', /home/japaric/tmp/rust/src/compiletest/runtest.rs:1485
---- [run-pass] run-pass/nul-characters.rs stdout ----
error: test run failed!
status: signal: 4
command: x86_64-unknown-linux-gnu/test/run-pass/nul-characters.stage2-x86_64-unknown-linux-gnu
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
------------------------------------------
task '[run-pass] run-pass/nul-characters.rs' panicked at 'explicit panic', /home/japaric/tmp/rust/src/compiletest/runtest.rs:1485
---- [run-pass] run-pass/overloaded-autoderef.rs stdout ----
error: test run failed!
status: signal: 4
command: x86_64-unknown-linux-gnu/test/run-pass/overloaded-autoderef.stage2-x86_64-unknown-linux-gnu
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
------------------------------------------
task '[run-pass] run-pass/overloaded-autoderef.rs' panicked at 'explicit panic', /home/japaric/tmp/rust/src/compiletest/runtest.rs:1485
---- [run-pass] run-pass/raw-str.rs stdout ----
error: test run failed!
status: signal: 4
command: x86_64-unknown-linux-gnu/test/run-pass/raw-str.stage2-x86_64-unknown-linux-gnu
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
------------------------------------------
task '[run-pass] run-pass/raw-str.rs' panicked at 'explicit panic', /home/japaric/tmp/rust/src/compiletest/runtest.rs:1485
---- [run-pass] run-pass/tydesc-name.rs stdout ----
error: test run failed!
status: signal: 4
command: x86_64-unknown-linux-gnu/test/run-pass/tydesc-name.stage2-x86_64-unknown-linux-gnu
stdout:
------------------------------------------
------------------------------------------
stderr:
------------------------------------------
------------------------------------------
task '[run-pass] run-pass/tydesc-name.rs' panicked at 'explicit panic', /home/japaric/tmp/rust/src/compiletest/runtest.rs:1485
failures:
[run-pass] run-pass/concat.rs
[run-pass] run-pass/const-cross-crate-const.rs
[run-pass] run-pass/issue-16278.rs
[run-pass] run-pass/issue-17734.rs
[run-pass] run-pass/issue-7784.rs
[run-pass] run-pass/issue-8709.rs
[run-pass] run-pass/istr.rs
[run-pass] run-pass/lexer-crlf-line-endings-string-literal-doc-comment.rs
[run-pass] run-pass/macro-block-nonterminal.rs
[run-pass] run-pass/macro-deep_expansion.rs
[run-pass] run-pass/match-arm-statics.rs
[run-pass] run-pass/match-pattern-bindings.rs
[run-pass] run-pass/match-vec-alternatives.rs
[run-pass] run-pass/nul-characters.rs
[run-pass] run-pass/overloaded-autoderef.rs
[run-pass] run-pass/raw-str.rs
[run-pass] run-pass/tydesc-name.rs
test result: FAILED. 1630 passed; 17 failed; 27 ignored; 0 measured

Branch: eq-sigill

Changes: niko's operator dispatch + DSTification of PartialEq et al.

make passes, but make check yields 17 run-pass test failures (See the "failures" file attached below). Most failures have empty stdout/stderr. Upon running the compiled tests under gdb, I found that the programs SIGILL (See "backtrace" file attached below). However, when recompiled, the tests run successfully:

$ LD_LIBRARY_PATH=~/tmp/rust/build/x86_64-unknown-linux-gnu/stage2/lib ~/tmp/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc concat.rs && ./concat && echo OK
OK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment