[Phoenix-pm] Fwd: [perl #38485] use integer; 0x80000000/-1; # coredump

Scott Walters scott at illogics.org
Fri Feb 10 15:24:44 PST 2006

I don't know why Perl coredumpers fascinate me so, but here's another one for ya'll.

----- Forwarded message from Nicholas Clark <perlbug-followup at perl.org> -----

From: Nicholas Clark <perlbug-followup at perl.org>
Date: Fri, 10 Feb 2006 15:06:24 -0800

# New Ticket Created by  Nicholas Clark 
# Please include the string:  [perl #38485]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/rt3/Ticket/Display.html?id=38485 >

This is a bug report for perl from nick at ccl4.org,
generated with the help of perlbug 1.35 running under perl 5.9.4.

[Please enter your report here]

The code

    use integer;

will coredump on (at least) x86 FreeBSD, with a floating point exception.
(It's amazing what strange things you learn from perl6-internals)

Do we want to trap this overflow case before things go boom?
If so, what do we do? Die with something more meaningful analagous to the
division by zero error?

Nicholas Clark

[Please do not change anything below this line]
Site configuration information for perl 5.9.4:

Configured by nwc10 at Fri Feb 10 21:49:21 GMT 2006.

Summary of my perl5 (revision 5 version 9 subversion 4) configuration:
    osname=freebsd, osvers=5.4-stable, archname=i386-freebsd-thread-multi
    uname='freebsd colon.colondot.net 5.4-stable freebsd 5.4-stable #3: sat oct 15 10:50:35 bst 2005 mbm at colonii.colondot.net:usrobjusrsrcsyscolon i386 '
    config_args='-Dusedevel=y -Dcc=ccache gcc -Dld=gcc -Ubincompat5005 -Uinstallusrbinperl -Dcf_email=nick at ccl4.org -Dperladmin=nick at ccl4.org -Dinc_version_list=  -Dinc_version_list_init=0 -Doptimize=-g -Dusethreads -Uuse64bitint -Dprefix=~/snap5.9.x-27152 -Dusesitecustomize -Accflags=-DPERL_POISON -Uperlio -Dinstallman1dir=none -Dinstallman3dir=none -de'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=undef, use64bitall=undef, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
    cc='ccache gcc', ccflags ='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DPERL_POISON -DDEBUGGING -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include',
    cppflags='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DPERL_POISON -DDEBUGGING -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include'
    ccversion='', gccversion='3.4.2 [FreeBSD] 20040728', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags ='-Wl,-E  -L/usr/local/lib'
    libpth=/usr/lib /usr/local/lib
    libs=-lgdbm -lm -lcrypt -lutil -lc_r
    perllibs=-lm -lcrypt -lutil -lc_r
    libc=, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-DPIC -fPIC', lddlflags='-shared  -L/usr/local/lib'

Locally applied patches:

@INC for perl 5.9.4:

Environment for perl 5.9.4:
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PERL_BADLANG (unset)

----- End forwarded message -----

More information about the Phoenix-pm mailing list