buserror on osx.4

Franklin Kingma franklin at fourdigits.nl
Tue Dec 19 12:04:28 MSK 2006


On Dec 19, 2006, at 10:01 AM, Igor Sysoev wrote:

> On Tue, 19 Dec 2006, Franklin Kingma wrote:
>
>> Breakpoint 1, ngx_time_update (sec=0, msec=0) at src/core/ 
>> ngx_times.c:69
>> 69          if (!ngx_trylock(&ngx_time_lock)) {
>> (gdb) bt
>> #0  ngx_time_update (sec=0, msec=0) at src/core/ngx_times.c:69
>> #1  0x0000a698 in ngx_time_init () at src/core/ngx_times.c:57
>> #2  0x00002130 in main (argc=1, argv=0xbffff990) at src/core/ 
>> nginx.c:197
>> (gdb) n
>> 26          __asm__ volatile (
>> (gdb) n
>> 69          if (!ngx_trylock(&ngx_time_lock)) {
>> (gdb) n
>> 155     }
>> (gdb) n
>> ngx_time_init () at src/core/ngx_times.c:58
>> 58      }
>> (gdb) n
>> main (argc=1, argv=0xbffff990) at src/core/nginx.c:200
>> 200         ngx_regex_init();
>> (gdb)
>
> gdb nginx
> b ngx_time_update
> run ...
> at stop
> p ngx_time_lock
> p &ngx_time_lock
>

(gdb) b ngx_time_update
Breakpoint 1 at 0xa6c8: file src/core/ngx_times.c, line 69.
(gdb) run
Starting program: /usr/local/nginx/sbin/nginx
Reading symbols for shared libraries . done

Breakpoint 1, ngx_time_update (sec=0, msec=0) at src/core/ngx_times.c:69
69          if (!ngx_trylock(&ngx_time_lock)) {
(gdb) p ngx_time_lock
$1 = 0
(gdb) p &ngx_time_lock
$2 = (volatile unsigned int *) 0x5b340






More information about the nginx mailing list