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

blead perl segfault in Inline #6334

Closed
p5pRT opened this issue Feb 25, 2003 · 9 comments
Closed

blead perl segfault in Inline #6334

p5pRT opened this issue Feb 25, 2003 · 9 comments

Comments

@p5pRT
Copy link

p5pRT commented Feb 25, 2003

Migrated from rt.perl.org#21364 (status was 'rejected')

Searchable as RT21364$

@p5pRT
Copy link
Author

p5pRT commented Feb 25, 2003

From david.dyck@fluke.com

Created by david.dyck@fluke.com

I rebuild and installed Inline (Inline-0.44)
(had some problems getting make test to complete
but that's another story)

With an installed Inline and Inline​::C the
following code seg faults.

$ perl -MInline=_CONFIG_ -e1 /tmp/_Inline
Segmentation fault

GDB reports​:

dd​:Inline-0.44$ gdb /usr/local/bin/perl
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.14 (i486-slackware-linux),
Copyright 1995 Free Software Foundation, Inc...
(gdb) run -MInline=_CONFIG_ -e1 /tmp/_Inline
Starting program​: /usr/local/bin/perl -MInline=_CONFIG_ -e1 /tmp/_Inline

Program received signal SIGSEGV, Segmentation fault.
0x401772e4 in PerlIO_fd_refcnt ()
(gdb) where
#0 0x401772e4 in PerlIO_fd_refcnt ()
#1 0x40182cbc in PerlIO_fd_refcnt ()
#2 0x4017be22 in PerlIO_fd_refcnt ()
#3 0x4013a869 in PerlIO_fd_refcnt ()
#4 0x4012270d in PerlIO_fd_refcnt ()
#5 0x40122600 in PerlIO_fd_refcnt ()
#6 0x40122cf6 in PerlIO_fd_refcnt ()
#7 0x401211f8 in PerlIO_fd_refcnt ()
#8 0x40122a78 in PerlIO_fd_refcnt ()
#9 0x40121277 in PerlIO_fd_refcnt ()
#10 0x4011e5fe in PerlIO_fd_refcnt ()
#11 0x4012ee6b in PerlIO_fd_refcnt ()
#12 0x4012f31d in PerlIO_fd_refcnt ()
#13 0x4012fb5b in PerlIO_fd_refcnt ()
#14 0x40130667 in PerlIO_fd_refcnt ()
#15 0x40130286 in PerlIO_fd_refcnt ()
#16 0x4012ff45 in PerlIO_fd_refcnt ()
#17 0x40130060 in PerlIO_fd_refcnt ()
#18 0x40146515 in PerlIO_fd_refcnt ()
#19 0x4012270d in PerlIO_fd_refcnt ()
#20 0x40122600 in PerlIO_fd_refcnt ()
#21 0x401224ef in PerlIO_fd_refcnt ()
#22 0x4010359c in PerlIO_fd_refcnt ()
#23 0x40103639 in PerlIO_fd_refcnt ()
#24 0x40130962 in PerlIO_fd_refcnt ()
#25 0x4012fec2 in PerlIO_fd_refcnt ()
#26 0x4013405d in PerlIO_fd_refcnt ()
#27 0x40133d5c in PerlIO_fd_refcnt ()
#28 0x400fe9d5 in PerlIO_fd_refcnt ()
#29 0x400ff82f in PerlIO_fd_refcnt ()
#30 0x80bc023 in Perl_pp_entersub () at pp_hot.c​:2723
#31 0x80a675d in Perl_runops_debug () at dump.c​:1423
#32 0x80635b5 in S_call_body (myop=0xbffff248, is_eval=0) at perl.c​:1942
#33 0x8060283 in Perl_call_sv (sv=0x814b894, flags=6) at perl.c​:1860
#34 0x8063601 in S_call_list_body (cv=0x814b894) at perl.c​:4024
#35 0x8062819 in Perl_call_list (oldscope=1, paramList=0x814b948)
  at perl.c​:3953
#36 0x8090133 in Perl_newATTRSUB (floor=103, o=0x814e118, proto=0x0,
  attrs=0x0, block=0x814e038) at op.c​:4197
#37 0x808bf38 in Perl_utilize (aver=1, floor=103, version=0x0, id=0x81449f0,
  arg=0x8142598) at op.c​:2855
#38 0x8085aac in Perl_yyparse () at perly.y​:412
#39 0x805f960 in S_parse_body (env=0x0, xsinit=0x805ccfc <xs_init>)
  at perl.c​:1422
#40 0x805ee51 in perl_parse (my_perl=0x813e7a8, xsinit=0x805ccfc <xs_init>,
  argc=4, argv=0xbffff464, env=0x0) at perl.c​:929
