From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15432 invoked by alias); 14 Jun 2005 21:31:51 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 15402 invoked by uid 22791); 14 Jun 2005 21:31:44 -0000 Received: from english-breakfast.cloud9.net (HELO english-breakfast.cloud9.net) (168.100.1.9) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 14 Jun 2005 21:31:44 +0000 Received: from english-breakfast.cloud9.net (localhost.cloud9.net [127.0.0.1]) by english-breakfast.cloud9.net (Postfix) with SMTP id 80042EE59 for ; Tue, 14 Jun 2005 17:31:43 -0400 (EDT) Received: from keyslapper.net (250-119.customer.cloud9.net [168.100.250.119]) by english-breakfast.cloud9.net (Postfix) with ESMTP id DB193EC2F for ; Tue, 14 Jun 2005 17:31:42 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by keyslapper.net (Postfix) with ESMTP id 7802811585 for ; Tue, 14 Jun 2005 17:31:42 -0400 (EDT) Received: from keyslapper.net ([127.0.0.1]) by localhost (keyslapper.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 42681-06 for ; Tue, 14 Jun 2005 17:31:42 -0400 (EDT) Received: by keyslapper.net (Postfix, from userid 1001) id 343DC114FD; Tue, 14 Jun 2005 17:31:42 -0400 (EDT) Date: Tue, 14 Jun 2005 21:31:00 -0000 From: Louis LeBlanc To: gdb@sources.redhat.com Subject: Re: stack corruption? Message-ID: <20050614213141.GM62467@keyslapper.net> Reply-To: Louis LeBlanc Mail-Followup-To: gdb@sources.redhat.com References: <20050614014520.GG24814@keyslapper.net> <20050614020138.GA19453@nevyn.them.org> <20050614033256.GB48802@keyslapper.net> <10DBEAA7-48B2-4298-A8CC-58A138415516@apple.com> <20050614205212.GK62467@keyslapper.net> <200506142124.j5ELOY8L022852@elgar.sibelius.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <200506142124.j5ELOY8L022852@elgar.sibelius.xs4all.nl> User-Agent: Mutt/1.5.9i Content-Transfer-Encoding: quoted-printable X-AntiVirus: Checked by Vexira Antivirus v1.5 X-SW-Source: 2005-06/txt/msg00146.txt.bz2 On 06/14/05 11:24 PM, Mark Kettenis sat at the `puter and typed: > Date: Tue, 14 Jun 2005 16:52:12 -0400 > From: Louis LeBlanc > BTW, I've seen problems in several applications while performing > network lookups, not just my code, and not just C programs. I got a > couple created by Perl scripts a couple weeks ago and they were also > in the middle of network lookups. This makes me skeptical of the > system libs, not my code and not gcc. The real problem is that gdb > tells me nothing useful in these cases, unless the corrupt stack > message is a real issue with my code. >=20 > But unless you're going to send us a transcript of your debug session > with the *exact* messages, we won't be able to help you. Ok, here we go. $ gdb myprog cores/myprog.core.22367.1117114569 GNU gdb 6.3.0.20050516-cvs Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain condition= s. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "sparc-sun-solaris2.8"... Core was generated by `myprog -c /opt/progHome/conf/myprog.conf'. Program terminated with signal 11, Segmentation fault. Reading symbols from /opt/oracle/8.1.7/lib/libclntsh.so.8.0...done. Loaded symbols for /opt/oracle/8.1.7/lib/libclntsh.so.8.0 Reading symbols from /usr/lib/libnsl.so.1...done. Loaded symbols for /usr/lib/libnsl.so.1 Reading symbols from /usr/lib/libsocket.so.1...done. Loaded symbols for /usr/lib/libsocket.so.1 Reading symbols from /usr/lib/lwp/libthread.so.1...done. Loaded symbols for /usr/lib/lwp/libthread.so.1 Reading symbols from /usr/lib/librt.so.1...done. Loaded symbols for /usr/lib/librt.so.1 Reading symbols from /usr/lib/libresolv.so.2...done. Loaded symbols for /usr/lib/libresolv.so.2 Reading symbols from /usr/lib/libc.so.1...done. Loaded symbols for /usr/lib/libc.so.1 Reading symbols from /opt/oracle/8.1.7/lib/libwtc8.so...done. Loaded symbols for /opt/oracle/8.1.7/lib/libwtc8.so Reading symbols from /usr/lib/libgen.so.1...done. Loaded symbols for /usr/lib/libgen.so.1 Reading symbols from /usr/lib/libdl.so.1...done. Loaded symbols for /usr/lib/libdl.so.1 Reading symbols from /usr/lib/libsched.so.1...done. Loaded symbols for /usr/lib/libsched.so.1 Reading symbols from /usr/lib/libaio.so.1...done. Loaded symbols for /usr/lib/libaio.so.1 Reading symbols from /usr/lib/libm.so.1...done. Loaded symbols for /usr/lib/libm.so.1 Reading symbols from /usr/lib/libmp.so.2...done. Loaded symbols for /usr/lib/libmp.so.2 Reading symbols from /usr/platform/sun4u/lib/libc_psr.so.1...done. Loaded symbols for /usr/platform/SUNW,UltraSPARC-IIi-cEngine/lib/libc_psr.s= o.1 Reading symbols from /usr/lib/nss_files.so.1...done. Loaded symbols for /usr/lib/nss_files.so.1 Reading symbols from /usr/lib/nss_dns.so.1...done. Loaded symbols for /usr/lib/nss_dns.so.1 #0 0xff024044 in ttcpip () from /opt/oracle/8.1.7/lib/libclntsh.so.8.0 (gdb) bt #0 0xff024044 in ttcpip () from /opt/oracle/8.1.7/lib/libclntsh.so.8.0 #1 0xff000470 in ttcdrv () from /opt/oracle/8.1.7/lib/libclntsh.so.8.0 #2 0xfeeb81e0 in nioqwa () from /opt/oracle/8.1.7/lib/libclntsh.so.8.0 #3 0xfed3b5cc in upirtrc () from /opt/oracle/8.1.7/lib/libclntsh.so.8.0 #4 0xfed8b64c in kpurcsc () from /opt/oracle/8.1.7/lib/libclntsh.so.8.0 #5 0xfed5b104 in kpuexecv8 () from /opt/oracle/8.1.7/lib/libclntsh.so.8.0 #6 0xfed5d2d4 in kpuexec () from /opt/oracle/8.1.7/lib/libclntsh.so.8.0 #7 0xfed9a318 in OCIStmtExecute () from /opt/oracle/8.1.7/lib/libclntsh.so= .8.0 #8 0x000e5234 in execute_statement (connID=3D1649752, stmntID=3D1, args=3D= 0xf827a650, dbTimingRec=3D0xf8279b80, inOpCode=3D19541) at dbase.c:873 #9 0x0002e9f4 in handle_check (thread=3D0x759b70) at myprog.c:904 #10 0x000e3134 in spawn (arg=3D0x759b70) at mythread.c:195 #11 0xff354978 in _lwp_start () from /usr/lib/lwp/libthread.so.1 #12 0xff354978 in _lwp_start () from /usr/lib/lwp/libthread.so.1 Previous frame identical to this frame (corrupt stack?) (gdb)=20 I have changed identifying names to protect the guilty, but this is pretty much typical. Thank you Lou --=20 Louis LeBlanc dev@keyslapper.net Fully Funded Hobbyist, KeySlapper Extrordinaire :=FE http://www.keyslapper.net =D4=BF=D4=AC Key fingerprint =3D C5E7 4762 F071 CE3B ED51 4FB8 AF85 A2FE 80C8 D9A2 If they can make penicillin out of moldy bread, they can sure make something out of you. -- Muhammad Ali