Re: Arithmetic Error on Sun Solaris GCC compiled program

From: Tom Harrington (tph_at_pcisys.no.spam.dammit.net)
Date: 08/30/04

  • Next message: Brian Inglis: "Re: Larry Wall & Cults"
    Date: Sun, 29 Aug 2004 22:05:45 -0600
    
    

    In article <0001HW.BD567B5100277E64F00805B0@news.usenetserver.com>,
     Verne Arase <VerneA@pobox.com> wrote:

    > Everything runs fine on MacOS X 10.3.5, but when I attempt to port the
    > code to a Solaris 5.8 system with GCC 2.95.2 and run, I get:
    >
    > chkdhcp v1.0a1 begin execution
    >
    >
    > Processing begun on file "/etc/dhcpd.conf"
    >
    > Arithmetic Exception(coredump)
    >
    > ... which isn't terribly helpful.

    That's why gcc always has gdb nearby. Running the tool under gdb will
    probably prove useful. I'd guess it's something like a calculation
    returning "inf" or "NaN", that ends up getting handled differently, but
    gdb should clear it right up.

    -- 
    Tom "Tom" Harrington
    Macaroni, Automated System Maintenance for Mac OS X.
    Version 2.0:  Delocalize, Repair Permissions, lots more.
    See http://www.atomicbird.com/
    

  • Next message: Brian Inglis: "Re: Larry Wall & Cults"

    Relevant Pages

    • Re: strange behaviour with threads/mutexes
      ... tom writes: ... > i haven't been able to debug it at all, because gdb complained about ... Måns Rullgård ...
      (comp.os.linux.development.apps)
    • Re: [patch] measurements, numbers about CONFIG_OPTIMIZE_INLINING=y impact
      ... so gcc inlined it even though it is huge". ... Dump of assembler code for function main: ... Maybe the kernel's backtrace code should be fixed instead of blaming ...
      (Linux-Kernel)
    • Re: Off by one on RedHat Linux
      ... > i'm looking for frame pointer overwrite vulnerability on my linux boxes. ... Newer versions of gcc intruduce an additional ... $ gdb fp1 -q ...
      (Vuln-Dev)
    • Re: A good compiler
      ... gcc is one of the slowest compilers I have ever used. ... gdb simply isn't a visual gui debugger. ... They add some bugs to gdb, that even if it is a shit, it has only ...
      (comp.lang.c)
    • Re: A good compiler
      ... gcc is one of the slowest compilers I have ever used. ... gdb is a pile of shit. ...
      (comp.lang.c)