From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27573 invoked by alias); 12 Nov 2008 05:09:46 -0000 Received: (qmail 27373 invoked by uid 22791); 12 Nov 2008 05:09:45 -0000 X-Spam-Check-By: sourceware.org Received: from rv-out-0708.google.com (HELO rv-out-0708.google.com) (209.85.198.244) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 12 Nov 2008 05:09:08 +0000 Received: by rv-out-0708.google.com with SMTP id b17so226866rvf.48 for ; Tue, 11 Nov 2008 21:09:06 -0800 (PST) Received: by 10.142.14.18 with SMTP id 18mr3348744wfn.215.1226466546821; Tue, 11 Nov 2008 21:09:06 -0800 (PST) Received: by 10.143.43.6 with HTTP; Tue, 11 Nov 2008 21:09:06 -0800 (PST) Message-ID: <20ed42750811112109v316aedacv807291bb576cd348@mail.gmail.com> Date: Wed, 12 Nov 2008 05:09:00 -0000 From: "Stefan Adams" Reply-To: stefan@cogentinnovators.com To: "Ramana Radhakrishnan" Subject: Re: SIGFPE Cc: gdb@sourceware.org In-Reply-To: <67ea2eb0811112105l5a3603b5g674492d7dd45dcf@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20ed42750811112038p496f653aj19d26ffa3ceb6fcb@mail.gmail.com> <67ea2eb0811112105l5a3603b5g674492d7dd45dcf@mail.gmail.com> X-Google-Sender-Auth: a9186dcc7fcc7a3c Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-11/txt/msg00085.txt.bz2 Thanks! Where can I go to get info on how to debug an app using gdb? Below is the output of a bt. # more /tmp/gdb GNU gdb 6.3 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 conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) r Starting program: /bin/pulseaudio Program received signal SIGFPE, Arithmetic exception. 0xb7f677ae in ?? () (gdb) bt #0 0xb7f677ae in ?? () #1 0xb7b739f8 in ?? () #2 0xbfc06830 in ?? () #3 0xbfc06a70 in ?? () #4 0xb7f69cef in ?? () #5 0x00000000 in ?? () : #1512 0x6c75702f in ?? () #1513 0x75616573 in ?? () #1514 0x006f6964 in ?? () #1515 0x00000000 in ?? () (gdb) q On Tue, Nov 11, 2008 at 11:05 PM, Ramana Radhakrishnan wrote: > On Wed, Nov 12, 2008 at 4:38 AM, Stefan Adams wrote: >> I'm trying to compile a package of pulseaudio for thinstation. I've >> done that and it's apparently successful because there were no errors >> during compile. >> >> I boot up thinstation and try to run pulseaudio and I get this >> horribly worthless message: "Floating point exception" >> That's it! All by itself! How can I proceed to solve the problem? >> Is it in pulseaudio? Is it in one of the other libraries that I had >> to compile? All compiling was done within the RUNME chroot >> environment provided by thinstation_src. >> >> Do you think thinstation or pulseaudio groups may be able to help, or >> am I going to have to debug the problem myself? If the latter, *any* >> suggestions would be most welcome!! >> >> # /bin/pulseaudio >> Floating point exception >> >> # ldd /bin/pulseaudio >> linux-gate.so.1 => (0xffffe000) >> libpulsecore.so.8 => /lib/libpulsecore.so.8 (0xb7ed6000) >> libltdl.so.3 => /lib/libltdl.so.3 (0xb7ece000) >> libsamplerate.so.0 => /lib/libsamplerate.so.0 (0xb7d65000) >> libspeex.so.1 => /lib/libspeex.so.1 (0xb7d52000) >> libspeexdsp.so.1 => /lib/libspeexdsp.so.1 (0xb7d44000) >> libsndfile.so.1 => /lib/libsndfile.so.1 (0xb7bb5000) >> liboil-0.3.so.0 => /lib/liboil-0.3.so.0 (0xb7b57000) >> libgdbm.so.3 => /lib/libgdbm.so.3 (0xb7b51000) >> librt.so.1 => /lib/librt.so.1 (0xb7b3e000) >> libdl.so.2 => /lib/libdl.so.2 (0xb7b3a000) >> libm.so.6 => /lib/libm.so.6 (0xb7b19000) >> libpthread.so.0 => /lib/libpthread.so.0 (0xb7b08000) >> libc.so.6 => /lib/libc.so.6 (0xb7a18000) >> /lib/ld-linux.so.2 (0xb7f44000) >> >> # gdb /bin/pulseaudio >> GNU gdb 6.3 >> 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 conditions. >> Type "show copying" to see the conditions. >> There is absolutely no warranty for GDB. Type "show warranty" for details. >> This GDB was configured as "i686-pc-linux-gnu"...Using host >> libthread_db library "/lib/libthread_db.so.1". >> >> (gdb) r >> Starting program: /bin/pulseaudio >> >> Program received signal SIGFPE, Arithmetic exception. >> 0xb7f157ae in ?? () >> >> > > Try doing a backtrace (bt) at this point and look at where the > exception was caused in source if you have a debug build on.. If you > want to talk about pulseaudio code then you should go to those lists. > This list is for discussions about gdb and its internals. > > > cheers > Ramana >