[Aide] aide problems under HP-UX 10.20
Richard van den Berg
richard at vdberg.org
Tue Oct 26 17:27:05 EEST 2004
Fisher, Charles J. wrote:
> Program received signal SIGSEGV, Segmentation fault.
> 0x5b674 in cl_57_3a83_tree_delete ()
> (gdb) bt
> #0 0x5b674 in cl_57_3a83_tree_delete ()
> #1 0x59b28 in free ()
> #2 0x26ed0 in dofprintf (s=0x16184 "@@begin_db\n") at db_file.c:146
> #3 0x2856c in db_writespec_file (conf=0x4002cec0) at db_file.c:710
> #4 0x23bbc in db_writespec (conf=0x4002cec0) at db.c:487
> #5 0x34e44 in main (argc=2, argv=0x7b03a738) at aide.c:513
> (gdb)
Thanks, now we are getting somewhere. The call in db_file.c at line 146
is free(temp). temp is allocated this way:
va_start(ap,s);
retval=vsnprintf(buf,3,s,ap);
va_end(ap);
temp=(char*)malloc(retval+2);
if(temp==NULL){
Since temp is not NULL it probably gets overwritten somewhere. From the
HP site I gather that vsnprintf was added in HP-UX 10.30. Can you
confirm that you have indeed a working vsnprintf() on your system?
(Check the aide config.log file.)
Sincerely,
Richard van den Berg
More information about the Aide
mailing list