
9 Nov
2007
9 Nov
'07
9:51 p.m.
Ormond, Randy wrote:
Hello,
I hope someone can point me in a new direction for tracking down a segfault.
Code that has been running fine for months started seg faulting after a directory reorganization.
Valgrind says "Use of uninitialized value of size 4".
A simplified version is below.
void MyClass::
SomeFunc()
{ // 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 }
Infinite Recursion? At least for this sample code? Jeff Flinn