Fruneau / pfixtools

The pfixtools project is a collection of postfix-related tools. The pfixtools are written in C.
Other
26 stars 7 forks source link

segfault with libunbound8 version `1.13.1-1` #23

Open rbarrois opened 9 months ago

rbarrois commented 9 months ago

Here is the latest trace; I'm going to investigate, but would appreciate some insights ;)

[debug ] running dns resolution on 29.120.109.91.dul.dnsbl.sorbs.net. (type: 1)
postlicyd: malloc.c:2379: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed.

Program received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50      ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff7b7f537 in __GI_abort () at abort.c:79
#2  0x00007ffff7bde678 in __malloc_assert (assertion=assertion@entry=0x7ffff7cf7988 "(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)", 
    file=file@entry=0x7ffff7cf2f73 "malloc.c", line=line@entry=2379, function=function@entry=0x7ffff7cf8110 <__PRETTY_FUNCTION__.3> "sysmalloc") at malloc.c:298
#3  0x00007ffff7be068a in sysmalloc (nb=nb@entry=304, av=av@entry=0x7ffff7d2bb80 <main_arena>) at malloc.c:2379
#4  0x00007ffff7be1df5 in _int_malloc (av=av@entry=0x7ffff7d2bb80 <main_arena>, bytes=bytes@entry=288) at malloc.c:4141
#5  0x00007ffff7be3b11 in __libc_calloc (n=<optimized out>, elem_size=<optimized out>) at malloc.c:3428
#6  0x00007ffff7dce784 in ?? () from /lib/x86_64-linux-gnu/libunbound.so.8
#7  0x00007ffff7d4acaf in ?? () from /lib/x86_64-linux-gnu/libunbound.so.8
#8  0x00007ffff7d4b151 in ?? () from /lib/x86_64-linux-gnu/libunbound.so.8
#9  0x00007ffff7d476e2 in ub_resolve_async () from /lib/x86_64-linux-gnu/libunbound.so.8
#10 0x0000555555562529 in dns_resolve (hostname=hostname@entry=0x7fffffffdee0 "29.120.109.91.dul.dnsbl.sorbs.net.", type=type@entry=DNS_RRT_A, callback=callback@entry=0x555555562320 <dns_callback>, data=data@entry=0x555555597950) at dns.c:142
#11 0x00005555555626fc in dns_check (hostname=0x7fffffffdee0 "29.120.109.91.dul.dnsbl.sorbs.net.", type=DNS_RRT_A, result=0x555555593aa0, callback=0x555555562a60 <iplist_filter_async>, data=0x5555555e9ec0) at dns.c:153
#12 0x00005555555627dc in dns_rbl_check (rbl=<optimized out>, ip=<optimized out>, result=0x555555593aa0, callback=callback@entry=0x555555562a60 <iplist_filter_async>, data=data@entry=0x5555555e9ec0) at dns.c:177
#13 0x0000555555563151 in iplist_filter (filter=0x555555590f00, query=<optimized out>, context=0x5555555e9ec0) at iplist.c:528
#14 0x000055555555c72f in filter_run (filter=filter@entry=0x555555590f00, query=query@entry=0x5555555e9bc0, context=context@entry=0x5555555e9ec0) at filter.c:319
#15 0x000055555555afab in policy_process (pcy=pcy@entry=0x5555555ea0e0, mconfig=0x7fffffffe0af, mconfig@entry=0x55555558faf0) at main-postlicyd.c:203
#16 0x000055555555b21c in policy_run (pcy=0x5555555ea0e0, vconfig=0x55555558faf0) at main-postlicyd.c:257
#17 0x00005555555799e9 in client_cb (loop=<optimized out>, w=0x5555555ea0e0, events=<optimized out>) at server.c:229
#18 0x00007ffff7ea4633 in ev_invoke_pending () from /lib/x86_64-linux-gnu/libev.so.4
#19 0x00007ffff7ea7e71 in ev_run () from /lib/x86_64-linux-gnu/libev.so.4
#20 0x000055555557a0d0 in ev_loop (flags=0, loop=<optimized out>) at /usr/include/ev.h:841
#21 server_loop (starter=starter@entry=0x55555555a4e0 <query_starter>, deleter=deleter@entry=0x55555555a300 <query_stopper>, runner=runner@entry=0x55555555b070 <policy_run>, refresh=refresh@entry=0x55555555a430 <config_refresh>, config=<optimized out>) at server.c:477
#22 0x0000555555559d19 in main (argc=<optimized out>, argv=0x7fffffffe508) at main-postlicyd.c:429