Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segfault with DProf and BigInt #6797

Closed
p5pRT opened this issue Sep 27, 2003 · 8 comments
Closed

Segfault with DProf and BigInt #6797

p5pRT opened this issue Sep 27, 2003 · 8 comments

Comments

@p5pRT
Copy link

p5pRT commented Sep 27, 2003

Migrated from rt.perl.org#24058 (status was 'resolved')

Searchable as RT24058$

@p5pRT
Copy link
Author

p5pRT commented Sep 27, 2003

From perl_dummy@bloodgate.com

Created by perl_dummy@bloodgate.com

  # perl -d​:DProf segfault.pl Foo
  Segmentation fault
  # cat segfault.pl
  #!/usr/bin/perl -w
 
  use Math​::BigInt lib => shift || '';

This also happened under 5.8.0 and prompted me to upgrade to
the newest version 5.8.1 :)

Passing 'Calc' or 'GMP' (with Math​::BigInt​::GMP installed)
does not segfault. Also, the following does not segfault​:

  # perl segfault Foo

I am using $Devel​::DProf​::VERSION = '20030813.00' and Math​::BigInt v1.66, both
straight from v5.8.1.

Thank you in advance,

Tels

Perl Info
- ---
Flags:
    category=core
    severity=critical
- ---
This perlbug was built using Perl v5.8.0 - Thu Mar 13 22:21:38 UTC 2003
It is being executed now by  Perl v5.8.1 - Sat Sep 27 20:54:50 CEST 2003.

Site configuration information for perl v5.8.1:

Configured by te at Sat Sep 27 20:54:50 CEST 2003.

Summary of my perl5 (revision 5.0 version 8 subversion 1) configuration:
  Platform:
    osname=linux, osvers=2.4.20-4gb-athlon, archname=i686-linux
    uname='linux null 2.4.20-4gb-athlon #1 wed aug 6 18:27:52 utc 2003 i686 
unknown unknown gnulinux '
    config_args='-ds -e'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef 
usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-fno-strict-aliasing -I/usr/local/include 
- -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O3',
    cppflags='-fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='3.3 20030226 (prerelease) (SuSE Linux)', 
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='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -ldl -lm -lcrypt -lutil -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
    libc=, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.3.2'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'

Locally applied patches:
    

- ---
@INC for perl v5.8.1:
    /usr/local/lib/perl5/5.8.1/i686-linux
    /usr/local/lib/perl5/5.8.1
    /usr/local/lib/perl5/site_perl/5.8.1/i686-linux
    /usr/local/lib/perl5/site_perl/5.8.1
    /usr/local/lib/perl5/site_perl
    .

- ---
Environment for perl v5.8.1:
    HOME=/root
    LANG=en_US
    LANGUAGE (unset)
    LC_COLLATE=POSIX
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/usr/sbin:/bin:/usr/bin:/sbin:/usr/X11R6/bin
    PERL_BADLANG (unset)
    SHELL=/bin/bash

- -- 
 Signed on Sat Sep 27 21:16:40 2003 with key 0x93B84C15.
 Visit my photo gallery at http://bloodgate.com/photos/
 PGP key on http://bloodgate.com/tels.asc or per email.

 "Schau, schau, Schononen."

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
Comment: When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl.

iQEVAwUBP3XinXcLPEOTuEwVAQHw0wf8Dy8WFXCr1EE4+b1X3X1Z+0ISmgxa3MU3
r2MjexZWGr3vW9wvXHFfcIgnp9jpBWsBM70nS4zedPuV7PT8pa3KANRNYXkBYQMk
Tz0RSSsSMAGlKjWodxiCG6Dxnj/RMftnj8gKVDwRpphM6iMY5d3FApIVlzMsFdMG
PhMUICHz8C2Fivv1NmcN8JbkBZOdk9vo/TmSBPSlRMDfAZi3nJhCLb7ZX2uynmAu
5m6ze49f2/bgqeUxorFGihDCW8UIs8zBVIrWJEWzs3VJ6F9KqufPDVgtC2x+H9aP
VS4MyKR1JAOr/2HRz+XqcC0zLgCcfaiUq+diqXGtItyuxIkD5pn8qA==
=FQaO
-----END PGP SIGNATURE-----


