* SIGFPE
@ 2008-11-12 4:39 Stefan Adams
2008-11-12 5:05 ` SIGFPE Ramana Radhakrishnan
0 siblings, 1 reply; 4+ messages in thread
From: Stefan Adams @ 2008-11-12 4:39 UTC (permalink / raw)
To: gdb
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 ?? ()
(gdb) c
Continuing.
Program terminated with signal SIGFPE, Arithmetic exception.
The program no longer exists.
(gdb) q
# strace /bin/pulseaudio
execve("/bin/pulseaudio", ["/bin/pulseaudio"], [/* 46 vars */]) = 0
brk(0) = 0x8055000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/tls/i686/libpulsecore.so.8", O_RDONLY) = -1
ENOENT (No such file or directory)
stat64("/usr/local/lib/tls/i686", 0xbf922300) = -1 ENOENT (No such
file or directory)
open("/usr/local/lib/tls/libpulsecore.so.8", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/local/lib/tls", 0xbf922300) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/i686/libpulsecore.so.8", O_RDONLY) = -1 ENOENT
(No such file or directory)
stat64("/usr/local/lib/i686", 0xbf922300) = -1 ENOENT (No such file or
directory)
open("/usr/local/lib/libpulsecore.so.8", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/local/lib", 0xbf922300) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/i686/libpulsecore.so.8", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/usr/lib/tls/i686", 0xbf922300) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/libpulsecore.so.8", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/usr/lib/tls", 0xbf922300) = -1 ENOENT (No such file or directory)
open("/usr/lib/i686/libpulsecore.so.8", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/usr/lib/i686", 0xbf922300) = -1 ENOENT (No such file or directory)
open("/usr/lib/libpulsecore.so.8", O_RDONLY) = -1 ENOENT (No such file
or directory)
stat64("/usr/lib", {st_mode=S_IFDIR|0755, st_size=95, ...}) = 0
open("/lib/tls/i686/libpulsecore.so.8", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/lib/tls/i686", 0xbf922300) = -1 ENOENT (No such file or directory)
open("/lib/tls/libpulsecore.so.8", O_RDONLY) = -1 ENOENT (No such file
or directory)
stat64("/lib/tls", 0xbf922300) = -1 ENOENT (No such file or directory)
open("/lib/i686/libpulsecore.so.8", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/lib/i686", 0xbf922300) = -1 ENOENT (No such file or directory)
open("/lib/libpulsecore.so.8", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\366\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=544287, ...}) = 0
old_mmap(NULL, 448932, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0xb7f03000
old_mmap(0xb7f6f000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6b000) = 0xb7f6f000
close(3) = 0
open("/usr/lib/libltdl.so.3", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libltdl.so.3", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\24"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=22840, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0xb7f02000
old_mmap(NULL, 25964, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0xb7efb000
old_mmap(0xb7f01000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5000) = 0xb7f01000
mprotect(0xbf922000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC|0x1000000) = 0
close(3) = 0
open("/usr/lib/libsamplerate.so.0", O_RDONLY) = -1 ENOENT (No such
file or directory)
open("/lib/libsamplerate.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\10"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1476903, ...}) = 0
old_mmap(NULL, 1475344, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7d92000
old_mmap(0xb7efa000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x167000) = 0xb7efa000
close(3) = 0
open("/usr/lib/libspeex.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libspeex.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360*\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=86454, ...}) = 0
old_mmap(NULL, 76948, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0xb7d7f000
old_mmap(0xb7d91000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x11000) = 0xb7d91000
close(3) = 0
open("/usr/lib/libspeexdsp.so.1", O_RDONLY) = -1 ENOENT (No such file
or directory)
open("/lib/libspeexdsp.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\32\0\000"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=62135, ...}) = 0
old_mmap(NULL, 56144, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0xb7d71000
old_mmap(0xb7d7e000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xc000) = 0xb7d7e000
close(3) = 0
open("/usr/lib/libsndfile.so.1", O_RDONLY) = -1 ENOENT (No such file
or directory)
open("/lib/libsndfile.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\251"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1839206, ...}) = 0
old_mmap(NULL, 1632532, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7be2000
old_mmap(0xb7c69000, 1064960, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x86000) = 0xb7c69000
old_mmap(0xb7d6d000, 14612, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7d6d000
close(3) = 0
open("/usr/lib/liboil-0.3.so.0", O_RDONLY) = -1 ENOENT (No such file
or directory)
open("/lib/liboil-0.3.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`@\1\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=529664, ...}) = 0
old_mmap(NULL, 384108, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0xb7b84000
old_mmap(0xb7bca000, 90112, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x46000) = 0xb7bca000
old_mmap(0xb7be0000, 7276, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7be0000
close(3) = 0
open("/usr/lib/libgdbm.so.3", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libgdbm.so.3", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\r\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=21066, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0xb7b83000
old_mmap(NULL, 18924, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0xb7b7e000
old_mmap(0xb7b82000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0xb7b82000
close(3) = 0
open("/usr/lib/librt.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/librt.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320 \0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=30572, ...}) = 0
old_mmap(NULL, 77528, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0xb7b6b000
old_mmap(0xb7b72000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0xb7b72000
old_mmap(0xb7b74000, 40664, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7b74000
close(3) = 0
open("/usr/lib/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libdl.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \f\0\000"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=14510, ...}) = 0
old_mmap(NULL, 12396, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0xb7b67000
old_mmap(0xb7b69000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0xb7b69000
close(3) = 0
open("/usr/lib/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libm.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0203\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=174972, ...}) = 0
old_mmap(NULL, 131248, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0xb7b46000
old_mmap(0xb7b65000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1e000) = 0xb7b65000
close(3) = 0
open("/usr/lib/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file
or directory)
open("/lib/libpthread.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0(H\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=96796, ...}) = 0
old_mmap(NULL, 66020, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0xb7b35000
old_mmap(0xb7b42000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd000) = 0xb7b42000
old_mmap(0xb7b44000, 4580, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7b44000
close(3) = 0
open("/usr/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\10Q\1\000"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1219204, ...}) = 0
old_mmap(NULL, 982396, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0xb7a45000
old_mmap(0xb7b2f000, 16384, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe9000) = 0xb7b2f000
old_mmap(0xb7b33000, 7548, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7b33000
close(3) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0xb7a44000
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0xb7a43000
--- SIGFPE (Floating point exception) ---
+++ killed by SIGFPE +++
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: SIGFPE
2008-11-12 4:39 SIGFPE Stefan Adams
@ 2008-11-12 5:05 ` Ramana Radhakrishnan
2008-11-12 5:09 ` SIGFPE Stefan Adams
0 siblings, 1 reply; 4+ messages in thread
From: Ramana Radhakrishnan @ 2008-11-12 5:05 UTC (permalink / raw)
To: Stefan Adams; +Cc: gdb
On Wed, Nov 12, 2008 at 4:38 AM, Stefan Adams <stefan@borgia.com> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: SIGFPE
2008-11-12 5:05 ` SIGFPE Ramana Radhakrishnan
@ 2008-11-12 5:09 ` Stefan Adams
2008-11-12 5:19 ` SIGFPE Ramana Radhakrishnan
0 siblings, 1 reply; 4+ messages in thread
From: Stefan Adams @ 2008-11-12 5:09 UTC (permalink / raw)
To: Ramana Radhakrishnan; +Cc: gdb
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
<ramana.r@gmail.com> wrote:
> On Wed, Nov 12, 2008 at 4:38 AM, Stefan Adams <stefan@borgia.com> 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
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: SIGFPE
2008-11-12 5:09 ` SIGFPE Stefan Adams
@ 2008-11-12 5:19 ` Ramana Radhakrishnan
0 siblings, 0 replies; 4+ messages in thread
From: Ramana Radhakrishnan @ 2008-11-12 5:19 UTC (permalink / raw)
To: stefan; +Cc: gdb
On Wed, Nov 12, 2008 at 5:09 AM, Stefan Adams
<stefan@cogentinnovators.com> wrote:
> Thanks! Where can I go to get info on how to debug an app using gdb?
The GDB reference manual is a good start.
http://sourceware.org/gdb/current/onlinedocs/gdb_toc.html
Make sure you are building pulseaudio with -g or friends for debug
information to appear in the executable. You need that for source
level debug. From your mail it appears that pulseaudio is a stripped
out executable. First try and debug some small programs using gdb and
commands. The most useful commands to start with are backtrace and
print to start with to inspect program state when things crash.
Best of luck.
Also , you might do well to get a later version of gdb - 6.3 is old ,
6.8 is the latest and greatest though 6.3 should work in most cases.
cheers
Ramana
>
> 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
> <ramana.r@gmail.com> wrote:
>> On Wed, Nov 12, 2008 at 4:38 AM, Stefan Adams <stefan@borgia.com> 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
>>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-11-12 5:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-12 4:39 SIGFPE Stefan Adams
2008-11-12 5:05 ` SIGFPE Ramana Radhakrishnan
2008-11-12 5:09 ` SIGFPE Stefan Adams
2008-11-12 5:19 ` SIGFPE Ramana Radhakrishnan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox