buserror on osx.4

Franklin Kingma franklin at fourdigits.nl
Mon Dec 18 19:31:43 MSK 2006


On Dec 18, 2006, at 5:29 PM, Igor Sysoev wrote:

> On Mon, 18 Dec 2006, Franklin Kingma wrote:
>
>> (gdb) run -t -c conf/nginx.conf
>> Starting program: /usr/local/nginx/sbin/nginx -t -c conf/nginx.conf
>> Reading symbols for shared libraries . done
>>
>> Program received signal EXC_BAD_ACCESS, Could not access memory.
>> Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
>> 0xffff87c8 in ___memcpy () at /System/Library/Frameworks/  
>> System.framework/PrivateHeaders/ppc/cpu_capabilities.h:189
>> 189     /System/Library/Frameworks/System.framework/ 
>> PrivateHeaders/ ppc/cpu_capabilities.h: No such file or directory.
>>        in /System/Library/Frameworks/System.framework/  
>> PrivateHeaders/ppc/cpu_capabilities.h
>> (gdb) bt
>> #0  0xffff87c8 in ___memcpy () at /System/Library/Frameworks/  
>> System.framework/PrivateHeaders/ppc/cpu_capabilities.h:189
>> #1  0x00003888 in ngx_log_error_core (level=5, log=0x643dc, err=0,  
>> fmt=0x53b9c "%s in %s:%ui") at src/core/ngx_log.c:90
>> #2  0x0000ebd0 in ngx_conf_log_error (level=5, cf=0xbffff798,  
>> err=0, fmt=0xbfffec8c "") at src/core/ngx_conf_file.c:864
>> #3  0x000035b4 in ngx_set_user (cf=0xbffff798, cmd=0x0, conf=0x13)  
>> at src/core/nginx.c:775
>> #4  0x0000e02c in ngx_conf_handler (cf=0xbffff798, last=0) at src/  
>> core/ngx_conf_file.c:337
>> #5  0x0000dcfc in ngx_conf_parse (cf=0xbffff798,  
>> filename=0x2430b4) at src/core/ngx_conf_file.c:190
>> #6  0x0000c77c in ngx_init_cycle (old_cycle=0xbffff848) at src/ 
>> core/ ngx_cycle.c:219
>> #7  0x00002a28 in main (argc=4, argv=0xbffff9fc) at src/core/ 
>> nginx.c:266
>> (gdb)
>
> fr 1
> p errstr
> p &ngx_cached_err_log_time
> p ngx_cached_err_log_time

(gdb) fr 1
#1  0x00003888 in ngx_log_error_core (level=5, log=0x643dc, err=0,  
fmt=0x53b9c "%s in %s:%ui") at src/core/ngx_log.c:90
90          ngx_memcpy(errstr, ngx_cached_err_log_time.data,
(gdb) p errstr

(gdb) p &ngx_cached_err_log_time
$2 = (volatile ngx_str_t *) 0x65c70
(gdb) p ngx_cached_err_log_time
$3 = {
   len = 19,
   data = 0x0
}






More information about the nginx mailing list