On Sunday 16 September 2007 23:46, Marc Schiffbauer wrote: > * Kern Sibbald schrieb am 16.09.07 um 20:59 Uhr: > > Hello, > > Hi Kern, > > > It appears that it is dying on the posix_fadvise() OS call. The call is > > in <bacula-source>/src/lib/bsock.c at line 492. All the arguments to the > > call are valid, so, it would appear that something in the posix_fadvise() > > call (the OS I think) is broken. > > > > You can test this theory by disabling the posix_fadvise() call by putting > > // at the beginning of the line and rebuilding. > > > > You might also want to disable the posix_advise() calls in > > src/findlib/bfile.c (2 of them) and in src/stored/spool.c (one). > > > > You can disable them all *after* doing a ./configure, by editing > > src/config.h and commenting out the #define HAV_POSIX_FADVISE line. > > > > Actually the crash is happening at the beginning of despooling attribute > > data. > > Bingo!
Great. > > I just commented out the "#define HAV_POSIX_FADVISE" line, recompiled... > No more crashes. > > May this behavior depend on the kernel? The server running bacula is > a debian sarge system, but it is running an older kernel (2.4.20) > than what is in sarge because of a special kernel-module. Hmmm. I *never* expected HAVE_POSIX_FADVISE to be turned on for a 2.4 kernel. > > So my question is: is posix_fadvise() in sarge bad or is it my > combination of sarge supporting it and that kernel 2.4.20 maybe not > supporting it? I would like to understand why it is turned on on your system. Did you start your build with a virgin Bacula source directory? or did you copy it from some previously configured system? I ask, because I am running Bacula version 2.2.1 on Red Hat 7.1, which is using kernel 2.4.0, and the HAVE_POSIX_FADVISE function is automatically turned off. I'm surprised it even built on your system. It sounds like to me that your kernel may have an incorrect or incomplete back port of fadvise. Can you see if you get anything when you do "man posix_fadvise". If you do get something, please send it to me. > > Thanks for helping! Sorry you had so much trouble. Kern > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Bacula-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bacula-devel
