Kintaro / wtftw

Window Tiling For The Win. A tiling window manager written in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error munmap_chunk(): invalid pointer

askobara opened this issue · comments

Hello!

Wtftw is crashed when I trying to run it. This is error message:

*** Error in `./target/debug/wtftw': munmap_chunk(): invalid pointer: 0x00007f01c2c23020 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x73745)[0x7f01c45b5745]
/lib64/libc.so.6(+0x79086)[0x7f01c45bb086]
/home/axon/.wtftw/target/debug/libconfig.so(+0xc7218)[0x7f01c0c6b218]
/home/axon/.wtftw/target/debug/libconfig.so(+0xc71b0)[0x7f01c0c6b1b0]
/home/axon/.wtftw/target/debug/libconfig.so(+0xc70be)[0x7f01c0c6b0be]
/home/axon/.wtftw/target/debug/libconfig.so(+0xc70a6)[0x7f01c0c6b0a6]
/home/axon/.wtftw/target/debug/libconfig.so(+0xc6cca)[0x7f01c0c6acca]
/home/axon/.wtftw/target/debug/libconfig.so(+0xc7256)[0x7f01c0c6b256]
/home/axon/.wtftw/target/debug/libconfig.so(+0xc726a)[0x7f01c0c6b26a]
/home/axon/.wtftw/target/debug/libconfig.so(+0xc335c)[0x7f01c0c6735c]
/home/axon/.wtftw/target/debug/libconfig.so(configure+0x29)[0x7f01c0c67249]
./target/debug/wtftw(+0xb3854)[0x56064c431854]
./target/debug/wtftw(+0xb0c14)[0x56064c42ec14]
./target/debug/wtftw(+0x1bee6)[0x56064c399ee6]
./target/debug/wtftw(+0x1c0865)[0x56064c53e865]
./target/debug/wtftw(+0x1bbc09)[0x56064c539c09]
./target/debug/wtftw(+0x1c0500)[0x56064c53e500]
./target/debug/wtftw(+0x7ad5a)[0x56064c3f8d5a]
/lib64/libc.so.6(__libc_start_main+0xf0)[0x7f01c4562610]
./target/debug/wtftw(+0x11549)[0x56064c38f549]

Here is valgrind log:

==18213== Process terminating with default action of signal 11 (SIGSEGV)
==18213==  Access not within mapped region at address 0x3F1DD710
==18213==    at 0x2DB932: je_arena_ralloc (in /home/axon/programming/rust/wtftw/target/debug/wtftw)
==18213==    by 0x2D3C01: je_rallocx (in /home/axon/programming/rust/wtftw/target/debug/wtftw)
==18213==    by 0x2AE7D3: raw_vec::_$LT$impl$GT$::double::double::h6736500619879468943 (in /home/axon/programming/rust/wtftw/target/debug/wtftw)
==18213==    by 0x2AE6A5: ffi::c_str::_$LT$impl$GT$::from_vec_unchecked::h26c2fafcdb7e843fPFe (in /home/axon/programming/rust/wtftw/target/debug/wtftw)
==18213==    by 0x2AE664: ffi::c_str::_$LT$impl$GT$::_new::hc4918d76591358a7cFe (in /home/axon/programming/rust/wtftw/target/debug/wtftw)
==18213==    by 0x19139B: ffi::c_str::_$LT$impl$GT$::new::new::h10959190608696075673 (c_str.rs:193)
==18213==    by 0x18F3DF: _$LT$impl$GT$::get_atom::hfe20970adde40024Fia (xlib_window_system.rs:149)
==18213==    by 0x19CD4D: _$LT$impl$GT$::update_server_state::hf029e701b9384857f4a (xlib_window_system.rs:695)
==18213==    by 0x12928B: main::hdd2706bb90e2e9caOaa (wtftw.rs:199)
==18213==    by 0x2C8864: sys_common::unwind::try::try_fn::h13589032032229553762 (in /home/axon/programming/rust/wtftw/target/debug/wtftw)
==18213==    by 0x2C3C08: __rust_try (in /home/axon/programming/rust/wtftw/target/debug/wtftw)
==18213==    by 0x2C84FF: rt::lang_start::haede85518185d553Mzx (in /home/axon/programming/rust/wtftw/target/debug/wtftw)
uname -a
Linux linux-wbnv 4.3.0-1-default #1 SMP PREEMPT Mon Nov 2 15:35:09 UTC 2015 (7b374a4) x86_64 x86_64 x86_64 GNU/Linux

rustc --version
rustc 1.6.0-nightly (1e3e7e73c 2015-11-07)

cargo --version
cargo 0.7.0-nightly (b01770c 2015-11-05)

Yes yes, I fixed it yesterday. Will run one more test and then push it as
soon as I'm back from work ^^

On Wed, Nov 11, 2015, 15:32 Arthur Skobara notifications@github.com wrote:

Hello!

Wtftw is crashed when I trying to run it. This is error message:

*** Error in `./target/debug/wtftw': munmap_chunk(): invalid pointer: 0x00007f01c2c23020 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x73745)[0x7f01c45b5745]
/lib64/libc.so.6(+0x79086)[0x7f01c45bb086]
/home/axon/.wtftw/target/debug/libconfig.so(+0xc7218)[0x7f01c0c6b218]
/home/axon/.wtftw/target/debug/libconfig.so(+0xc71b0)[0x7f01c0c6b1b0]
/home/axon/.wtftw/target/debug/libconfig.so(+0xc70be)[0x7f01c0c6b0be]
/home/axon/.wtftw/target/debug/libconfig.so(+0xc70a6)[0x7f01c0c6b0a6]
/home/axon/.wtftw/target/debug/libconfig.so(+0xc6cca)[0x7f01c0c6acca]
/home/axon/.wtftw/target/debug/libconfig.so(+0xc7256)[0x7f01c0c6b256]
/home/axon/.wtftw/target/debug/libconfig.so(+0xc726a)[0x7f01c0c6b26a]
/home/axon/.wtftw/target/debug/libconfig.so(+0xc335c)[0x7f01c0c6735c]
/home/axon/.wtftw/target/debug/libconfig.so(configure+0x29)[0x7f01c0c67249]
./target/debug/wtftw(+0xb3854)[0x56064c431854]
./target/debug/wtftw(+0xb0c14)[0x56064c42ec14]
./target/debug/wtftw(+0x1bee6)[0x56064c399ee6]
./target/debug/wtftw(+0x1c0865)[0x56064c53e865]
./target/debug/wtftw(+0x1bbc09)[0x56064c539c09]
./target/debug/wtftw(+0x1c0500)[0x56064c53e500]
./target/debug/wtftw(+0x7ad5a)[0x56064c3f8d5a]
/lib64/libc.so.6(__libc_start_main+0xf0)[0x7f01c4562610]
./target/debug/wtftw(+0x11549)[0x56064c38f549]

