Re: floating point exception in binary

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

 



Hi all,

I failed to mention  where the floating point exception occurred.
These are in the following lines.

$ ../bin/dr_End2End
Floating point exception

and when I run through debugger I am getting the following error:
(gdb) run
Starting program:
/home/vkatakam/dstars.2003.1.0_new/src/report/dr_End2End/bin/dr_End2End
[Thread debugging using libthread_db enabled]
[New Thread 182929243680 (LWP 1726)]
Program received signal SIGFPE, Arithmetic exception.
[Switching to Thread 182929243680 (LWP 1726)]
0x0000002a9555e970 in do_lookup_versioned () from /lib64/ld-linux-x86-64.so.2
(gdb) where
#0  0x0000002a9555e970 in do_lookup_versioned () from /lib64/ld-
linux-x86-64.so.2
#1  0x0000002a9555dac7 in _dl_lookup_versioned_symbol_internal () from
/lib64/ld-linux-x86-64.so.2
#2  0x0000002a95561205 in fixup () from /lib64/ld-linux-x86-64.so.2
#3  0x0000002a95561042 in _dl_runtime_resolve () from /lib64/ld-
linux-x86-64.so.2
#4  0x0000002a9566f283 in StartLogger (log_setup=0x7fbfff22a0,
argv=0x7fbfffb938) at src/mesglog.c:513
#5  0x000000000040164e in main (argc=1, argv=0x7fbfffb938) at dr_End2End.c:189
(gdb) list
189       istat = (int) StartLogger(&sLogSetup, argv);
190       if (istat != 1) {

I want to know is this due to sofware or hardware error .

Regards,
Vivek



On 5/5/06, Vivek Katakam <vivek1717@xxxxxxxxx> wrote:
 Hi,

  I am working with one of the porting projects in migrating from compq to
 gcc on x86_64. I am facing this problem since a week. Please help.

 While I am compiling a source using gcc and when I run it am getting the
 floating point exception for the binary
 I have compiled using the following options :
 compile :
 /usr/bin/gcc  -g -c -Wall -fPIC
 -I/home/vkatakam/dstars.2003.1.0_new/src/inc
 -I/home/vkatakam/dst.2003.1.0_new/inc -I../inc
 -I/home/vkatakam/dst.2003.1.0_new/inc.cludge dr_End2End.c
 -o dr_End2End.o

 dr_End2End.c: In function `main':
 dr_End2End.c:242: warning: implicit declaration of function `dc_End2End'
 dr_End2End.c:248: warning: implicit declaration of function
 `dc_PrintEnd2End'
 dr_End2End.c: At top level:
 dr_End2End.c:2: warning: `dr_end2end_c' defined but not used
 /home/vkatakam/dstars.2003.1.0_new/src/inc/db_rec.h:5:
 warning: `db_rec_h' defined but not used
 /home/vkatakam/dstars.2003.1.0_new/inc/mesglog.h:4:
 warning: `mesglog_h' defined but not used

 Linking:
 /usr/bin/gcc  -o ../bin/dr_End2End dr_End2End.o
 -L/home/vkatakam/dstars.2003.1.0_new/lib
 -L/home/vkatakam/dstars.2003.1.0_new/src/lib
 -L/oracle/app/oracle/product/10.1/lib
 -L/home/vkatakam/tmp/2003.1/lib -lMesgLog -lFileUtil -lc -lrt -lm -lclntsh
 -ldc_st -ldc_date -ldc_util -lsc_report -ldc_end
 :

 I am using the following:
 gcc -v
 Reading specs from
 /usr/lib/gcc-lib/x86_64-redhat-linux/3.2.3/specs
 Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
 --infodir=/usr/share/info --enable-shared --enable-threads=posix
 --disable-checking --with-system-zlib --enable-__cxa_atexit
 --host=x86_64-redhat-linux
 Thread model: posix
 gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-53)

 and the hardware is
 SMP Wed Jan 11 18:35:39 EST 2006 x86_64 x86_64 x86_64 GNU/Linux

 The ldd and nm tools on the binary are all ok and there are no undefined
 symbols. I have tried all  options. some suggested to use x86_6 options. But
 i do not know how to use.


 Any suggestion is appreciated.

 Regards,
 Vivek



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux