Your message dated Wed, 06 Jan 2010 19:35:52 +0200
with message-id <[email protected]>
and subject line closing #248784
has caused the Debian Bug report #248784,
regarding perl: segfault with references and parameter array
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
248784: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=248784
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: perl
Version: 5.8.4-2
Severity: normal

The following script reliably segfaults perl in the pop expression:

  sub foo {
      print STDERR "\...@_ = (",join(",",@_),")\n" ;
      $arrayref = 0 ;
      print STDERR "\...@_ = (",join(",",@_),")\n" ;
      $_[0]->[0] ;
      print STDERR "\...@_ = (",join(",",@_),")\n" ;
      pop @_ ;
      print STDERR "I survived!" ;
  }
  $arrayref = [ 17 , [19] , 21 ] ;
  foo @{$arrayref} ;

Sample output:

$ perl perlbug.pl
@_ = (17,ARRAY(0x814cbb8),21)
@_ = (,,)
@_ = (ARRAY(0x814cad4),ARRAY(0x814cad4),)
Segmentation fault
$ 

I do not enclose a stack trace as the cause of the problem evidently
lies earlier: The assignment to $arrayref in the subroutine somehow
influences @_ in a way that the interpreter is not prepared for.

The bug also appears in perl 5.6.1-8.7 from woody.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.18
Locale: LANG=en_GB, LC_CTYPE=en_GB.iso88591

Versions of packages perl depends on:
ii  libc6                       2.3.2.ds1-12 GNU C Library: Shared libraries an
ii  libdb4.2                    4.2.52-16    Berkeley v4.2 Database Libraries [
ii  libgdbm3                    1.8.3-2      GNU dbm database routines (runtime
ii  perl-base                   5.8.4-2      The Pathologically Eclectic Rubbis
ii  perl-modules                5.8.4-2      Core Perl modules.

-- no debconf information


--- End Message ---
--- Begin Message ---
Version: 5.10.1-1

No info from bug submitter, works in Perl 5.10.1. Closed this bug.

Re-open if you object.

-- 
Eugene V. Lyubimkin aka JackYF, JID: jackyf.devel(maildog)gmail.com
C++/Perl developer, Debian Developer

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---

Reply via email to