Here is valgrind log:

==18213== Process terminating with default action of signal 11 (SIGSEGV)
==18213== Access not within mapped region at address 0x3F1DD710
==18213== at 0x2DB932: je_arena_ralloc (in /home/axon/programming/rust/wtftw/target/debug/wtftw)
==18213== by 0x2D3C01: je_rallocx (in /home/axon/programming/rust/wtftw/target/debug/wtftw)
==18213== by 0x2AE7D3: raw_vec::$LT$impl$GT$::double::double::h6736500619879468943 (in /home/axon/programming/rust/wtftw/target/debug/wtftw)
==18213== by 0x2AE6A5: ffi::c_str::
$LT$impl$GT$::from_vec_unchecked::h26c2fafcdb7e843fPFe (in /home/axon/programming/rust/wtftw/target/debug/wtftw)
==18213== by 0x2AE664: ffi::c_str::_$LT$impl$GT$::new::hc4918d76591358a7cFe (in /home/axon/programming/rust/wtftw/target/debug/wtftw)
==18213== by 0x19139B: ffi::c_str::
$LT$impl$GT$::new::new::h10959190608696075673 (c_str.rs:193)
==18213== by 0x18F3DF: _$LT$impl$GT$::get_atom::hfe20970adde40024Fia (xlib_window_system.rs:149)
==18213== by 0x19CD4D: _$LT$impl$GT$::update_server_state::hf029e701b9384857f4a (xlib_window_system.rs:695)
==18213== by 0x12928B: main::hdd2706bb90e2e9caOaa (wtftw.rs:199)
==18213== by 0x2C8864: sys_common::unwind::try::try_fn::h13589032032229553762 (in /home/axon/programming/rust/wtftw/target/debug/wtftw)
==18213== by 0x2C3C08: __rust_try (in /home/axon/programming/rust/wtftw/target/debug/wtftw)
==18213== by 0x2C84FF: rt::lang_start::haede85518185d553Mzx (in /home/axon/programming/rust/wtftw/target/debug/wtftw)

uname -a
Linux linux-wbnv 4.3.0-1-default #1 SMP PREEMPT Mon Nov 2 15:35:09 UTC 2015 (7b374a4) x86_64 x86_64 x86_64 GNU/Linux

rustc --version
rustc 1.6.0-nightly (1e3e7e73c 2015-11-07)

cargo --version
cargo 0.7.0-nightly (b01770c 2015-11-05)


Reply to this email directly or view it on GitHub
#88.

Sorry it took so long. In your config, add this:

#![feature(alloc_jemalloc)]
extern crate alloc_jemalloc;

No problem!
Error is fixed, thanks