"bus error" on Linux Sparc

Igor Sysoev is at rambler-co.ru
Tue Sep 8 18:52:47 MSD 2009


On Tue, Sep 08, 2009 at 10:34:58AM -0400, dev-zero wrote:

> Hi everyone
> 
> When I try to start nginx-0.8.14 on a Sparc-Linux I get a "Bus Error":
> # nginx -c /etc/nginx/nginx.conf 
> Bus error
> 
> With 'strace' I was able to track it down a little:
> [...]
> open("/etc/nginx/nginx.conf", O_RDONLY|O_LARGEFILE) = 4
> fstat64(4, {st_mode=S_IFREG|0644, st_size=1610, ...}) = 0
> pread(4, Bus error
> 
> Now, according to that I think the error might be in ngx_read_file where a u_char* is passed as a void* as second argument for pread, which in turn is probably a long and should therefore be aligned on sparc.
> Even if that is the actual problem I have no idea how to fix it. Any ideas?

Could you create coredump and run 

gdb /path/to/nginx /path/to/core
bt

?


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list