Here is third-party module which probably uses
#11 0x08088c9f in ngx_foo_time_str (r=0x9dcdc28,
time_str=0xbfe18450, t=-4) at
#12 0x08087d1a in ngx_http_foo_record
(r=0x9dcdc28, request_arg=0x9dcddb0) at
#13 0x0808788c in ngx_http_foo_handler
No, ngx_foo_module/* is my module which does't use threads ethier.
Ok, second link suggest that recent glibc uses futex even when
there are no threads in application.
This isn't really relevant though as underlying problem is in
nginx and should be fixed anyway. Only async-signal-safe
functions may be used in signal handlers, anything else leads to
For now - use ngx_time() and don't use timer_resolution unless you
have kqueue or eventport.