squid SIGABRT on bad url_rewriter

Bug #695718 reported by crypt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Squid
Fix Released
Medium
squid (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: squid

While tried to implement videocache (http://cachevideos.com) I faced a following bug. If /etc/squid/squid.conf includes following line:

url_rewrite_program /usr/bin/python /my_path_to/videocache/videocache.py

squid failed to start:

sympho build # squid -DN
Aborted (core dumped)

I rebuilded package without striping and got following backtrace:

(gdb) run -DN
Starting program: /usr/sbin/squid -DN
[Thread debugging using libthread_db enabled]

Program received signal SIGABRT, Aborted.
0x00007ffff6e85a75 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
 in ../nptl/sysdeps/unix/sysv/linux/raise.c
(gdb) bt
#0 0x00007ffff6e85a75 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1 0x00007ffff6e895c0 in *__GI_abort () at abort.c:92
#2 0x00007ffff7f89205 in fatal (message=0x7ffff82da9e0 "The url_rewriter helpers are crashing too rapidly, need help!\n") at tools.c:405
#3 0x00007ffff7f89312 in fatalvf (fmt=<value optimized out>) at tools.c:436
#4 fatalf (fmt=<value optimized out>) at tools.c:425
#5 0x00007ffff7f45141 in helperServerFree (fd=14, data=<value optimized out>) at helper.c:655
#6 0x00007ffff7f26e4a in commCallCloseHandlers (fd=14) at comm.c:636
#7 0x00007ffff7f27b83 in comm_close (fd=14) at comm.c:788
#8 0x00007ffff7f44e38 in helperHandleRead (fd=14, data=0x7ffff83eaba8) at helper.c:731
#9 0x00007ffff7f2a9fb in comm_call_handlers (msec=<value optimized out>) at comm_generic.c:264
#10 do_comm_select (msec=<value optimized out>) at comm_epoll.c:195
#11 comm_select (msec=<value optimized out>) at comm_generic.c:390
#12 0x00007ffff7f5c6fc in main (argc=<value optimized out>, argv=<value optimized out>) at main.c:883
(gdb) s r
No symbol "r" in current context.
(gdb) i r
rax 0x0 0
rbx 0x7ffff82da9e0 140737357130208
rcx 0xffffffffffffffff -1
rdx 0x6 6
rsi 0x772c 30508
rdi 0x772c 30508
rbp 0x7ffff83e1bc8 0x7ffff83e1bc8
rsp 0x7fffffffde28 0x7fffffffde28
r8 0x1 1
r9 0x0 0
r10 0x8 8
r11 0x202 514
r12 0x7ffff83a30a0 140737357951136
r13 0x7ffff83a3080 140737357951104
r14 0xe 14
r15 0x8 8
rip 0x7ffff6e85a75 0x7ffff6e85a75 <*__GI_raise+53>
eflags 0x202 [ IF ]
cs 0x33 51
ss 0x2b 43
ds 0x0 0
es 0x0 0
fs 0x0 0
gs 0x0 0
(gdb) quit
A debugging session is active.

 Inferior 1 [process 30508] will be killed.

Quit anyway? (y or n) y

I believe that videocache helper is misconfigured but squid must handle this situation correctly.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: squid 2.7.STABLE7-1ubuntu12
ProcVersionSignature: Ubuntu 2.6.32-27.49-generic 2.6.32.26+drm33.12
Uname: Linux 2.6.32-27-generic x86_64
Architecture: amd64
Date: Thu Dec 30 21:28:31 2010
EcryptfsInUse: Yes
ProcEnviron:
 LC_TIME=C
 PATH=(custom, user)
 LANG=en_US.UTF-8
 LC_MESSAGES=C
 SHELL=/bin/bash
SourcePackage: squid

Revision history for this message
crypt (cryptogranny1) wrote :
description: updated
Revision history for this message
Chuck Short (zulcss) wrote :

Thanks for the traceback this has been reported upstream.

Changed in squid (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Changed in squid:
importance: Unknown → Medium
status: Unknown → Fix Released
Revision history for this message
Amos Jeffries (yadi) wrote :

This was fixed by the "squid" binary package built from squid3 sources in Ubuntu Xenial and later.

Changed in squid (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.