[Bug 643518] Re: Bus error

2020-09-23 Thread gstrauss
** Changed in: lighttpd (Ubuntu)
   Status: Triaged => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/643518

Title:
  Bus error

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lighttpd/+bug/643518/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 643518] Re: Bus error

2016-12-24 Thread gstrauss
FYI: fixed in lighttpd 1.4.40, released July 2016.

Latest lighttpd release (at time this is being written) is lighttpd
1.4.44

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/643518

Title:
  Bus error

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lighttpd/+bug/643518/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 643518] Re: Bus error

2010-09-23 Thread Stephan Ferraro
I posted my question in the lighttpd development forum here:
http://redmine.lighttpd.net/boards/3/topics/3623

-- 
Bus error
https://bugs.launchpad.net/bugs/643518
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 643518] Re: Bus error

2010-09-22 Thread Stephan Ferraro
Yes I will ask lighttpd development team if its normal or not.
>From my gut feeling a server software should never crash with Bus error.
What is interessting, I didn't notice to have this problem with OpenSolaris and 
ZFS. Maybe nmap has a different behaviour on Linux than Solaris.

-- 
Bus error
https://bugs.launchpad.net/bugs/643518
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 643518] Re: Bus error

2010-09-21 Thread Daniel Hahler
Thank you for your bug report and investigating the root cause / issue.

I do not really agree that it is not a bug; a web server should not crash in 
this case, but handle it more gracefully.
Therefore I am marking it Triaged for now.

Do you like to report it to the Lighttpd developers upstream?
If they believe it is invalid, I would agree - but they are probably interested 
to know about this.

** Changed in: lighttpd (Ubuntu)
   Importance: Undecided => Low

** Changed in: lighttpd (Ubuntu)
   Status: New => Triaged

-- 
Bus error
https://bugs.launchpad.net/bugs/643518
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 643518] Re: Bus error

2010-09-21 Thread Stephan Ferraro
Since I no more changed the file "stats", lighttpd no more crashes with bus 
error.
So: Do not change files while lighttpd is reading them with nmap under Linux.
Solution: Change document root files only with UNIX "rename" syscall.

This bug will not happen if files will be changed properly.
You can close the bug.

-- 
Bus error
https://bugs.launchpad.net/bugs/643518
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 643518] Re: Bus error

2010-09-21 Thread Stephan Ferraro
locking would probably uses too much resources for a high-speed webserver.
The error comes from my side: I change a file while lighttpd is using it. The 
solution would be to change it atomically without that lighttpd loss its file 
descriptor. I will use "rename" for this.
So if I change the contents of file "stats", I will create "stats.tmp" and then 
rename it to "stats".
I will try this out to see if I will still get a bus error.

-- 
Bus error
https://bugs.launchpad.net/bugs/643518
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 643518] Re: Bus error

2010-09-21 Thread Stephan Ferraro
Its possible that the content of "/var/www/trashmail/htdocs/stats" changed 
between the "mmap" and "write" from outside on the filesystem.
Then the data addresses provided by mmap could be invalid.
Should lighttpd not lock the file after open and before executing mmap?
Then unlock after reading it?

-- 
Bus error
https://bugs.launchpad.net/bugs/643518
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 643518] Re: Bus error

2010-09-21 Thread Stephan Ferraro
lighttpd version:
lighttpd/1.4.26 (ssl)

I could use strace to trace when it bus error occured:
ioctl(14, FIONREAD, [0])= 0
read(14, 0x298dd70, 4159)   = -1 EAGAIN (Resource temporarily 
unavailable)
epoll_ctl(12, EPOLL_CTL_MOD, 14, {EPOLLIN|EPOLLERR|EPOLLHUP, {u32=14, u64=14}}) 
= 0
epoll_ctl(12, EPOLL_CTL_MOD, 14, {EPOLLIN|EPOLLERR|EPOLLHUP, {u32=14, u64=14}}) 
= 0
epoll_wait(12, {{EPOLLIN, {u32=13, u64=13}}}, 10001, 1000) = 1
ioctl(13, FIONREAD, [613])  = 0
read(13, "GET /stats HTTP/1.1\r\nHost: www.t"..., 4159) = 613
setsockopt(13, SOL_TCP, TCP_CORK, [1], 4) = 0
writev(13, [{"HTTP/1.1 200 OK\r\nContent-Type: a"..., 163}], 1) = 163
open("/var/www/trashmail/htdocs/stats", O_RDONLY) = 24
fcntl(24, F_SETFD, FD_CLOEXEC)  = 0
mmap(NULL, 26, PROT_READ, MAP_SHARED, 24, 0) = 0x7ff6a72bc000
write(13, "221744625:0.00:1222:36391\n", 26) = -1 EFAULT (Bad address)
--- SIGBUS (Bus error) @ 0 (0) ---
Process 332 detached

-- 
Bus error
https://bugs.launchpad.net/bugs/643518
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 643518] Re: Bus error

2010-09-20 Thread Stephan Ferraro
Here are my system information:
# cat /etc/issue
Ubuntu 10.04.1 LTS \n \l

# uname -ar
Linux trashmail 2.6.32-23-server #37-Ubuntu SMP Fri Jun 11 09:11:11 UTC 2010 
x86_64 GNU/Linux

-- 
Bus error
https://bugs.launchpad.net/bugs/643518
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs