Hi, running dnsmasq 2.66 we had a config that set pxe-server to a blank
value, and that was causing dnsmasq to segfault every time it recieved
a dhcp request.

I have attached a backtrace (generated when compiled
with gcc 4.8's -fsanitize=address), I manually printed some relevant
variables as well.
#0  __sanitizer::internal_memcpy (dest=0x60460001eb2d, src=0x0, n=1)
    at 
/var/tmp/portage/sys-devel/gcc-4.8.1/work/gcc-4.8.1/libsanitizer/sanitizer_common/sanitizer_libc.cc:41
#1  0x00007ffff4e59ca3 in __interceptor_memcpy (to=0x60460001eb2d, from=0x0, 
    size=1)
    at 
/var/tmp/portage/sys-devel/gcc-4.8.1/work/gcc-4.8.1/libsanitizer/asan/asan_interceptors.cc:292
#2  0x000000000046f083 in do_opt (opt=0x60080000bc90, p=0x60460001eb2d "", 
    context=0x601e0000ef50, null_term=1) at rfc2131.c:1822
#3  0x0000000000473222 in do_options (context=0x601e0000ef50, 
    mess=0x60460001ea00, end=0x60460001eecd "", 
    req_options=0x60240001fbc0 
"\001\002\003\004\005\006\v\f\r\017\020\021\022\026\027\034()*+236:;<BC\200\201\202\203\204\205\206\207\377",
 
    hostname=0x60040000dc50 "konan1", domain=0x60040000df30 "gaikai.int", 
    netid=0x60040000dc30, subnet_addr=..., fqdn_flags=0 '\000', null_term=0, 
    pxe_arch=-1, uuid=0x0, vendor_class_len=32, now=1372300401)
    at rfc2131.c:2357
#4  0x000000000046a27b in dhcp_reply (context=0x601e0000ef50, 
    iface_name=0x7fffffffdc10 "rack", int_index=4, sz=548, now=1372300401, 
    unicast_dest=0, is_inform=0x7fffffffda50, pxe=0, fallback=...)
    at rfc2131.c:1036
#5  0x0000000000455dc6 in dhcp_packet (now=1372300401, pxe_fd=0) at dhcp.c:297
#6  0x000000000044fcc9 in main (argc=1, argv=0x7fffffffe378) at dnsmasq.c:877
$7 = (unsigned char *) 0x60460001eb2d ""
$8 = {opt = 66, len = 0, flags = 4130, u = {encap = 0, wildcard_mask = 0, 
    vendor_class = 0x0}, val = 0x0, netid = 0x60040000dab0, 
  next = 0x60080000bd10}
$9 = 1
_______________________________________________
Dnsmasq-discuss mailing list
[email protected]
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss

Reply via email to