[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#506850: libc6-prof: profiling C library causes FPE



Package: libc6-prof
Version: 2.7-16
Severity: normal

Executables linked with option -p or -pg and profiling library libc_p.a
throw a SIGFPE.  Even very simple one as this:

% cat x.c
#include <stdio.h>
main(){printf("hello, world!\n");}

will die:

% gcc -p x.c -lc_p
% a.out
[1]    30461 floating point exception (core dumped)  a.out
% gcc -pg x.c -lc_p
% a.out
[1]    30468 floating point exception (core dumped)  a.out
% gcc -g -pg x.c -lc_p
% gdb a.out
GNU gdb 6.8-debian
This GDB was configured as "i486-linux-gnu"...
(gdb) r
Starting program: /home/xxx/a.out

Program received signal SIGFPE, Arithmetic exception.
0x08056c86 in profil ()
Current language:  auto; currently asm
(gdb) bt
#0  0x08056c86 in profil ()
#1  0x08056968 in moncontrol ()
#2  0x0804d136 in __gmon_start__ () at gmon-start.c:74
#3  0xb7f3da22 in ?? () from /lib/libgcc_s.so.1
#4  0xb7f5bbe8 in ?? ()
#5  0xb7f77ff4 in ?? () from /lib/ld-linux.so.2
#6  0xbfe76068 in ?? ()
#7  0xb7f6ade4 in ?? () from /lib/ld-linux.so.2
#8  0x00000001 in ?? ()
#9  0xbfe760c4 in ?? ()
#10 0xbfe760cc in ?? ()
#11 0x00000009 in ?? ()
#12 0xbfe7607c in ?? ()
#13 0x00000001 in ?? ()
#14 0x08048034 in ?? ()

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (900, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=hu_HU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libc6-prof depends on:
ii  libc6                         2.7-16     GNU C Library: Shared libraries

libc6-prof recommends no packages.

libc6-prof suggests no packages.

-- no debconf information



Reply to: