libspf2 crash

Ladar Levison <[email protected]> Wed, 07 May 2008 10:44:46 -0500
Newsgroups gmane.mail.spam.spf.devel
Message-ID <[email protected]>
I'm seeing a number of segfaults. I believe the issue is that libreplace is 
calling __dn_skipname with identical pointers, but I can't seem to narrow it 
down. When I pull up a core dump, it looks like:

(gdb) bt
#0  0x00be37a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x00c24815 in raise () from /lib/tls/libc.so.6
#2  0x00c26279 in abort () from /lib/tls/libc.so.6
#3  0x08065610 in segfault_handler (received_signal=11) at common/signals.c:36
#4  <signal handler called>
#5  0x00db2e88 in __ns_name_skip () from /lib/libresolv.so.2
#6  0x00dac2dc in __dn_skipname () from /lib/libresolv.so.2
#7  0x00662205 in __ns_skiprr (ptr=0xa0cdd2 "", eom=0xa0cdd2 "", 
section=ns_s_an, count=10526448) at __ns_initparse.c:84
#8  0x0066237e in __ns_initparse (msg=0xa0a866 "�\f", msglen=9618, 
handle=0xa0a810) at __ns_initparse.c:124
#9  0x0065ba19 in SPF_dns_resolv_lookup (spf_dns_server=0xaba4ae8, 
domain=0xb78f28e0 "yourshirevillage.com", rr_type=ns_t_mx, should_cache=1) at 
spf_dns_resolv.c:188
#10 0x0065adbc in SPF_dns_lookup (spf_dns_server=0xaba4ae8, domain=0xb78f28e0 
"yourshirevillage.com", rr_type=ns_t_mx, should_cache=1) at spf_dns.c:114
#11 0x0065b37c in SPF_dns_cache_lookup (spf_dns_server=0xaba4b10, 
domain=0xb78f28e0 "yourshirevillage.com", rr_type=ns_t_mx, should_cache=1) at 
spf_dns_cache.c:387
#12 0x0065adbc in SPF_dns_lookup (spf_dns_server=0xaba4b10, domain=0xb78f28e0 
"yourshirevillage.com", rr_type=ns_t_mx, should_cache=1) at spf_dns.c:114
#13 0x0065f60f in SPF_record_interpret (spf_record=0xae91c230, 
spf_request=0xae91bab8, spf_response=0xae91b968, depth=0) at spf_interpret.c:778
#14 0x00660fc3 in SPF_request_query_record (spf_request=0xae91bab8, 
spf_response=0xae91b968, spf_record=0xae91c230, err=SPF_E_SUCCESS) at 
spf_request.c:224
#15 0x0066102c in SPF_request_query_mailfrom (spf_request=0xae91bab8, 
spf_responsep=0xa0b24c) at spf_request.c:255
#16 0x0806945c in smtp_check_spf (session=0xa0b320) at smtp/smtp_spf.c:136
#17 0x0805dd2d in smtp_process_rcptto (session=0xa0b320) at 
smtp/smtp_process_connection.c:407
#18 0x0805f375 in smtp_process_connection (session=0xa0b320) at 
smtp/smtp_process_connection.c:1260
#19 0x080651e4 in worker_thread () at common/worker.c:84
#20 0x00ded3cc in start_thread () from /lib/tls/libpthread.so.0
#21 0x00cc61ae in clone () from /lib/tls/libc.so.6