hi, I&#39;m wring a nginx module which is hooked at NGX_HTTP_ACCESS_PHASE. Segmentation fault happened when calling ngx_log_error(NGX_LOG_ERR, r-&gt;connection-&gt;log, &quot;xxx&quot;)  in my module&#39;s handler(which will handle every request). I found r-&gt;connection-&gt;log = 0x0  when debug with gdb. <div>

<br></div><div>On 64bit centos/ubuntu/macos module works well.  Segmentation fault seem only occurs on 32bit linux(ubuntu).</div><div><br></div><div>When I comment out #include &lt;sys/time.h&gt;, segmentation fault disappeared. Attachment is my module&#39;s skeleton.</div>

<div><br></div><div><br></div><div><br></div><div><br></div><div><br></div>