Re: [Valgrind-users] Possible bug in valgrind?

2014-09-10 Thread Tobias Widlund
Thanks for the reply, I did download and build the valgrind version you linked and the illegal instruction error went away, but instead I am getting a segfault on the same place, as seen: tobbe@archosaurus ~/projects/blocks (git)-[master] % valgrind ./bin/blocks ==7731== Memcheck, a memory error

Re: [Valgrind-users] Possible bug in valgrind?

2014-09-10 Thread Mark Wielaard
On Wed, 2014-09-10 at 12:27 +0200, Tobias Widlund wrote: Thanks for the reply, I did download and build the valgrind version you linked and the illegal instruction error went away, but instead I am getting a segfault on the same place, as seen: OK, that is somewhat expected. valgrind

Re: [Valgrind-users] Possible bug in valgrind?

2014-09-10 Thread Tobias Widlund
Thanks for your reply, with the information provided I was able to solve my issue! I inspected my code and as you said, there is a double unlocking of a mutex. For reference for other people who might get this issue, I'll post the problematic code below: std::lock_guardstd::mutex