Hi, Jason, Looks like the problem is that the function ibis::util::userName is trying to delete a pointer to struct passwd returned by getpwuid. The fix is to comment it out -- on some platforms this will be reported by valgrind as leaking memory, guess it is a small price to pay to get thing running for the moment. Please let us know if there is a better way for finding the user name.
In most cases, the condition compilation statement before that should detect the presence of getpwuid_r, therefore not entering the block of code that falls to getpwuid. Guess the detection rule did not work properly here. If anyone has a better way to do this, please let us know. Thanks. John On 5/18/2010 3:51 PM, Jason Chambers wrote: > Hello all, > > > Having problems getting fastbit to run on FreeBSD. > > Ardea appears to work fine but using ibis to read records results in a > segmentation fault. Looks like the same for tcapi. > > Known issue ? > > > Regards, > > --Jason > > > From "make check"... > > /usr/home/jchambers/Downloads/fastbit-ibis1.1.8/examples/.libs/ardea to > read CSV file test0.csv ... > /usr/home/jchambers/Downloads/fastbit-ibis1.1.8/examples/.libs/ardea > read 100 rows from test0.csv > Did NOT pass check-tcapi case 1 > Segmentation fault (core dumped) > Did NOT pass check-tcapi case 2 > Segmentation fault (core dumped) > Segmentation fault (core dumped) > Did NOT pass check-tcapi case 3 > > gmake[2]: Leaving directory > `/usr/home/jchambers/Downloads/fastbit-ibis1.1.8/tests' > gmake[2]: Entering directory > `/usr/home/jchambers/Downloads/fastbit-ibis1.1.8/tests' > Did NOT pass check-ibis case 1 > Segmentation fault (core dumped) > Did NOT pass check-ibis case 2 > Segmentation fault (core dumped) > Did NOT pass check-ibis case 3 > Segmentation fault (core dumped) > Did NOT pass check-ibis case 4 > Segmentation fault (core dumped) > Did NOT pass check-ibis case 5 > Segmentation fault (core dumped) > Did NOT pass check-ibis case 6 > Segmentation fault (core dumped) > Did NOT pass check-ibis case 7 > Segmentation fault (core dumped) > Segmentation fault (core dumped) > gmake[2]: *** [check-ibis] Error 139 > gmake[2]: Leaving directory > `/usr/home/jchambers/Downloads/fastbit-ibis1.1.8/tests' > gmake[1]: *** [check] Error 2 > gmake[1]: Leaving directory > `/usr/home/jchambers/Downloads/fastbit-ibis1.1.8/tests' > gmake: *** [check-recursive] Error 1 > > > _______________________________________________ > FastBit-users mailing list > [email protected] > https://hpcrdm.lbl.gov/cgi-bin/mailman/listinfo/fastbit-users _______________________________________________ FastBit-users mailing list [email protected] https://hpcrdm.lbl.gov/cgi-bin/mailman/listinfo/fastbit-users