#41 0x805ccc4 in main (argc=4, argv=0xbffff464, env=0xbffff478)
  at perlmain.c​:83
#42 0x805cbbe in ___crt_dummy__ ()

Perl Info

Flags:
    category=core
    severity=high

Site configuration information for perl v5.9.0:

Configured by dcd at Mon Feb 24 22:14:00 PST 2003.

Summary of my perl5 (revision 5.0 version 9 subversion 0 patch 18768) configuration:
  Platform:
    osname=linux, osvers=2.4.21-pre4, archname=i686-linux
    uname='linux dd 2.4.21-pre4 #1 wed jan 29 10:34:02 pst 2003 i686 '
    config_args='-Dmksymlinks -Dinstallusrbinperl -Uversiononly -Dusedevel -Doptimize=-O3 -g -de -Dcf_email=david.dyck@fluke.com'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=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 ='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O3 -g',
    cppflags='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='egcs-2.91.66.1 19990314/Linux (egcs-1.1.2 release)', 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=4
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lgdbm -ldbm -ldb -ldl -lm -lc
    perllibs=-ldl -lm -lc
    libc=/lib/libc.so.5.4.44, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'

Locally applied patches:
    DEVEL18374


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


Environment for perl v5.9.0:
    HOME=/home/dcd
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/dcd/bin:/sbin:/usr/local/bin:/bin:/usr/bin:/usr/X11/bin:/usr/games:/usr/local/samba:/home/hobbes/tools/scripts:/home/hobbes/tools/linux:/usr0/hobbes/tools/scripts:/usr0/dcd/bin:/apps/general/bin:/usr/public
    PERL_BADLANG (unset)
    SHELL=/bin/bash

@p5pRT
Copy link
Author

p5pRT commented Feb 26, 2003

From david.dyck@fluke.com

Created by david.dyck@fluke.com

I rebuild and installed Inline (Inline-0.44)
(had some problems getting make test to complete
but that's another story)

With an installed Inline and Inline​::C the
following code seg faults.

$ perl -MInline=_CONFIG_ -e1 /tmp/_Inline
Segmentation fault

GDB reports​:

dd​:Inline-0.44$ gdb /usr/local/bin/perl
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.14 (i486-slackware-linux),
Copyright 1995 Free Software Foundation, Inc...
(gdb) run -MInline=_CONFIG_ -e1 /tmp/_Inline
Starting program​: /usr/local/bin/perl -MInline=_CONFIG_ -e1 /tmp/_Inline

Program received signal SIGSEGV, Segmentation fault.
0x401772e4 in PerlIO_fd_refcnt ()
(gdb) where
#0 0x401772e4 in PerlIO_fd_refcnt ()
#1 0x40182cbc in PerlIO_fd_refcnt ()
#2 0x4017be22 in PerlIO_fd_refcnt ()
#3 0x4013a869 in PerlIO_fd_refcnt ()
#4 0x4012270d in PerlIO_fd_refcnt ()
#5 0x40122600 in PerlIO_fd_refcnt ()
#6 0x40122cf6 in PerlIO_fd_refcnt ()
#7 0x401211f8 in PerlIO_fd_refcnt ()
#8 0x40122a78 in PerlIO_fd_refcnt ()
#9 0x40121277 in PerlIO_fd_refcnt ()
#10 0x4011e5fe in PerlIO_fd_refcnt ()
#11 0x4012ee6b in PerlIO_fd_refcnt ()
#12 0x4012f31d in PerlIO_fd_refcnt ()
#13 0x4012fb5b in PerlIO_fd_refcnt ()
#14 0x40130667 in PerlIO_fd_refcnt ()
#15 0x40130286 in PerlIO_fd_refcnt ()
#16 0x4012ff45 in PerlIO_fd_refcnt ()
#17 0x40130060 in PerlIO_fd_refcnt ()
#18 0x40146515 in PerlIO_fd_refcnt ()
#19 0x4012270d in PerlIO_fd_refcnt ()
#20 0x40122600 in PerlIO_fd_refcnt ()
#21 0x401224ef in PerlIO_fd_refcnt ()
#22 0x4010359c in PerlIO_fd_refcnt ()
#23 0x40103639 in PerlIO_fd_refcnt ()
#24 0x40130962 in PerlIO_fd_refcnt ()
#25 0x4012fec2 in PerlIO_fd_refcnt ()
#26 0x4013405d in PerlIO_fd_refcnt ()
#27 0x40133d5c in PerlIO_fd_refcnt ()
#28 0x400fe9d5 in PerlIO_fd_refcnt ()
#29 0x400ff82f in PerlIO_fd_refcnt ()
#30 0x80bc023 in Perl_pp_entersub () at pp_hot.c​:2723
#31 0x80a675d in Perl_runops_debug () at dump.c​:1423
#32 0x80635b5 in S_call_body (myop=0xbffff248, is_eval=0) at perl.c​:1942
#33 0x8060283 in Perl_call_sv (sv=0x814b894, flags=6) at perl.c​:1860
#34 0x8063601 in S_call_list_body (cv=0x814b894) at perl.c​:4024
#35 0x8062819 in Perl_call_list (oldscope=1, paramList=0x814b948)
  at perl.c​:3953
#36 0x8090133 in Perl_newATTRSUB (floor=103, o=0x814e118, proto=0x0,
  attrs=0x0, block=0x814e038) at op.c​:4197
