Debian Bug report logs -
#208437
thttpd: Internal server error trying to fetch a 4.2 GB file
Reported by: "Diego Rodr�guezGonz�lez" <diego@feve.es>
Date: Tue, 2 Sep 2003 21:48:01 UTC
Severity: normal
Tags: lfs, wontfix
Found in version 2.21b-11
Fixed in version 2.25b-11+rm
Done: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, cd@debian.org (Chris G. Davis)
:
Bug#208437
; Package thttpd
.
(full text, mbox, link).
Acknowledgement sent to "Diego Rodr�guez Gonz�lez" <diego@feve.es>
:
New Bug report received and forwarded. Copy sent to cd@debian.org (Chris G. Davis)
.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: thttpd
Version: 2.21b-11
Severity: normal
Hi, I placed a 4.2 GB file (actually a woody dvd iso image) in
/var/www/debian-dvd, and made it world readable. Fetching a file list
from the folder showed every file but the iso image. Trying to fetch the
iso image itself gave error 500: internal server error.
I double-checked file and folder permissions twice :-)
-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux prado 2.4.18-1-686 #3 Sun Aug 10 09:13:53 EST 2003 i686
Locale: LANG=spanish, LC_CTYPE=es_ES
Versions of packages thttpd depends on:
ii debconf 1.0.32 Debian configuration management sy
ii libc6 2.2.5-11.5 GNU C Library: Shared libraries an
ii logrotate 3.5.9-8 Log rotation utility
ii mime-support 3.18-1.3 MIME files 'mime.types' & 'mailcap
Information forwarded to debian-bugs-dist@lists.debian.org, cd@debian.org (Chris G. Davis)
:
Bug#208437
; Package thttpd
.
(full text, mbox, link).
Acknowledgement sent to Santiago Garcia Mantinan <manty@manty.net>
:
Extra info received and forwarded to list. Copy sent to cd@debian.org (Chris G. Davis)
.
(full text, mbox, link).
Message #10 received at 208437@bugs.debian.org (full text, mbox, reply):
When you ask thttpd for the listing of a dir with files over the 2
gigabytes, like this I have on my box:
16 -rw-r--r-- 1 root root 5000000001 Apr 20 15:35 large
4 -rw-r--r-- 1 root root 21 Apr 20 15:46 peticion.txt
4 -rw-r--r-- 1 root root 6 Apr 20 15:31 small
3075004 -rw-r--r-- 1 root root 3145728000 Apr 20 13:39 zeros
thttpd will only show the files under the two gigabytes, in fact, for my
example it showed this:
Index of /
mode links bytes last-changed name
dr-x 2 4096 Apr 20 17:28 ./
dr-x 2 4096 Apr 20 17:28 ../
-r-- 1 21 Apr 20 15:46 peticion.txt
-r-- 1 6 Apr 20 15:31 small
And then if you try to get a file over the two gigabytes, like the zeros
file of my example, this is what happens:
GET /zeros HTTP/1.0
HTTP/1.0 500 Internal Error
Server: thttpd/2.23beta1 26may2002
Content-Type: text/html; charset=iso-8859-1
Date: Tue, 20 Apr 2004 12:55:06 GMT
Last-Modified: Tue, 20 Apr 2004 12:55:06 GMT
Accept-Ranges: bytes
Connection: close
<HTML>
<HEAD><TITLE>500 Internal Error</TITLE></HEAD>
<BODY BGCOLOR="#cc9999" TEXT="#000000" LINK="#2020ff" VLINK="#4040cc">
<H2>500 Internal Error</H2>
There was an unusual problem serving the requested URL '/zeros'.
<HR>
<ADDRESS><A HREF="http://www.acme.com/software/thttpd/">thttpd/2.23beta1
26may2002</A></ADDRESS>
</BODY>
</HTML>
I really like thttpd, it would be great to have this fixed so that it would
be the first http daemon in Debian to be able to serve files over the two
gigas, for what I've seen no http daemon in Debian is able to transfer this
big files.
Regards...
--
Manty/BestiaTester -> http://manty.net
Message sent on
to "Diego Rodr�guezGonz�lez" <diego@feve.es>
:
Bug#208437.
(Sun, 16 Aug 2009 14:45:08 GMT) (full text, mbox, link).
Message #13 received at 208437-submitter@bugs.debian.org (full text, mbox, reply):
Tags: wontfix
Hi Diego,
i'm in the process of taking maintainership of this debian
package... i was able to reproduce your problem on a i386 system:
The stat-call within really_start_request fails because the file
is larger than the size of off_t (in this i386 debian package) - from the
stat(2) manpage:
EOVERFLOW
(stat()) path refers to a file whose size cannot be represented in the type
off_t. This can occur when an application compiled on a 32-bit platform without
-D_FILE_OFFSET_BITS=64 calls stat() on a file whose size exceeds (2<<31)-1 bits.
even compiling with -D_FILE_OFFSET_BITS=64, the download is
interrupted, caused by this line in mmc_map:
size_t size_size = (size_t) m->size; /* loses on files >2GB */
from my point of view this is a design-limitation (reason for wontfix)
that will never be fixed: The server loads all served files via mmap
or real memory into its address space and will never be able to serve
huge files. I'll insert a log for this kind of situation:
if ( ((off_t)size_size) != m->size )
{
syslog( LOG_ERR, "file %s is too large for thttpd on this architecture", filename);
Maybe I'll try to take this upstream... There are some ways around
(mmap only smaller parts, use sendfile (only Linux)).
Cheers
Leif
Added tag(s) wontfix.
Request was from Leif Jakob <debian@jakob.weite-welt.com>
to control@bugs.debian.org
.
(Sun, 16 Aug 2009 14:54:04 GMT) (full text, mbox, link).
Added tag(s) lfs.
Request was from Ricardo Mones <mones@debian.org>
to control@bugs.debian.org
.
(Fri, 28 Aug 2009 21:15:26 GMT) (full text, mbox, link).
Severity set to 'serious' from 'normal'
Request was from Clint Adams <schizo@debian.org>
to control@bugs.debian.org
.
(Tue, 23 Mar 2010 01:06:06 GMT) (full text, mbox, link).
Severity set to 'normal' from 'serious'
Request was from Gerfried Fuchs <rhonda@deb.at>
to control@bugs.debian.org
.
(Tue, 23 Mar 2010 08:42:14 GMT) (full text, mbox, link).
Reply sent
to Debian FTP Masters <ftpmaster@ftp-master.debian.org>
:
You have taken responsibility.
(Sun, 01 Jan 2012 15:45:16 GMT) (full text, mbox, link).
Notification sent
to "Diego Rodr�guezGonz�lez" <diego@feve.es>
:
Bug acknowledged by developer.
(Sun, 01 Jan 2012 15:45:16 GMT) (full text, mbox, link).
Message #26 received at 208437-done@bugs.debian.org (full text, mbox, reply):
Version: 2.25b-11+rm
Dear submitter,
as the package thttpd has just been removed from the Debian archive
unstable we hereby close the associated bug reports. We are sorry
that we couldn't deal with your issue properly.
For details on the removal, please see http://bugs.debian.org/653752
The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.
This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@debian.org.
Debian distribution maintenance software
pp.
Ansgar Burchardt (the ftpmaster behind the curtain)
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org
.
(Mon, 30 Jan 2012 07:35:52 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sat Apr 20 02:10:40 2024;
Machine Name:
bembo
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.