"bus error" on Linux Sparc

dev-zero nginx-forum at nginx.us
Tue Sep 8 18:34:58 MSD 2009

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?


Posted at Nginx Forum: http://forum.nginx.org/read.php?2,5969,5969#msg-5969

More information about the nginx mailing list