Bug#301390: marked as done (libjavascript-perl: Simple class binding causes SIGSEGV)

Debian Bug Tracking System owner at bugs.debian.org
Wed Dec 21 19:03:18 UTC 2005


Your message dated Wed, 21 Dec 2005 10:47:11 -0800
with message-id <E1Ep8zX-0006vI-Il at spohr.debian.org>
and subject line Bug#301390: fixed in libjavascript-perl 0.55-2
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 25 Mar 2005 15:25:15 +0000
>From dmitry at dmitryhome.tsu.tula.ru Fri Mar 25 07:25:15 2005
Return-path: <dmitry at dmitryhome.tsu.tula.ru>
Received: from mail.tsu.tula.ru [62.76.49.79] (Debian-exim)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DEqgU-0006X2-00; Fri, 25 Mar 2005 07:25:15 -0800
Received: from dmitryhome.tsu.tula.ru
	([62.76.48.12] helo=ip6-localhost ident=mail)
	by mail.tsu.tula.ru with esmtp (Exim 4.34)
	id 1DEqgU-0003mq-7Q
	for submit at bugs.debian.org; Fri, 25 Mar 2005 18:25:14 +0300
Received: from dmitry by ip6-localhost with local (Exim 3.36 #1 (Debian))
	id 1DEqgR-0002tQ-00
	for <submit at bugs.debian.org>; Fri, 25 Mar 2005 18:25:11 +0300
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Dmitry Panov <dmitry at tula.ru>
To: Debian Bug Tracking System <submit at bugs.debian.org>
Subject: libjavascript-perl: Simple class binding causes SIGSEGV
X-Mailer: reportbug 3.8
Date: Fri, 25 Mar 2005 18:25:11 +0300
Message-Id: <E1DEqgR-0002tQ-00 at ip6-localhost>
Sender: Dmitry Panov <dmitry at dmitryhome.tsu.tula.ru>
Delivered-To: submit at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Package: libjavascript-perl
Version: 0.52-4
Severity: grave
Tags: experimental
Justification: renders package unusable

I tried to simulate 'document.write()', so I wrote a simple package Document.pm:
-- cut --
package Document;

sub new {
  my $self = {};
  bless $self;
  return $self;
}

sub write {
  my $self = $_[0];
  my $text = $_[1];
  $self->{buffer} .= $text;
}

1;
-- cut --

and a script:
-- cut --
#!/usr/bin/perl

use JavaScript;
use Document;

my $runtime = new JavaScript::Runtime;
my $context = $runtime->create_context();

$context->bind_class(
  name => 'Document',
  constructor => \&Document::new,
  methods => {
    write => \&Document::write
  },
  package => 'Document'
);

$context->eval('var document = new Document()');

-- cut --

Executing the script gives SIGSEGV. gdb where shows the following:

(gdb) where
#0  0x402feef5 in JS_GetClass () from /usr/lib/libsmjs.so.1
#1  0x4001be5c in ?? () from /usr/lib/perl5/auto/JavaScript/JavaScript.so
#2  0x0820a048 in ?? ()
#3  0x08214570 in ?? ()
#4  0x081f7f60 in ?? ()
#5  0x00000000 in ?? ()
#6  0x6a1e3e9c in ?? ()
#7  0x0814e298 in ?? ()
#8  0xbfffeb50 in ?? ()
#9  0x4036c298 in ?? () from /usr/lib/libsmjs.so.1
#10 0x081a92a8 in ?? ()
#11 0x08214908 in ?? ()
#12 0xbfffec28 in ?? ()
#13 0x40326de6 in js_Invoke () from /usr/lib/libsmjs.so.1
#14 0x40326de6 in js_Invoke () from /usr/lib/libsmjs.so.1
#15 0x4032b3fc in js_Interpret () from /usr/lib/libsmjs.so.1
#16 0x403274ac in js_Execute () from /usr/lib/libsmjs.so.1
#17 0x403028c4 in JS_EvaluateUCScriptForPrincipals ()
   from /usr/lib/libsmjs.so.1
#18 0x4030281f in JS_EvaluateUCScript () from /usr/lib/libsmjs.so.1
#19 0x4030270a in JS_EvaluateScript () from /usr/lib/libsmjs.so.1
#20 0x4001fbaa in XS_JavaScript__Context_EvaluateScriptImpl ()
   from /usr/lib/perl5/auto/JavaScript/JavaScript.so
#21 0x080c32d6 in Perl_pp_entersub ()
#22 0x080bbdc9 in Perl_runops_standard ()
#23 0x080635e8 in perl_run ()
#24 0x080633f5 in perl_run ()
#25 0x0805fb9f in main ()


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.25
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R)