@p5pRT
Copy link
Author

p5pRT commented Sep 27, 2003

From perl_dummy@bloodgate.com

-----BEGIN PGP SIGNED MESSAGE-----

Moin,

Here is the thing as one-liner​:

  # perl -d​:DProf -le 'use Math​::BigInt lib => "Foo"'
  Segmentation fault

Best wishes,

Tels

- --
Signed on Sat Sep 27 21​:22​:11 2003 with key 0x93B84C15.
Visit my photo gallery at http​://bloodgate.com/photos/
PGP key on http​://bloodgate.com/tels.asc or per email.

"Man, I'm hot." - "Thirsty?" - "No, I mean good looking."

-----BEGIN PGP SIGNATURE-----
Version​: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
Comment​: When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl.

iQEVAwUBP3XjjHcLPEOTuEwVAQElrwf8CqQM1yb0QqN2CnwQTM2PJVqY/VXOJdAA
sLtpqJIs3tNIwB68u2IhnG3ZSXoLFESkVrGaFJC0mmIFDeyMhwS/RQwqxAqUw9Lu
CJaovWs2UC2GVy93rMLTbzBeeg2onPRkPfozwu+QhIUFQFCAf0zw4NqWg4QC9lxb
+d8opKwrhRAmMduLGocbasOReKEHvifJG/94sSTb1eTexMz9Uh8yCVbhNW17NRvy
8qRUfszKdQxErutMEwceKqDAd02EUOE+aqayQfmi4/zkMvtTSVotiJUgxqQw+MeR
Y+HnxpaIwQfd+DMzlQF6KziYj1aVrvxzqDPc4+KONCckcfnj57dD+g==
=9GCi
-----END PGP SIGNATURE-----

@p5pRT
Copy link
Author

p5pRT commented Jan 1, 2005

From perl_dummy@bloodgate.com

[tels - Sat Sep 27 12​:21​:38 2003]​:
Here is the thing as one-liner​:

\# perl \-d​:DProf \-le 'use Math​::BigInt lib => "Foo"'
Segmentation fault

This still happens with Perl v5.8.6 and Math​::BigInt v1.73/v1.74.

Best wishes,

Tels

@p5pRT
Copy link
Author

p5pRT commented Mar 5, 2006

From guest@guest.guest.xxxxxxxx

[tels - Sat Sep 27 12​:18​:00 2003]​:

-----BEGIN PGP SIGNED MESSAGE-----

This is a bug report for perl from perl_dummy@​bloodgate.com,
generated with the help of perlbug 1.34 running under perl v5.8.1.

Still segfaults with 5.8.6 and BigInt 1.77​:

linux​:~ # perl -d​:DProf segfault.pl Foo
Segmentation fault
linux​:~ # perl -v

This is perl, v5.8.6 built for i686-linux

Copyright 1987-2004, Larry Wall

linux​:~ # perl -MMath​::BigInt\ 99
Math​::BigInt version 99 required--this is only version 1.77.
BEGIN failed--compilation aborted.

@p5pRT
Copy link
Author

p5pRT commented Mar 17, 2006

From @smpeters

[guest - Sun Mar 05 08​:00​:19 2006]​:

[tels - Sat Sep 27 12​:18​:00 2003]​:

-----BEGIN PGP SIGNED MESSAGE-----

This is a bug report for perl from perl_dummy@​bloodgate.com,
generated with the help of perlbug 1.34 running under perl v5.8.1.

Still segfaults with 5.8.6 and BigInt 1.77​:

linux​:~ # perl -d​:DProf segfault.pl Foo
Segmentation fault
linux​:~ # perl -v

This is perl, v5.8.6 built for i686-linux

Copyright 1987-2004, Larry Wall

