[squid-users] [ext] FATAL: Dying from an exception handling failure; exception: [no active exception]

Ralf Hildebrandt Ralf.Hildebrandt at charite.de
Fri Jul 28 09:13:54 UTC 2023


* Waldemar Brodkorb <wbx at openadk.org>:
> Hi Squid community,
> 
> we recently updated our proxies to 6.1 on Ubuntu 22.04 (x86_64) and
> now seeing sometime following fatal errors in the cache.log:
> 
> FATAL: Dying from an exception handling failure; exception: [no
> active exception]
> 
> What does it mean and how can I further analyze the problem?

In most cases you'll need to run squid from within an debugger.

I use a script for that:
========================

#!/bin/bash
rm /var/run/squid.pid
echo 512 >  /proc/sys/kernel/msgmni
ulimit -n 262144
ulimit -c unlimited
ulimit -v 85000000

backtrace=`mktemp`
outfile=`mktemp`
gdb -q -x /etc/service/squid5/gdbcommands /usr/sbin/squid 2>&1 >$backtrace
cat $backtrace | \
      /usr/bin/mail -s "`hostname`: Squid wurde beendet" Ralf.Hildebrandt at charite.de
rm $backtrace
rm $outfile


The file /etc/service/squid5/gdbcommands contains the commands for the
GDB debugger:

# snip
set args -NsYC
handle SIGPIPE pass nostop noprint
handle SIGTERM pass nostop noprint
handle SIGUSR1 pass nostop noprint
handle SIGHUP  pass nostop noprint
handle SIGSEGV stop
handle SIGABRT stop
run
set print pretty
backtrace full
generate-core-file
quit
# snip

I hope this helps.

-- 
Ralf Hildebrandt
Charité - Universitätsmedizin Berlin
Geschäftsbereich IT | Abteilung Netzwerk

Campus Benjamin Franklin (CBF)
Haus I | 1. OG | Raum 105
Hindenburgdamm 30 | D-12203 Berlin

Tel. +49 30 450 570 155
ralf.hildebrandt at charite.de
https://www.charite.de


More information about the squid-users mailing list