squid_session causing segmentation fault
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
squid3 (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
When I'm using squid_session I'm getting a segmentation fault.
I found the problem in 2 different hardwares, both running Ubuntu 10.04.
Info:
1)root@cache-aca:~# lsb_release -rd
Description: Ubuntu 10.04.2 LTS
Release: 10.04
2)root@cache-aca:~# apt-cache policy squid3
squid3:
Installed: 3.0.STABLE19-
Candidate: 3.0.STABLE19-
Version table:
*** 3.0.STABLE19-
500 http://
100 /var/lib/
3.0.STABLE19-1 0
500 http://
root@cache-aca:~# /usr/lib/
TESTING
Segmentation fault
root@cache-aca:~# strace /usr/lib/
mprotect(0x601000, 4096, PROT_READ) = 0
mprotect(
munmap(
set_tid_
set_robust_
futex(0x7fff01f
futex(0x7fff01f
rt_sigaction(
rt_sigaction(
rt_sigprocmask(
getrlimit(
brk(0) = 0x1923000
brk(0x1944000) = 0x1944000
open("/proc/stat", O_RDONLY|O_CLOEXEC) = 3
read(3, "cpu 4720595 226 3674225 1491889"..., 8192) = 834
close(3) = 0
stat("/
open("/
fcntl(3, F_GETFD) = 0
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
read(3, "\0\0\0\
close(3) = 0
open("DB_CONFIG", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/var/tmp", {st_mode=
gettimeofday(
gettimeofday(
open("/proc/stat", O_RDONLY|O_CLOEXEC) = 3
read(3, "cpu 4720596 226 3674225 1491889"..., 8192) = 834
close(3) = 0
mmap(NULL, 204800, PROT_READ|
open("/
fcntl(3, F_GETFD) = 0
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
fstat(3, {st_mode=
pread(3, "\0\0\0\
fstat(0, {st_mode=
mmap(NULL, 4096, PROT_READ|
read(0, Testing
"Testing\n", 1024) = 8
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Segmentation fault
Changed in squid3 (Ubuntu): | |
importance: | Undecided → High |
Changed in squid3 (Ubuntu): | |
status: | New → Confirmed |
/tmp is not a safe place to locate an important application data store. Its recommended to use /var/run/squid or /var/cache/squid instead if you require the data to persist long term. If not omit the -b option entirely and the session helper will use a memory cache.