linux​:~ # perl -MMath​::BigInt\ 99
Math​::BigInt version 99 required--this is only version 1.77.
BEGIN failed--compilation aborted.

With a recent bleadperl, things seem to be OK.

steve@​kirk​:~/perl-current$ ./perl -Ilib rt_24058.pl Foo
steve@​kirk​:~/perl-current$

@p5pRT
Copy link
Author

p5pRT commented Mar 17, 2006

From @smpeters

[stmpeters - Fri Mar 17 05​:13​:40 2006]​:

[guest - Sun Mar 05 08​:00​:19 2006]​:

[tels - Sat Sep 27 12​:18​:00 2003]​:

-----BEGIN PGP SIGNED MESSAGE-----

This is a bug report for perl from perl_dummy@​bloodgate.com,
generated with the help of perlbug 1.34 running under perl v5.8.1.

Still segfaults with 5.8.6 and BigInt 1.77​:

linux​:~ # perl -d​:DProf segfault.pl Foo
Segmentation fault
linux​:~ # perl -v

This is perl, v5.8.6 built for i686-linux

Copyright 1987-2004, Larry Wall

linux​:~ # perl -MMath​::BigInt\ 99
Math​::BigInt version 99 required--this is only version 1.77.
BEGIN failed--compilation aborted.

With a recent bleadperl, things seem to be OK.

steve@​kirk​:~/perl-current$ ./perl -Ilib rt_24058.pl Foo
steve@​kirk​:~/perl-current$

Sorry, I need my first coffee, obviously.

steve@​kirk​:~/perl-current$ ./perl -Ilib -d​:DProf rt_24058.pl Foo
panic​: Devel​::DProf inconsistent subroutine return at rt_24058.pl line 3.
BEGIN failed--compilation aborted at rt_24058.pl line 3.
steve@​kirk​:~/perl-current$

@p5pRT
Copy link
Author

p5pRT commented Apr 30, 2012

From @Hugmeir

On Fri Mar 17 05​:15​:22 2006, stmpeters wrote​:

[stmpeters - Fri Mar 17 05​:13​:40 2006]​:

[guest - Sun Mar 05 08​:00​:19 2006]​:

[tels - Sat Sep 27 12​:18​:00 2003]​:

-----BEGIN PGP SIGNED MESSAGE-----

This is a bug report for perl from perl_dummy@​bloodgate.com,
generated with the help of perlbug 1.34 running under perl v5.8.1.

Still segfaults with 5.8.6 and BigInt 1.77​:

linux​:~ # perl -d​:DProf segfault.pl Foo
Segmentation fault
linux​:~ # perl -v

This is perl, v5.8.6 built for i686-linux

Copyright 1987-2004, Larry Wall

linux​:~ # perl -MMath​::BigInt\ 99
Math​::BigInt version 99 required--this is only version 1.77.
BEGIN failed--compilation aborted.

With a recent bleadperl, things seem to be OK.

steve@​kirk​:~/perl-current$ ./perl -Ilib rt_24058.pl Foo
steve@​kirk​:~/perl-current$

Sorry, I need my first coffee, obviously.

steve@​kirk​:~/perl-current$ ./perl -Ilib -d​:DProf rt_24058.pl Foo
panic​: Devel​::DProf inconsistent subroutine return at rt_24058.pl line 3.
BEGIN failed--compilation aborted at rt_24058.pl line 3.
steve@​kirk​:~/perl-current$

DProf isn't shipped with Perl anymore, but for 5.14.2 I get​:
$ perl5.14.2 -d​:DProf -le 'use Math​::BigInt lib => "Foo"'
Math​::BigInt​: couldn't load specified math lib(s), fallback to
Math​::BigInt​::Calc at -e line 1

So this appears to have been solved; I vote to close.

@p5pRT
Copy link
Author

p5pRT commented Apr 30, 2012

@cpansprout - Status changed from 'open' to 'resolved'

@p5pRT p5pRT closed this as completed Apr 30, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant