Welcome! Log In Create A New Profile

Advanced

"bus error" on Linux Sparc

All files from this thread

File Name File Size   Posted by Date  
patch.sparc.linux.txt 783 bytes open | download Igor Sysoev 09/29/2009 Read message
patch.sparc.linux1.txt 1.2 KB open | download Igor Sysoev 09/30/2009 Read message
September 08, 2009 10:34AM
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
Subject Author Posted

"bus error" on Linux Sparc

dev-zero September 08, 2009 10:34AM

Re: "bus error" on Linux Sparc

Igor Sysoev September 08, 2009 10:58AM

Re: "bus error" on Linux Sparc

dev-zero September 09, 2009 05:27AM

Re: "bus error" on Linux Sparc

Igor Sysoev September 09, 2009 06:00AM

Re: "bus error" on Linux Sparc

dev-zero September 09, 2009 06:25AM

Re: "bus error" on Linux Sparc

Igor Sysoev September 09, 2009 07:00AM

Re: "bus error" on Linux Sparc

dev-zero September 09, 2009 07:42AM

Re: "bus error" on Linux Sparc

dev-zero September 09, 2009 10:37AM

Re: "bus error" on Linux Sparc

marcusramberg September 26, 2009 08:38PM

Re: "bus error" on Linux Sparc

Igor Sysoev September 29, 2009 04:08AM

Re: "bus error" on Linux Sparc Attachments

Igor Sysoev September 29, 2009 04:16PM

Re: "bus error" on Linux Sparc Attachments

Igor Sysoev September 30, 2009 12:54AM

Re: "bus error" on Linux Sparc

Peter A Leonov September 30, 2009 02:46AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 129
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready