<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hello list<br>
    <br>
    one of our dhcp crashes from time to time. To further trace this
    problem we setup traces to narrow down the cause of the crash.<br>
    As I'm definetly not the pro is reading such traces I attach here
    some of the traces contents. As you can see the dhcp dies because of
    a segmentation fault. The last action the server does is writing to
    our special lease file<br>
    <<<br>
    gettimeofday({1347245590, 894030}, NULL) = 0<br>
    select(22, [4 5 7], [], NULL, {58, 316173}) = 2 (in [5 7], left {57,
    530665})<br>
    gettimeofday({1347245591, 679695}, NULL) = 0<br>
    gettimeofday({1347245591, 679766}, NULL) = 0<br>
    read(5,
    "\0\26>\0\0\10\0\t\17\f[\202\10\0E\0\1P\363\6@\0<\0213r\254\30\0\1\325\304"...,
    1536) = 350<br>
    gettimeofday({1347245591, 679951}, NULL) = 0<br>
    sendto(3, "<190>Sep 10 02:53:11 dhcpd: DHCP"..., 144,
    MSG_NOSIGNAL, NULL, 0) = 144<br>
    gettimeofday({1347245591, 680166}, NULL) = 0<br>
    recvfrom(7,
    "\1\1\6\1\253\315\0\6\0\0\0\0\325\304\250=\0\0\0\0\0\0\0\0\254\30\0\1\0\17\223\0"...,
    1540, 0, {sa_family=AF_INET, sin_port=htons(67),
    sin_addr=inet_addr("172.24.0.1")}, [16]) = 308<br>
    gettimeofday({1347245591, 680317}, NULL) = 0<br>
    select(22, [4 5 7], [], NULL, {57, 529886}) = 2 (in [5 7], left {57,
    495855})<br>
    gettimeofday({1347245591, 714495}, NULL) = 0<br>
    gettimeofday({1347245591, 714553}, NULL) = 0<br>
    read(5,
    "\0\26>\0\0\10\0\t\17\f[\202\10\0E\0\1P\363\7@\0<\0213q\254\30\0\1\325\304"...,
    1536) = 350<br>
    gettimeofday({1347245591, 714877}, NULL) = 0<br>
    sendto(3, "<190>Sep 10 02:53:11 dhcpd: DHCP"..., 78,
    MSG_NOSIGNAL, NULL, 0) = 78<br>
    sendto(4,
    "\10\0\347%\20\332\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 28,
    0, {sa_family=AF_INET, sin_port=htons(0),
    sin_addr=inet_addr("213.196.169.92")}, 16) = 28<br>
    gettimeofday({1347245591, 715185}, NULL) = 0<br>
    gettimeofday({1347245591, 715246}, NULL) = 0<br>
    gettimeofday({1347245591, 715309}, NULL) = 0<br>
    recvfrom(7,
    "\1\1\6\1\253\315\0\2\0\0\0\0\325\304\251\\\0\0\0\0\0\0\0\0\254\30\0\1\0\17\223\0"...,
    1540, 0, {sa_family=AF_INET, sin_port=htons(67),
    sin_addr=inet_addr("172.24.0.1")}, [16]) = 308<br>
    gettimeofday({1347245591, 715457}, NULL) = 0<br>
    select(22, [4 5 7], [], NULL, {0, 999728}) = 1 (in [4], left {0,
    981846})<br>
    gettimeofday({1347245591, 733486}, NULL) = 0<br>
    gettimeofday({1347245591, 733544}, NULL) = 0<br>
    recvfrom(4,
    "E\0\0000\0\0@\0006\1Z\241\325\304\251\\\325\304\225F\0\0\357%\20\332\0\0\0\0\0\0"...,
    1500, 0, {sa_family=AF_INET, sin_port=htons(0),
    sin_addr=inet_addr("213.196.169.92")}, [16]) = 48<br>
    gettimeofday({1347245591, 733701}, NULL) = 0<br>
    sendto(3, "<191>Sep 10 02:53:11 dhcpd: ICMP"..., 77,
    MSG_NOSIGNAL, NULL, 0) = 77<br>
    gettimeofday({1347245591, 733913}, NULL) = 0<br>
    sendto(3, "<187>Sep 10 02:53:11 dhcpd: Aban"..., 85,
    MSG_NOSIGNAL, NULL, 0) = 85<br>
    write(6, "lease 213.196.169.92 {\n  starts "..., 230) = 230<br>
    fsync(6)                                = 0<br>
    gettimeofday({1347245591, 735525}, NULL) = 0<br>
    select(22, [4 5 7], [], NULL, {0, 979660}) = 2 (in [5 7], left {0,
    843117})<br>
    gettimeofday({1347245591, 872221}, NULL) = 0<br>
    gettimeofday({1347245591, 872280}, NULL) = 0<br>
    read(5,
    "\0\26>\0\0\10\0\t\17\f[\202\10\0E\0\1P\363\10@\0<\0213p\254\30\0\1\325\304"...,
    1536) = 350<br>
    gettimeofday({1347245591, 872446}, NULL) = 0<br>
    stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0<br>
    open("/var/log/dhcpd/leaselog", O_RDWR|O_CREAT|O_APPEND, 0666) = 8<br>
    fstat(8, {st_mode=S_IFREG|0644, st_size=2132, ...}) = 0<br>
    mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
    -1, 0) = 0x7f54bc0f5000<br>
    --- SIGSEGV (Segmentation fault) @ 0 (0) ---<br>
    >><br>
    We have those crashes several time during the night and always Seg
    Fault while doing something with the leaselog file. Actually we do
    not know if the problem is really associated with the leaselog file
    but we strongly assume so, because opening the leaselog is always
    one of the last message before the daemon crashes into the ground.<br>
    The "normal" dhcp logs do not show anything suspicious before the
    crash.<br>
    <br>
    Any ideas would be highly appreciated<br>
    Cheers<br>
    <br>
    tobi<br>
    <div class="moz-signature">-- <br>
      <font style="font-size:0.8em;">Freundliche Grüsse<br>
      </font>
      <br>
      <font style="font-size:1.2em;">Datapark AG</font><br>
      <font style="font-size:0.8em;">Tobias Szyndler<br>
        Hubstrasse 101<br>
        CH-9500 Wil SG<br>
        <br>
        Tel. +41 71 560 60 95<br>
        <a href="mailto:szyndler@datapark.ch">szyndler@datapark.ch</a><br>
        <a href="http://www.datapark.ch">www.datapark.ch</a></font></div>
  </body>
</html>