Versions of packages libjavascript-perl depends on:
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  libsmjs1                    1.5rc6a-1    The Mozilla SpiderMonkey JavaScrip
ii  perl                        5.8.4-8      Larry Wall's Practical Extraction 
ii  perl-base [perlapi-5.8.4]   5.8.4-8      The Pathologically Eclectic Rubbis

-- no debconf information

---------------------------------------
Received: (at 301390-close) by bugs.debian.org; 21 Dec 2005 18:50:54 +0000
>From katie at ftp-master.debian.org Wed Dec 21 10:50:53 2005
Return-path: <katie at ftp-master.debian.org>
Received: from katie by spohr.debian.org with local (Exim 4.50)
	id 1Ep8zX-0006vI-Il; Wed, 21 Dec 2005 10:47:11 -0800
From: Niko Tyni <ntyni at iki.fi>
To: 301390-close at bugs.debian.org
X-Katie: $Revision: 1.65 $
Subject: Bug#301390: fixed in libjavascript-perl 0.55-2
Message-Id: <E1Ep8zX-0006vI-Il at spohr.debian.org>
Sender: Archive Administrator <katie at ftp-master.debian.org>
Date: Wed, 21 Dec 2005 10:47:11 -0800
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02

Source: libjavascript-perl
Source-Version: 0.55-2

We believe that the bug you reported is fixed in the latest version of
libjavascript-perl, which is due to be installed in the Debian FTP archive:

libjavascript-perl_0.55-2.diff.gz
  to pool/main/libj/libjavascript-perl/libjavascript-perl_0.55-2.diff.gz
libjavascript-perl_0.55-2.dsc
  to pool/main/libj/libjavascript-perl/libjavascript-perl_0.55-2.dsc
libjavascript-perl_0.55-2_i386.deb
  to pool/main/libj/libjavascript-perl/libjavascript-perl_0.55-2_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 301390 at bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Niko Tyni <ntyni at iki.fi> (supplier of updated libjavascript-perl package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster at debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Wed, 21 Dec 2005 14:37:24 +0200
Source: libjavascript-perl
Binary: libjavascript-perl
Architecture: source i386
Version: 0.55-2
Distribution: unstable
Urgency: low
Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
Changed-By: Niko Tyni <ntyni at iki.fi>
Description: 
 libjavascript-perl - Perl extension for executing embedded JavaScript
Closes: 301390
Changes: 
 libjavascript-perl (0.55-2) unstable; urgency=low
 .
   * Build with JS_THREADSAFE=1. (Closes: #301390)
   * Don't ignore the return value of 'make realclean'.
   * Don't ignore the return value of 'make test'.
   * Add myself to Uploaders.
Files: 
 6168411a037a25fe0f78373aea3c6849 819 perl optional libjavascript-perl_0.55-2.dsc
 3f295ac6a9f365ec2838b7bc0413a400 2375 perl optional libjavascript-perl_0.55-2.diff.gz
 1e650f00ca06fa148eb3e92b2f1b22b3 29178 perl optional libjavascript-perl_0.55-2_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDqZ9Z2A7zWou1J68RAmHPAJ99V30eUEUy/Bmw7McAWyMOP10MXgCeMLff
tPjZxzb5uXvTJeKY2DXEuHY=
=mt8D
-----END PGP SIGNATURE-----




More information about the pkg-perl-maintainers mailing list