segmentation error: wopen
Posted: Thu Jun 25, 2009 9:57 am
wopen in the File class gives a segmentation error with long path names.
Code: Select all
begintemplate Results
public translate
proc translate() { localobj file
file = new File()
file.wopen("/Users/benlhalt/NEURON/debugnet/translated_results/septohippo_lfp_threadsafe_06-29-09_02;30;42/septohippo_lfp_threadsafe_06-29-09_02;30;42_runtime=3.56_nthread=1/raster_for_septohippo_lfp_threadsafe_06-29-09_02;30;42_run_spike_trains_for_septohippo_lfp_threadsafe_06-29-09_02;30;42_runtime=3.56_nthread=1.txt")
print "open = ", file.isopen()
file.printf("hello")
}
endtemplate Results
objref results
results = new Results()
{ results.translate() }
Code: Select all
NEURON -- Release 7.0 (281:80827e3cd201) 80827e3cd201
Duke, Yale, and the BlueBrain Project -- Copyright 1984-2008
See http://www.neuron.yale.edu/credits.html
nrniv(58664) malloc: *** error for object 0x7465f0: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
open = 1
nrniv(58664) malloc: *** error for object 0x7465f0: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug