Thanks for the prompt response. Actually I am newbie to debugging I have never used any debugging tool before so no idea of the error I am getting any how I have googled for the last error and be able to install the glibc debuginfo packages but now the error is changed which is like below. So far I am not been able to run gdb as my Program exited with code 01. Please check below:
################# [root@hostal-squid cache]# gdb /usr/local/squid/sbin/squid GNU gdb (GDB) Red Hat Enterprise Linux (7.2-56.el6) Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /usr/local/squid/sbin/squid...done. (gdb) run -D Starting program: /usr/local/squid/sbin/squid -D [Thread debugging using libthread_db enabled] warning: the debug information found in "/usr/lib/debug//lib64/libfreebl3.so.debug" does not match "/lib64/libfreebl3.so" (CRC mismatch). warning: the debug information found in "/usr/lib/debug/lib64/libfreebl3.so.debug" does not match "/lib64/libfreebl3.so" (CRC mismatch). Missing separate debuginfo for /lib64/libfreebl3.so Try: yum --disablerepo='*' --enablerepo='*-debug*' install /usr/lib/debug/.build-id/68/195872ecfb188389d29aaf01031a976fd18168.debug Program exited with code 01. (gdb) bt full No stack. (gdb) quit ################## Now by googling I am not getting any clue of it. Would you please help me in this regards. Regards, Muhammad Farooq ________________________________________________________________________ Save the environment. Please don't print this email unless you really need to. -----Original Message----- From: Loïc Blot [mailto:loic.b...@unix-experience.fr] Sent: Monday, January 21, 2013 6:41 PM To: squid-users@squid-cache.org Subject: Re: [squid-users] Squid is crashing Look at /var/log/squid/cache.log or /var/log/messages (under BSD) to get the error. If squid stops at boot there is a problem in your config. You can type also "bt full" when gdb give you the prompt. -- Best regards, Loïc BLOT, Engineering UNIX Systems, Security and Networks http://www.unix-experience.fr Le lundi 21 janvier 2013 à 16:53 +0500, Farooq Bhatti a écrit : > Hi, > > I tried but I am getting this error > > [root@hostal-squid cache]# gdb /usr/local/squid/sbin/squid GNU gdb > (GDB) Red Hat Enterprise Linux (7.2-50.el6) Copyright (C) 2010 Free > Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > <http://gnu.org/licenses/gpl.html> > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. Type "show copying" > and "show warranty" for details. > This GDB was configured as "x86_64-redhat-linux-gnu". > For bug reporting instructions, please see: > <http://www.gnu.org/software/gdb/bugs/>... > Reading symbols from /usr/local/squid/sbin/squid...done. > (gdb) run -D > Starting program: /usr/local/squid/sbin/squid -D [Thread debugging > using libthread_db enabled] > > Program exited with code 01. > Missing separate debuginfos, use: debuginfo-install > glibc-2.12-1.47.el6.x86_64 nss-softokn-freebl-3.12.9-11.el6.x86_64 > (gdb) > > Regards, > Muhammad Farooq > ______________________________________________________________________ > __ P Save the environment. Please don't print this email unless you > really need to.ü > > > -----Original Message----- > From: Loïc Blot [mailto:loic.b...@unix-experience.fr] > Sent: Monday, January 21, 2013 4:06 PM > To: Farooq Bhatti > Cc: squid-users@squid-cache.org > Subject: Re: [squid-users] Squid is crashing > > Args are not passed to gdb. > You must type: > > gdb /usr/local/squid/sbin/squid > > and in the gdb prompt > > run -D > -- > Best regards, > > Loïc BLOT, Engineering > UNIX Systems, Security and Networks > http://www.unix-experience.fr > > > Le lundi 21 janvier 2013 à 16:02 +0500, Farooq Bhatti a écrit : > > Hi Blot, > > > > Thanks for the prompt response, do you mean I have to modify the startup > > script of squid and start it with? > > > > "gdb /usr/local/squid/sbin/squid -D" > > > > > > Further I have run the core analysis for both files it is giving > > this > > > > [root@hostal-squid cache]# gdb --core=core.3878 GNU gdb (GDB) Red > > Hat Enterprise Linux (7.2-50.el6) Copyright (C) 2010 Free Software > > Foundation, Inc. > > License GPLv3+: GNU GPL version 3 or later > > <http://gnu.org/licenses/gpl.html> > > This is free software: you are free to change and redistribute it. > > There is NO WARRANTY, to the extent permitted by law. Type "show copying" > > and "show warranty" for details. > > This GDB was configured as "x86_64-redhat-linux-gnu". > > For bug reporting instructions, please see: > > <http://www.gnu.org/software/gdb/bugs/>. > > Missing separate debuginfo for the main executable file > > Try: yum --disablerepo='*' --enablerepo='*-debuginfo' install > > /usr/lib/debug/.build-id/2d/ab64a8900291abe7210d01082d20acdd047008 > > [New Thread 3878] > > [New Thread 3880] > > [New Thread 3890] > > [New Thread 3892] > > [New Thread 3894] > > [New Thread 3889] > > [New Thread 3888] > > [New Thread 3891] > > [New Thread 3887] > > [New Thread 3893] > > [New Thread 3886] > > [New Thread 3885] > > [New Thread 3884] > > [New Thread 3883] > > [New Thread 3879] > > [New Thread 3882] > > [New Thread 3881] > > Core was generated by `(squid) -D'. > > Program terminated with signal 6, Aborted. > > #0 0x000000346b232885 in ?? () > > > > [root@hostal-squid cache]# gdb --core=core.3904 GNU gdb (GDB) Red > > Hat Enterprise Linux (7.2-50.el6) Copyright (C) 2010 Free Software > > Foundation, Inc. > > License GPLv3+: GNU GPL version 3 or later > > <http://gnu.org/licenses/gpl.html> > > This is free software: you are free to change and redistribute it. > > There is NO WARRANTY, to the extent permitted by law. Type "show copying" > > and "show warranty" for details. > > This GDB was configured as "x86_64-redhat-linux-gnu". > > For bug reporting instructions, please see: > > <http://www.gnu.org/software/gdb/bugs/>. > > Missing separate debuginfo for the main executable file > > Try: yum --disablerepo='*' --enablerepo='*-debuginfo' install > > /usr/lib/debug/.build-id/2d/ab64a8900291abe7210d01082d20acdd047008 > > [New Thread 3904] > > [New Thread 3906] > > [New Thread 3918] > > [New Thread 3917] > > [New Thread 3916] > > [New Thread 3908] > > [New Thread 3909] > > [New Thread 3920] > > [New Thread 3919] > > [New Thread 3910] > > [New Thread 3907] > > [New Thread 3911] > > [New Thread 3913] > > [New Thread 3915] > > [New Thread 3914] > > [New Thread 3912] > > [New Thread 3905] > > Core was generated by `(squid) -D'. > > Program terminated with signal 6, Aborted. > > #0 0x000000346b232885 in ?? () > > > > Regards, > > Muhammad Farooq > > ____________________________________________________________________ > > __ __ P Save the environment. Please don't print this email unless > > you really need to.ü > > > > > > -----Original Message----- > > From: Loïc Blot [mailto:loic.b...@unix-experience.fr] > > Sent: Monday, January 21, 2013 3:36 PM > > To: squid-users@squid-cache.org > > Subject: Re: [squid-users] Squid is crashing > > > > Hi Farooq, > > For debugging purpose launch squid with gdb. > > > > gdb > > file <path>/squid > > run <args> > > > > and when squid crashes, type "bt full" > > -- > > Best regards, > > > > Loïc BLOT, Engineering > > UNIX Systems, Security and Networks > > http://www.unix-experience.fr > > > > > > Le lundi 21 janvier 2013 à 15:32 +0500, Farooq Bhatti a écrit : > > > Hi all, > > > > > > My squid is crashing and I am getting the file of following core > > > dump, this is suddenly happening since last 2 weeks. Before it was > > > working fine. > > > > > > [root@hostal-squid cache]# ls -lah /usr/local/squid/var/cache/ > > > total 5.5G drwxr-xr-x. 2 squid squid 4.0K Jan 21 14:55 . > > > drwxr-xr-x. 5 squid squid 4.0K Aug 29 03:44 .. > > > -rw------- 1 squid squid 3.0G Jan 20 03:58 core.3878 > > > -rw------- 1 squid squid 3.0G Jan 20 04:06 core.3904 > > > > > > The version of squid with compiled option is as below: > > > > > > [root@hostal-squid cache]# squid -v Squid Cache: Version > > > LUSCA_HEAD-r14809 configure options: > > > '--enable-delay-pools' '--disable-arp-acl' > > > '--enable-linux-netfilter' '--enable-large-cache-files' > > > '--enable-cache-digests' '--enable-external-acl-helpers=ip_user' > > > '--disable-ident-lookups' '--enable-removal-policies=heap,lru' > > > '--disable-snmp' '--disable-ssl' '--enable-storeio=aufs,coss' '--with-aio' > > > '--with-maxfd=1048576' '--with-dl' '--with-pthreads' '--with-large-files' > > > '--disable-unlinkd' '--disable-htcp' > > > > > > I am using this proxy in university setup and also using delay > > > pool for controlling bandwidth. Please help me resolve the issue. > > > > > > And how can I check core dump files for further investigation of the > > > issue. > > > > > > Looking forward for urgent support in this regards. > > > > > > BR > > > Farooq > > > > > > > > > > > > > ----- > > No virus found in this message. > > Checked by AVG - www.avg.com > > Version: 2012.0.2221 / Virus Database: 2639/5546 - Release Date: > > 01/20/13 > > > > > > > ----- > No virus found in this message. > Checked by AVG - www.avg.com > Version: 2012.0.2221 / Virus Database: 2639/5546 - Release Date: > 01/20/13 > ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2012.0.2221 / Virus Database: 2639/5547 - Release Date: 01/21/13