buserror on osx.4

Franklin Kingma franklin at fourdigits.nl
Tue Dec 19 11:30:52 MSK 2006


On Dec 19, 2006, at 9:17 AM, Igor Sysoev wrote:

> On Mon, 18 Dec 2006, Franklin Kingma wrote:
>
>> On Dec 18, 2006, at 11:48 PM, Igor Sysoev wrote:
>>
>>> On Mon, 18 Dec 2006, Franklin Kingma wrote:
>>> Try attached patch.
>
>> no luck, crashlog and gdb output
>
> Well, could you do following:
>
> nginx -v
>
> then:
>
> gdb nginx
> b ngx_time_update
> run ...
>
> at stop:
>
> bt
>
> then press 'n' until you leave ngx_time_update().
>

Hi Igor, i hope this is enough:

pluks:/usr/local/nginx franklin$ sbin/nginx -v
nginx version: nginx/0.5.4
built by gcc 4.0.1 (Apple Computer, Inc. build 5367)
pluks:/usr/local/nginx franklin$ sudo gdb sbin/nginx
Password:
GNU gdb 6.3.50-20050815 (Apple version gdb-573) (Fri Oct 20 15:54:33  
GMT 2006)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and  
you are
welcome to change it and/or distribute copies of it under certain  
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for  
details.
This GDB was configured as "powerpc-apple-darwin"...Reading symbols  
for shared libraries ... done

(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) 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)






More information about the nginx mailing list