#37 0x808bf38 in Perl_utilize (aver=1, floor=103, version=0x0, id=0x81449f0,
  arg=0x8142598) at op.c​:2855
#38 0x8085aac in Perl_yyparse () at perly.y​:412
#39 0x805f960 in S_parse_body (env=0x0, xsinit=0x805ccfc <xs_init>)
  at perl.c​:1422
#40 0x805ee51 in perl_parse (my_perl=0x813e7a8, xsinit=0x805ccfc <xs_init>,
  argc=4, argv=0xbffff464, env=0x0) at perl.c​:929
#41 0x805ccc4 in main (argc=4, argv=0xbffff464, env=0xbffff478)
  at perlmain.c​:83
#42 0x805cbbe in ___crt_dummy__ ()

Perl Info

Flags:
    category=core
    severity=high

Site configuration information for perl v5.9.0:

Configured by dcd at Mon Feb 24 22:14:00 PST 2003.

Summary of my perl5 (revision 5.0 version 9 subversion 0 patch 18768) configuration:
  Platform:
    osname=linux, osvers=2.4.21-pre4, archname=i686-linux
    uname='linux dd 2.4.21-pre4 #1 wed jan 29 10:34:02 pst 2003 i686 '
    config_args='-Dmksymlinks -Dinstallusrbinperl -Uversiononly -Dusedevel -Doptimize=-O3 -g -de -Dcf_email=david.dyck@fluke.com'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=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 ='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O3 -g',
    cppflags='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='egcs-2.91.66.1 19990314/Linux (egcs-1.1.2 release)', 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=4
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lgdbm -ldbm -ldb -ldl -lm -lc
    perllibs=-ldl -lm -lc
    libc=/lib/libc.so.5.4.44, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'

Locally applied patches:
    DEVEL18374


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


Environment for perl v5.9.0:
    HOME=/home/dcd
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/dcd/bin:/sbin:/usr/local/bin:/bin:/usr/bin:/usr/X11/bin:/usr/games:/usr/local/samba:/home/hobbes/tools/scripts:/home/hobbes/tools/linux:/usr0/hobbes/tools/scripts:/usr0/dcd/bin:/apps/general/bin:/usr/public
    PERL_BADLANG (unset)
    SHELL=/bin/bash


@p5pRT
Copy link
Author

p5pRT commented Feb 28, 2003

From david.dyck@fluke.com

On Tue, 25 Feb 2003 at 21​:16 -0800, David Dyck <david.dyck@​fluke.com> wrote​:

