Forum: Cfengine Help
Subject: Re: cf-serverd segfaulting
Author: bbomgardner
Link to topic: https://cfengine.com/forum/read.php?3,17924,18524#msg-18524

Back again with another backtrace.  Mark, I didn't see the exact line you were 
requesting but I printed out ptr for the two lines where it was present:


(gdb) bt
#0  0x000000000043e6e0 in DeleteScope (name=0x4646f5 "match") at scope.c:248
#1  0x0000000000446586 in RegExMatchFullString (rex={rx = 0x7fffec000f60, err = 
0x0, err_offset = 0, failed = 0, regexp = 0x7cc8d0 
"149\\.208\\.(44|45|50)\\.[0-9]*"},
    teststring=0x80a899 "149.208.44.187") at matching.c:683
#2  0x0000000000446bde in FullTextMatch (regexp=0x7cc8d0 
"149\\.208\\.(44|45|50)\\.[0-9]*", teststring=0x80a899 "149.208.44.187") at 
matching.c:56
#3  0x00000000004290ce in IsMatchItemIn (list=, item=0x80a899 "149.208.44.187") 
at item-lib.c:1242
#4  0x0000000000408db7 in AccessControl (oldFilename=, conn=0x80a030, 
encrypt=1, vadmit=0x7cc5d0, vdeny=0x7cc640) at server.c:2089
#5  0x0000000000409eb3 in BusyWithConnection (conn=0x80a030) at server.c:1300
#6  0x000000000040ae80 in HandleConnection (conn=0x80a030) at server.c:914
#7  0x00007ffff79c0070 in start_thread () from /lib64/libpthread.so.0
#8  0x00007ffff620811d in clone () from /lib64/libc.so.6
#9  0x0000000000000000 in ?? ()
(gdb) frame 0
#0  0x000000000043e6e0 in DeleteScope (name=0x4646f5 "match") at scope.c:248
248        prev->next = ptr->next;
(gdb) print ptr
$11 = (struct Scope *) 0x8004d0
(gdb) print *ptr
$12 = {scope = 0x80ea10 "match", hashtable = {0x0 }, next = 0x7ece10}
(gdb) up
#1  0x0000000000446586 in RegExMatchFullString (rex={rx = 0x7fffec000f60, err = 
0x0, err_offset = 0, failed = 0, regexp = 0x7cc8d0 
"149\\.208\\.(44|45|50)\\.[0-9]*"},
    teststring=0x80a899 "149.208.44.187") at matching.c:683
683           DeleteScope("match");
(gdb) up
#2  0x0000000000446bde in FullTextMatch (regexp=0x7cc8d0 
"149\\.208\\.(44|45|50)\\.[0-9]*", teststring=0x80a899 "149.208.44.187") at 
matching.c:56
56      if (RegExMatchFullString(rex,teststring))
(gdb) up
#3  0x00000000004290ce in IsMatchItemIn (list=, item=0x80a899 "149.208.44.187") 
at item-lib.c:1242
1242          if (FullTextMatch(ptr->name,item))
(gdb) print ptr
$13 = (struct Item *) 0x7cc890
(gdb) print *ptr
$14 = {done = 96 '`', name = 0x7cc8d0 "149\\.208\\.(44|45|50)\\.[0-9]*", 
classes = 0x0, counter = 0, time = 0, next = 0x0}
(gdb) up
#4  0x0000000000408db7 in AccessControl (oldFilename=, conn=0x80a030, 
encrypt=1, vadmit=0x7cc5d0, vdeny=0x7cc640) at server.c:2089
2089             if (IsMatchItemIn(ap->accesslist,MapAddress(conn->ipaddr)) || 
IsRegexItemIn(ap->accesslist,conn->hostname))
(gdb) up
#5  0x0000000000409eb3 in BusyWithConnection (conn=0x80a030) at server.c:1300
1300           if (!AccessControl(filename,conn,true,VADMIT,VDENY))
(gdb) up
#6  0x000000000040ae80 in HandleConnection (conn=0x80a030) at server.c:914
914     while (BusyWithConnection(conn))
(gdb) up
#7  0x00007ffff79c0070 in start_thread () from /lib64/libpthread.so.0
(gdb) up
#8  0x00007ffff620811d in clone () from /lib64/libc.so.6
(gdb) up
#9  0x0000000000000000 in ?? ()
(gdb) up
Initial frame selected; you cannot go up.


I have the backtrace full if you would prefer.

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to