*BSD News Article 65283


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.vbc.net!samba.rahul.net!rahul.net!a2i!ultra.sonic.net!miwok!imci4!newsfeed.internetmci.com!newsserver.jvnc.net!raffles.technet.sg!iss.nus.sg!not-for-mail
From: kongwah@iss.nus.sg (Wan Kong Wah)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: gdb on freeBSD
Date: 3 Apr 1996 09:23:04 GMT
Organization: Institute Of Systems Science, National University Of Singapore.
Lines: 60
Message-ID: <4jtg1o$kam@holodeck.iss.nus.sg>
NNTP-Posting-Host: otter.iss.nus.sg
Keywords: freeBSD, gcc, gdb
X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]


Hi,

I am stuck with running my program on a Pentium running
freeBSD 2.1.0-RELEASE. I have compiled it using gcc, and
on running with gdb, I have the following:


avenue1: {10}
avenue1: {10} gdb brun
GDB is free software and you are welcome to 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.
GDB 4.13 (i386-unknown-freebsd), 
Copyright 1994 Free Software Foundation, Inc...r
(gdb)
(gdb) run img

Program received signal SIGFPE, Arithmetic exception.
0x8051bd2 in __ieee754_exp ()
(gdb) 
(gdb) where
#0  0x8051bd2 in __ieee754_exp ()
#1  0x80621bd in exp ()
#2  0x16618 in logistic (x=-11.2620468, window_net=0x15ed0c) at
    recog_bp.c:200
#3  0x16717 in compute_output (window_net=0x15ed0c) at
    recog_bp.c:226
#4  0x8267 in computeActivations (resbuf=0xefbf3644, x=0x38714, 
    imbuf=0xefbfd9fc) at bp.c:285
#5  0xe5fc in RECOGNIZE (cptr=0x38714, imbuf=0xefbfd9fc) at
    postedit.c:1584
#6  0x23ced in Recog_Qch (Qch=0xefbf4d9c, imbuf=0xefbfd9fc,
    roi=0xc1830, text=0x225eb "GF") at MP.c:1066
#7  0x232df in Combine_Segmenter_Result (Color=87 'W',
    gf_Qch=0xefbf4d9c, egcc_Qch=0xefbf4d80, Qch=0xefbf4d64,
    imbuf=0xefbfd9fc, roi=0xc1830) at MP.c:871
#8  0x22e41 in Morphological_Operation (Color=87 'W',
    CharQ=0x154484, imbuf=0xefbfd9fc, roi=0xc1830) at MP.c:779
#9  0x309de in FullScreen (imbuf=0xefbfd9fc, target=0xefbfd9ac, 
    Filename=0xefbf94f8 "/usr/home/kongwah/SRC/960324-142008.img")
    at fullscreen.c:98
#10 0x1d3a in main (argc=2, argv=0xefbfda30) at bumpdetect.c:151
(gdb) 
(gdb) 


Though it stops at the exp() function, I am suspecting that there
is not the problem is. Maybe there is a leak somewhere.

The same s/w runs OK on DEC OS, Sun Solaris.

Appreciate any info and help from you gurus out there.




Kong Wah
kongwah@iss.nus.sg