From: Ormond, Randy (Randy.Ormond_at_[hidden])
Date: 2007-11-09 14:57:37
I hope someone can point me in a new direction for tracking down a
Code that has been running fine for months started seg faulting after a
Valgrind says "Use of uninitialized value of size 4".
A simplified version is below.
// void f() is a member function of MyClass
typedef boost::function<void ()> VoidFunc;
VoidFunc vf = boost::bind(&MyClass::f, this);
f(); // fine
this->f(); // fine;
vf(); // segfaults
gcc 3.4.5 on RedHat, boost 1.34
Any suggestions would be greatly appreciated.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk