Same problem here, with gentoo, python 2.5.2 and glibc 2.6.1; I use the same function
Code:
print "fetching training and test data"
traindata = libfann.training_data()
if debug: print "debug initialized"
traindata.read_train_from_file(trainfilename)
if debug: print "debug read"
testdata = libfann.training_data()
if debug: print "debug test initialized"
testdata.read_train_from_file(testfilename)
if debug: print "debug test read"
And the result is this error on a login console (real terminal)
Code:
fetching training and test data
debug initialized
FANN Error 11: Unable to allocate memory.
*** glibc detected *** /usr/bin/python: double free or corruption (out): x0805a0d8 ***
And a different error on a non-login console (terminal emulator in X)
Code:
fetching training and test data
debug initialized
FANN Error 11: Unable to allocate memory.
debug read
debug test initialized
FANN Error 11: Unable to allocate memory.
debug test read
I can't understand why the behavior is different between login and non-login console, (in a login one the script hangs up) and most of all I can't understand the reason of such an error