OpenCSW Bug Tracker


Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0005270 [squid] regular use major always 2016-03-04 14:16 2016-10-14 09:47
Reporter cgrzemba View Status public  
Assigned To dam
Priority normal Resolution fixed  
Status resolved  
Summary 0005270: squid 3.5.15 crash on start
Description dumps core on startup

root@intra:/var/log/squid# pstack core
core 'core' of 5278: /opt/csw/sbin/squid -v
 fe436597 t_splay (8851580) + 30
 fe436464 t_delete (8851580) + 2a
 fe43619e realfree (884d578) + 58
 fe43673b _free_unlocked (8807620, 87c2bec, 85d1678, feffe9ac, 855254d, 8807620) + 69
 fe4366c1 free (8807620, 0, 40d00100, 87c2bd8, 87c2bec) + 28
 0855254d free_const (8807620, 8807620, 0, 85d1678, 8729220, 87b3bf0) + 1d
 082ad87f _ZN7MemBlobD1Ev (87c2bd8, 0, 0, 843eab1, 0, 87c2bd8) + 2f
 082adb32 _ZN7MemBlobD0Ev (87c2bd8, 866cad4, fe510680, 85d1678, 87aec80, 87aec64) + 12
 082af5e7 _ZN4SBufD1Ev (87b3bf0, 1c0, feffea9c, 8568e90, 87b3acc, 0) + 67
 08568edb ???????? (feffeac0, fe48816b, 813939b, 85d1678, fe514f18, fe580200)
 081393dc ???????? (fe50f000, feffeae0, fe4230bd, 0, 857ff16, fe50f000)
 08552965 _fini (0, 857ff16, fe50f000, fe514f00, feffeba8, fe415662) + 15
 fe4230bd _exithandle (2, 826abc4, 0, 85ac010, 8845558, 1c) + 4e
 fe415662 exit (2, feffec14, 866ffa8, 866e120, 859334f, 1) + 12
 0855e27e main (2, feffec14, feffec20) + 1e
 08139260 _start (2, feffed14, feffed28, 0, feffed2b, feffed5f) + 80
Additional Information Solaris 10 i386
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0011099)
cgrzemba (developer)
2016-03-04 14:29

other SMF problems because PID file path is wrong:
--- /tmp/svc-cswsquid Fr Mrz 4 14:24:27 2016
+++ /var/opt/csw/svc/method/svc-cswsquid Fr Mrz 4 14:26:18 2016
@@ -7,7 +7,7 @@
 CSWSBIN=${CSWPREFIX}/sbin
 SQUID_DAEMON=${CSWSBIN}/squid
 SQUID_CONF=${CSWETC}/squid/squid.conf
-SQUID_PIDFILE=/var${CSWPREFIX}/squid/logs/squid.pid
+SQUID_PIDFILE=/var${CSWPREFIX}/squid/run/squid.pid
 
 if [ -f /lib/svc/share/smf_include.sh ]; then
     . /lib/svc/share/smf_include.sh
@@ -38,12 +38,12 @@
                 ## stop gracefully
                     echo 'stopping squid server... please wait for cleanup...'
                 ${SQUID_DAEMON} -k shutdown
- rm -f /var/opt/csw/squid/logs/squid.pid
+ rm -f ${SQUID_PIDFILE}
                 exit 0
             else
                 ## Not running
                 echo 'squid server is already down'
- rm -f /var/opt/csw/squid/logs/squid.pid
+ rm -f ${SQUID_PIDFILE}
                 exit 0
             fi
         else
@@ -51,7 +51,7 @@
             echo 'Squid server not properly installed'
             echo 'Forcing Down!'
             pkill -9 squid
- rm -f /var/opt/csw/squid/logs/squid.pid
+ rm -f ${SQUID_PIDFILE}
             exit 1
             fi
         ;;
(0011100)
cgrzemba (developer)
2016-03-04 14:30

squid cores on exit so SMF complains on service disable
(0011127)
dam (administrator)
2016-04-04 11:49

Sorry for the delay, I am just building 3.5.16 and see if that helps.
This will also include your patch.
(0011128)
dam (administrator)
2016-04-04 15:08

http://buildfarm.opencsw.org/experimental.html#squid [^]
(0011133)
cgrzemba (developer)
2016-04-06 09:28

Still the same:

root@intra:/var/log/squid# mdb /opt/csw/sbin/squid /var/core/core.squid.26147
mdb: failed to initialize //lib/libc_db.so.1: libthread_db call failed unexpectedly
mdb: warning: debugger will only be able to examine raw LWPs
Loading modules: [ libc.so.1 ld.so.1 ]
> ::status
debugging core file of squid (32-bit) from intra
file: /opt/csw/sbin/squid
initial argv: /opt/csw/sbin/squid
threading model: raw lwps
status: process terminated by SIGSEGV (Segmentation Fault), addr=3f080018
> ::walk thread | ::findstack
stack pointer for thread 1: feffe988
[ feffe988 libc.so.1`t_splay+0x30() ]
  feffe99c libc.so.1`t_delete+0x2a()
  feffe9b8 libc.so.1`realfree+0x58()
  feffe9c8 libc.so.1`_free_unlocked+0x69()
  feffe9dc libc.so.1`free+0x28()
  feffe9fc squid`free_const+0x1d()
  feffea4c squid`_ZN7MemBlobD1Ev+0x2f()
  feffea6c squid`_ZN7MemBlobD0Ev+0x12()
  feffeabc squid`_ZN4SBufD1Ev+0x67()
  feffeaec 0x856ac4b()
  feffeb0c 0x8139a5c()
  feffeb18 squid`_fini+0x15()
  feffeb30 libc.so.1`_exithandle+0x4e()
  feffebf8 libc.so.1`exit+0x12()
  feffec3c squid`main+0x1e()
  feffec50 _start+0x80()
>


Unfortunatly cores go away if compiled with
--disable-optimizations --disable-inline
(0011134)
cgrzemba (developer)
2016-04-07 16:50

It seems that the only working optimizing option is -Og, with all other squid core dumps.

It is a compiler error?
(0011136)
cgrzemba (developer)
2016-04-08 08:16

It seems this bug is fixed in squid-4 only. Bug 4438 (4405,4415,4435)
Do we bury squid 3.5?
(0011137)
dam (administrator)
2016-04-08 09:12

That would be fine with me. There is already a squid-4.x branch which I prepared.
(0011207)
dam (administrator)
2016-10-14 09:47

This seems to be fixed in 3.5.19,REV=2016.05.10 which I have rolled out and no problems any more.


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker