Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

coretest segfaults periodically checking RUST_DEBUG_MEM env var #5341

Closed
brson opened this issue Mar 12, 2013 · 3 comments
Closed

coretest segfaults periodically checking RUST_DEBUG_MEM env var #5341

brson opened this issue Mar 12, 2013 · 3 comments
Labels
A-runtime Area: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflows I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
Milestone

Comments

@brson
Copy link
Contributor

brson commented Mar 12, 2013

No description provided.

@brson
Copy link
Contributor Author

brson commented Mar 12, 2013

backtrace

#0  __GI_getenv (name=0xf7e094c2 <str15142+2> "ST_DEBUG_MEM") at getenv.c:90
#1  0xf7d1fcce in getenv__c_stack_shim () from /opt/dev/rust2/build/i686-unknown-linux-gnu/test/../stage2/lib/rustc/i686-unknown-linux-gnu/lib/libcore-c3ca5d77d81b46c1-0.6.so
#2  0xf77aa24f in __morestack () from /opt/dev/rust2/build/i686-unknown-linux-gnu/test/../stage2/lib/rustc/i686-unknown-linux-gnu/lib/librustrt.so
#3  0xf77998eb in call_on_c_stack (fn_ptr=0xf7d1fc90 <getenv__c_stack_shim>, args=0xf2c12fe0, this=0xf1609880) at /home/brian/dev/rust2/src/rt/rust_task.h:478
#4  upcall_call_shim_on_c_stack (args=0xf2c12fe0, fn_ptr=0xf7d1fc90 <getenv__c_stack_shim>) at /home/brian/dev/rust2/src/rt/rust_upcall.cpp:64
#5  0xf7d1fc81 in libc::funcs::c95::stdlib::getenv::_8cacb51579a97611::_06 () from /opt/dev/rust2/build/i686-unknown-linux-gnu/test/../stage2/lib/rustc/i686-unknown-linux-gnu/lib/libcore-c3ca5d77d81b46c1-0.6.so
#6  0xf7d803c1 in cleanup::debug_mem::anon::expr_fn_15143 () from /opt/dev/rust2/build/i686-unknown-linux-gnu/test/../stage2/lib/rustc/i686-unknown-linux-gnu/lib/libcore-c3ca5d77d81b46c1-0.6.so
#7  0xf7d3dd2a in os::as_c_charp_13493::anon::expr_fn_13496 () from /opt/dev/rust2/build/i686-unknown-linux-gnu/test/../stage2/lib/rustc/i686-unknown-linux-gnu/lib/libcore-c3ca5d77d81b46c1-0.6.so
#8  0xf7d3d553 in str::as_c_str_13479::anon::expr_fn_13482 () from /opt/dev/rust2/build/i686-unknown-linux-gnu/test/../stage2/lib/rustc/i686-unknown-linux-gnu/lib/libcore-c3ca5d77d81b46c1-0.6.so
#9  0xf7cc794f in str::as_buf_9428::_76f8bd1621acf844::_06 () from /opt/dev/rust2/build/i686-unknown-linux-gnu/test/../stage2/lib/rustc/i686-unknown-linux-gnu/lib/libcore-c3ca5d77d81b46c1-0.6.so
#10 0xf7d3d2ed in str::as_c_str_13479::_52cafc0fb95fe1::_06 () from /opt/dev/rust2/build/i686-unknown-linux-gnu/test/../stage2/lib/rustc/i686-unknown-linux-gnu/lib/libcore-c3ca5d77d81b46c1-0.6.so
#11 0xf7d3dcc4 in os::as_c_charp_13493::_4913e1ce74acafa9::_06 () from /opt/dev/rust2/build/i686-unknown-linux-gnu/test/../stage2/lib/rustc/i686-unknown-linux-gnu/lib/libcore-c3ca5d77d81b46c1-0.6.so
#12 0xf7e04fb8 in __morestack () from /opt/dev/rust2/build/i686-unknown-linux-gnu/test/../stage2/lib/rustc/i686-unknown-linux-gnu/lib/libcore-c3ca5d77d81b46c1-0.6.so
#13 0xf7d80353 in cleanup::debug_mem::_7df31a6dbb47b7c::_06 () from /opt/dev/rust2/build/i686-unknown-linux-gnu/test/../stage2/lib/rustc/i686-unknown-linux-gnu/lib/libcore-c3ca5d77d81b46c1-0.6.so
#14 0xf7d80529 in cleanup::annihilate::_826321676dae553::_06 () from /opt/dev/rust2/build/i686-unknown-linux-gnu/test/../stage2/lib/rustc/i686-unknown-linux-gnu/lib/libcore-c3ca5d77d81b46c1-0.6.so
#15 0xf77aa24f in __morestack () from /opt/dev/rust2/build/i686-unknown-linux-gnu/test/../stage2/lib/rustc/i686-unknown-linux-gnu/lib/librustrt.so
#16 0xf7797cc5 in call_on_rust_stack (fn_ptr=0x8051900 <_ZN7cleanup10annihilate16_826321676dae5533_06E@plt>, args=0x0, this=0xf1609880) at /home/brian/dev/rust2/src/rt/rust_task.h:516
#17 cleanup_task (args=0xf16153b8) at /home/brian/dev/rust2/src/rt/rust_task.cpp:142
#18 0xf77aa24f in __morestack () from /opt/dev/rust2/build/i686-unknown-linux-gnu/test/../stage2/lib/rustc/i686-unknown-linux-gnu/lib/librustrt.so
#19 0xf779895c in call_on_c_stack (fn_ptr=0xf7797b70 <cleanup_task(cleanup_args*)>, args=0xf16153b8, this=0xf1609880) at /home/brian/dev/rust2/src/rt/rust_task.h:478
#20 task_start_wrapper (a=0xf16153f4) at /home/brian/dev/rust2/src/rt/rust_task.cpp:189
#21 0x00000000 in ?? ()

@brson
Copy link
Contributor Author

brson commented Mar 12, 2013

Odd that the backtrace is printing the variable as "ST_DEBUG_MEM" when it is called "RUST_DEBUG_MEM"

@brson
Copy link
Contributor Author

brson commented Mar 12, 2013

Doesn't segfault when RUST_THREADS=1

@bors bors closed this as completed in b53da4b Mar 19, 2013
bors pushed a commit to rust-lang-ci/rust that referenced this issue May 2, 2020
bors added a commit to rust-lang-ci/rust that referenced this issue May 2, 2020
Rollup of 4 pull requests

Successful merges:

 - rust-lang#5326 (rustup rust-lang#69838)
 - rust-lang#5333 (rustup rust-lang#69189)
 - rust-lang#5336 (rustup rust-lang#69920)
 - rust-lang#5341 (Rustup to rust-lang#66131)

Failed merges:

r? @ghost

changelog: none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-runtime Area: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflows I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
Projects
None yet
Development

No branches or pull requests

1 participant