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?
Cheers,
Tiziano