sobota, 7 stycznia 2012

Valgrind - "client switching stacks"

If you ever start to receiving following warning from Valgrind:
Warning: client switching stacks?
Followed by many error messages like "Invalid read/write" containing a note: "Address  is on thread 1's stack" then the cause is very simple. You are just allocating too large variables on stack - in my case I had too large array, as local variable, in one of functions. If you can't or don't want to use heap it is possible to tune valgrind with "--max-stackframe" parameter i.e.
valgrind --max-stackframe=10485760 ./a.out
This will prevent false positive detection  of stack switching up to 10MB.

One additional, much more obvious tip, use "-fno-inline" when building C++ binaries for use with valgrind, otherwise there won't be line numbers in stacktraces for any template functions.

wtorek, 14 czerwca 2011

Subversion not working under Netbeans on fresh linux system

Simple and annoing bug. Solution: 
http://stackoverflow.com/questions/1679099/netbeans-subversion-authentication-failed

poniedziałek, 7 marca 2011

Cytat dnia - 07.03.2011

Linia będzie dwutorowa, co oznacza, że pociągi będą mogły jeździć wahadłowo, bez oczekiwania na wolny tor
Kazimierz Netka, "Echo miasta"

Mam nadzieje, że wpisów w tej kategorii za dużo nie będzie.