Ambrose Li | 31 Jul 17:54
Favicon

Bug#380652: squid fails to start because of "Function not implemented" error

Package: squid
Version: 2.6.1-3
Severity: grave
Justification: renders package unusable

On my kernel (2.4.28), starting the updated squid results in a crash
with the following logged in the syslog:

Jul 31 11:30:58 tea (squid): comm_select_init: epoll_create(): (38) Function not implemented

Running squid directly shows the following:

# su proxy -c '/usr/sbin/squid -N'
FATAL: comm_select_init: epoll_create(): (38) Function not implemented

Squid Cache (Version 2.6.STABLE1): Terminated abnormally.
CPU Usage: 0.130 seconds = 0.110 user + 0.020 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 578

Running it directly and under strace shows the following:

# su proxy -c 'strace /usr/sbin/squid -N'
[stuff deleted]
open("/var/run/squid.pid", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
getrlimit(RLIMIT_CORE, {rlim_cur=0, rlim_max=RLIM_INFINITY}) = 0
setrlimit(RLIMIT_CORE, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0
getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0
setrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0
getrlimit(RLIMIT_DATA, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0
mmap2(NULL, 217088, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x32f000
epoll_create(1024)                      = -1 ENOSYS (Function not implemented)
time([1154361075])                      = 1154361075
open("/etc/localtime", O_RDONLY)        = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1252, ...}) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=1252, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x128000
read(3, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\0\0\0\4\0"..., 4096) = 1252
close(3)                                = 0
munmap(0x128000, 4096)                  = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1252, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1252, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1252, ...}) = 0
socket(PF_FILE, SOCK_DGRAM, 0)          = 3
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
connect(3, {sa_family=AF_FILE, path="/dev/log"}, 16) = 0
send(3, "<9>Jul 31 11:51:15 squid: comm_s"..., 90, MSG_NOSIGNAL) = 90
write(2, "FATAL: comm_select_init: epoll_c"..., 72FATAL: comm_select_init: epoll_create(): (38)
Function not implemented

) = 72
write(2, "Squid Cache (Version 2.6.STABLE1"..., 58Squid Cache (Version 2.6.STABLE1): Terminated abnormally.
) = 58
getrusage(RUSAGE_SELF, {ru_utime={0, 110000}, ru_stime={0, 20000}, ...}) = 0
write(2, "CPU Usage: 0.130 seconds = 0.110"..., 50CPU Usage: 0.130 seconds = 0.110 user + 0.020 sys
) = 50
write(2, "Maximum Resident Size: 0 KB\n", 28Maximum Resident Size: 0 KB
) = 28
write(2, "Page faults with physical i/o: 3"..., 35Page faults with physical i/o: 306
) = 35
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
kill(9438, SIGABRT)                     = 0
--- SIGABRT (Aborted) @ 0 (0) ---
+++ killed by SIGABRT +++
Process 9438 detached
#

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.4.28-ow1
Locale: LANG=zh_TW.Big5, LC_CTYPE=zh_TW.Big5 (charmap=BIG5)

Versions of packages squid depends on:
ii  adduser                       3.95       Add and remove users and groups
ii  coreutils                     5.97-1     The GNU core utilities
ii  debconf [debconf-2.0]         1.5.2      Debian configuration management sy
ii  libc6                         2.3.6-16   GNU C Library: Shared libraries
ii  libdb4.3                      4.3.29-6   Berkeley v4.3 Database Libraries [
ii  libldap2                      2.1.30-13  OpenLDAP libraries
ii  libpam0g                      0.79-3.1   Pluggable Authentication Modules l
ii  logrotate                     3.7.1-3    Log rotation utility
ii  lsb-base                      3.1-10     Linux Standard Base 3.1 init scrip
ii  netbase                       4.25       Basic TCP/IP networking system
ii  squid-common                  2.6.1-3    Internet Object Cache (WWW proxy c

squid recommends no packages.

-- debconf information:
  squid/fix_cachedir_perms: false
* squid/largefiles_warning:
  squid/anonymize_headers:
* squid-cgi/cachemgr:
  squid/old_version: false
  squid/http_anonymizer:
  squid/authenticate_program:
  squid/fix_lines: true

Luigi Gangitano | 1 Aug 01:37
Picon
Favicon

Bug#380652: squid fails to start because of "Function not implemented" error

severity 380652 important
retitle 380652 squid 2.6 needs epoll() support which is not in kernel  
2.4.x
retitle 377697 squid 2.6 compiled with epoll() support does not start  
with kernel <= 2.6.x
merge 380652 377697
thanks

Hi Ambrose,
squid 2.6.STABLE is compiled with epoll() support turned on by  
default. The epoll() functions are supported only in kernels 2.6.x.

Since etch will ship with 2.6 as default and 2.4 will not be  
supported anymore, squid will carry a notice in README.Debian stating  
that kernels previous than 2.6.x are not supported anymore.

This bug was also already opened as 377697. I'm merging your reported  
with the previous one. Please check the bug reports before opening a  
new bug, next time.

Regards,

--
Luigi Gangitano -- <luigi <at> debian.org> -- <gangitano <at> lugroma3.org>
GPG: 1024D/924C0C26: 12F8 9C03 89D3 DB4A 9972  C24A F19B A618 924C 0C26

Ambrose Li | 1 Aug 17:19
Favicon

Bug#380652: squid fails to start because of "Function not implemented" error

Hi,

On Tue, Aug 01, 2006 at 01:37:57AM +0200, Luigi Gangitano wrote:

> > This bug was also already opened as 377697. I'm merging your reported > with the previous one. Please check the bug reports before opening a > new bug, next time.
I did check but did not notice this other bug. Perhaps it was Monday or maybe I just didn't spend enough time to check. Regards, -- -- Ambrose Li <ambrose.li <at> cccgt.org> Chinese Cultural Centre of Greater Toronto +1 416 292 9293 http://www.cccgt.org/
Picon

Processed: Re: Bug#380652: squid fails to start because of "Function not implemented" error

Processing commands for control <at> bugs.debian.org:

> severity 380652 important
Bug#380652: squid fails to start because of "Function not implemented" error
Severity set to `important' from `grave'

> retitle 380652 squid 2.6 needs epoll() support which is not in kernel
Bug#380652: squid fails to start because of "Function not implemented" error
Changed Bug title.

> 2.4.x
Unknown command or malformed arguments to command.

> retitle 377697 squid 2.6 compiled with epoll() support does not start
Bug#377697: New version of squid hangs at startup
Changed Bug title.

> with kernel <= 2.6.x
Unknown command or malformed arguments to command.

> merge 380652 377697
Bug#377697: squid 2.6 compiled with epoll() support does not start
Bug#380652: squid 2.6 needs epoll() support which is not in kernel
Merged 377697 380652.

> thanks
Stopping processing here.

Please contact me if you need assistance.

Debian bug tracking system administrator
(administrator, Debian Bugs database)

Luigi Gangitano | 1 Aug 01:37
Picon
Favicon

Bug#380652: squid fails to start because of "Function not implemented" error

severity 380652 important
retitle 380652 squid 2.6 needs epoll() support which is not in kernel  
2.4.x
retitle 377697 squid 2.6 compiled with epoll() support does not start  
with kernel <= 2.6.x
merge 380652 377697
thanks

Hi Ambrose,
squid 2.6.STABLE is compiled with epoll() support turned on by  
default. The epoll() functions are supported only in kernels 2.6.x.

Since etch will ship with 2.6 as default and 2.4 will not be  
supported anymore, squid will carry a notice in README.Debian stating  
that kernels previous than 2.6.x are not supported anymore.

This bug was also already opened as 377697. I'm merging your reported  
with the previous one. Please check the bug reports before opening a  
new bug, next time.

Regards,

--
Luigi Gangitano -- <luigi <at> debian.org> -- <gangitano <at> lugroma3.org>
GPG: 1024D/924C0C26: 12F8 9C03 89D3 DB4A 9972  C24A F19B A618 924C 0C26


Gmane