[Aide] Reproducible SIGSEGVs with 0.11 release on OpenBSD 3.9-REL

Axel Rau Axel.Rau at Chaos1.DE
Thu May 11 14:00:52 EEST 2006


Richard,

Am 11.05.2006 um 12:10 schrieb Richard van den Berg:

> Axel Rau wrote:
>> Program received signal SIGSEGV, Segmentation fault.
>> 0x1c00d5c1 in add_file_to_tree (tree=0x87ea3040, file=0x7d328000,  
>> db=4,
>> status=128, attr=31676) at gen_list.c:1121
>> 1121      if((file->attr & DB_CHECKINODE) &&
>> (gdb) bt
>> #0  0x1c00d5c1 in add_file_to_tree (tree=0x87ea3040, file=0x7d328000,
>> db=4, status=128, attr=31676) at gen_list.c:1121
>> #1  0x1c00de43 in populate_tree (tree=0x87ea3040) at gen_list.c:1460
>> #2  0x1c012c0c in main (argc=3, argv=0xcfbf6a40) at aide.c:536
>
> That doesn't look like a logical place for a seg fault, especially  
> since
> file seems to be a valid pointer.
>
> In the current situation, does --init work?
yes.
> If so, try using this new
> database and see if --update will still seg fault when changes are  
> made
> on the system.
yes, it does:
-------------------------------------------------------------
[db:aide-0.11p0/aide-0.11/src] root# ./aide --init

AIDE, version 0.11

### AIDE database at /var/db/aide.db.new initialized.

[db:aide-0.11p0/aide-0.11/src] root# !mv
mv /var/db/aide.db.new /var/db/aide.db
[db:aide-0.11p0/aide-0.11/src] root# touch /usr/local/bin/aide
[db:aide-0.11p0/aide-0.11/src] root# gdb aide
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and  
you are
welcome to change it and/or distribute copies of it under certain  
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for  
details.
This GDB was configured as "i386-unknown-openbsd3.9"...
(gdb) set args --update
(gdb) run
Starting program: /db/obj/ports/aide-0.11p0/aide-0.11/src/aide --update

Program received signal SIGSEGV, Segmentation fault.
0x1c00d5c5 in add_file_to_tree (tree=0x7c54e040, file=0x7f8e2000, db=4,
     status=128, attr=31676) at gen_list.c:1121
1121      if((file->attr & DB_CHECKINODE) &&
(gdb) bt
#0  0x1c00d5c5 in add_file_to_tree (tree=0x7c54e040, file=0x7f8e2000,  
db=4,
     status=128, attr=31676) at gen_list.c:1121
#1  0x1c00de47 in populate_tree (tree=0x7c54e040) at gen_list.c:1460
#2  0x1c012c10 in main (argc=2, argv=0xcfbdbd88) at aide.c:536
(gdb) quit
The program is running.  Exit anyway? (y or n) y
-------------------------------------------------------------
I attach the log from the build (with obsd ports): 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build.log
Type: application/octet-stream
Size: 16585 bytes
Desc: not available
Url : https://mailman.cs.tut.fi/pipermail/aide/attachments/20060511/a1e35a6f/build.obj
-------------- next part --------------

Axel
Axel Rau, ?Frankfurt , Germany                       +49-69-951418-0




More information about the Aide mailing list