This seg fault happens (reproducible) with an --UPDATE after a config change, which
changed attribute of all database entries:
--------------------------------------------------------
Program received signal SIGSEGV, Segmentation fault.
0x1c00d50b in add_file_to_tree (tree=0x854dc040, file=0x8b93bb80, db=1, status=128,
    attr=31292) at gen_list.c:1095
1095        localignorelist=(node->new_data->attr^node->old_data->attr);
(gdb) p *node
$1 = {sel_rx_lst = 0x0, neg_rx_lst = 0x0, equ_rx_lst = 0x0, childs = 0x0, parent = 0x854dc040, path = 0x879d14a0 "/etc", checked = 133, conf_lineno = -1,
  rx = 0x0, attr = 31292, new_data = 0x0, old_data = 0x8b93bb80}
----------------------------------------------------
The following attached patch is against HEAD but has been tested with 0.11
release only.
Someone with better knowledge of aide's program logic should review, if
        node->checked-=(DB_OLD + DB_NEW);
has possible unwanted side effects.

The SIGSEGV patch, descibed here
        https://mailman.cs.tut.fi/pipermail/aide/2006-May/000530.html
is also included.

Attachment: gen_list.c.patch
Description: Binary data

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

_______________________________________________
Aide mailing list
[email protected]
https://mailman.cs.tut.fi/mailman/listinfo/aide

Reply via email to