I rebuild and installed Inline (Inline-0.44)
(had some problems getting make test to complete
but that's another story)

FYI​:
I have similar problems with make test in Inline​::C with 5.8.1 also

@p5pRT
Copy link
Author

p5pRT commented Apr 27, 2003

From @ask

[dcd - Thu Feb 27 20​:16​:09 2003]​:

On Tue, 25 Feb 2003 at 21​:16 -0800, David Dyck <david.dyck@​fluke.com> wrote​:

I rebuild and installed Inline (Inline-0.44)
(had some problems getting make test to complete
but that's another story)

FYI​:
I have similar problems with make test in Inline​::C with 5.8.1 also

Does this still happen with the latest bleadperl?

- ask

--
ask bjoern hansen, http​://askbjoernhansen.com/ !try; do();
Develooper LLC, http​://develooper.com/ $stuff->better;

@p5pRT
Copy link
Author

p5pRT commented Apr 27, 2003

@ask - Status changed from 'new' to 'stalled'

@p5pRT
Copy link
Author

p5pRT commented Apr 27, 2003

From david.dyck@fluke.com

On Sun, 27 Apr 2003 at 20​:28 -0000, Ask Bjoern Hansen <perlbug-followup@​per...​:

[dcd - Thu Feb 27 20​:16​:09 2003]​:

On Tue, 25 Feb 2003 at 21​:16 -0800, David Dyck <david.dyck@​fluke.com> wrote​:

I rebuild and installed Inline (Inline-0.44)
(had some problems getting make test to complete
but that's another story)

FYI​:
I have similar problems with make test in Inline​::C with 5.8.1 also

Does this still happen with the latest bleadperl?

I can't reproduce it with Inline-0.44
and a very recent bleadperl.

They did revert 5.8.1 a while ago to take out the patch that broke Inline
there. I think the problem wasn't really with Inline, but with Parse​::RecDescent

  David

Summary of my perl5 (revision 5.0 version 9 subversion 0 patch 19320) configuration​:
  Platform​:
  osname=linux, osvers=2.4.21-rc1, archname=i686-linux
  uname='linux dd 2.4.21-rc1 #1 mon apr 21 12​:23​:11 pdt 2003 i686 '
  config_args='-Dmksymlinks -Dinstallusrbinperl -Uversiononly -Dusedevel -Doptimize=-O3 -g -de -Dcf_email=david.dyck@​fluke.com'
  hint=recommended, useposix=true, d_sigaction=define
  usethreads=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 ='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
  optimize='-O3 -g',
  cppflags='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include'
  ccversion='', gccversion='egcs-2.91.66.1 19990314/Linux (egcs-1.1.2 release)', 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=4
  alignbytes=4, prototype=define
  Linker and Libraries​:
  ld='cc', ldflags =' -L/usr/local/lib'
  libpth=/usr/local/lib /lib /usr/lib
  libs=-lgdbm -ldbm -ldb -ldl -lm -lc
  perllibs=-ldl -lm -lc
  libc=/lib/libc.so.5.4.44, so=so, useshrplib=false, libperl=libperl.a
  gnulibc_version=''
  Dynamic Linking​:
  dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
  cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'

Characteristics of this binary (from libperl)​:
  Compile-time options​: DEBUGGING USE_LARGE_FILES
  Locally applied patches​:
  DEVEL18374
  Built under linux
  Compiled at Apr 23 2003 15​:34​:15
  @​INC​:
  /usr/local/lib/perl5/5.9.0/i686-linux
  /usr/local/lib/perl5/5.9.0
  /usr/local/lib/perl5/site_perl/5.9.0/i686-linux
  /usr/local/lib/perl5/site_perl/5.9.0
  /usr/local/lib/perl5/site_perl/5.8.0/i686-linux
  /usr/local/lib/perl5/site_perl/5.8.0
  /usr/local/lib/perl5/site_perl
  .

@p5pRT
Copy link
Author

p5pRT commented Mar 31, 2012

From @jkeenan

On Tue Feb 25 12​:28​:39 2003, dcd wrote​:

This is a bug report for perl from david.dyck@​fluke.com,
generated with the help of perlbug 1.34 running under perl v5.9.0.

I rebuild and installed Inline (Inline-0.44)
(had some problems getting make test to complete
but that's another story)

With an installed Inline and Inline​::C the
following code seg faults.

$ perl -MInline=_CONFIG_ -e1 /tmp/_Inline
Segmentation fault

GDB reports​:

[snip]

Can anyone test this with a recent Perl and Inline?

Thank you very much.
Jim Keenan

@p5pRT
Copy link
Author

p5pRT commented Mar 31, 2012

From @sisyphus

----- Original Message -----
From​: "James E Keenan via RT" <perlbug-followup@​perl.org>
To​: "OtherRecipients of perl Ticket #21364 :"
Cc​: <perl5-porters@​perl.org>
Sent​: Saturday, March 31, 2012 12​:19 PM
Subject​: [perl #21364] blead perl segfault in Inline

On Tue Feb 25 12​:28​:39 2003, dcd wrote​:

This is a bug report for perl from david.dyck@​fluke.com,
generated with the help of perlbug 1.34 running under perl v5.9.0.

I rebuild and installed Inline (Inline-0.44)
(had some problems getting make test to complete
but that's another story)

With an installed Inline and Inline​::C the
following code seg faults.

$ perl -MInline=_CONFIG_ -e1 /tmp/_Inline
Segmentation fault

GDB reports​:

[snip]

Can anyone test this with a recent Perl and Inline?

I can't reproduce the problem with 5.15.9 and 0.50. (I'm pretty sure I
wouldn't be able to reproduce it with *any* perl >= 5.6.0 and *any* version
of Inline >= 0.44.)

If the problem still exists for the OP, I think he should file a bug report
against Inline, not perl itself. (I don't know what the problem is, but I
doubt very much that it is a *perl* bug.)

Cheers,
Rob

@p5pRT
Copy link
Author

p5pRT commented Apr 5, 2012

@rjbs - Status changed from 'open' to 'rejected'

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