wml: segmentation fault in pass 3

Bug #22036 reported by Debian Bug Importer
10
Affects Status Importance Assigned to Milestone
eperl (Debian)
Fix Released
Unknown
eperl (Ubuntu)
Fix Released
High
Matthias Klose

Bug Description

Revision history for this message
In , Jochen Voß (seehuhn) wrote : Bug#328789: problem occurs on ppc but not on i386

Hello,

I just found out the wml on i386 processes the file in question
just fine. I can see the problem only on my powerpc system.

I hope this helps,
Jochen
--
http://seehuhn.de/

Revision history for this message
In , Jochen Voß (seehuhn) wrote : reassign bug #328789

reassign 328789 eperl
thanks

Revision history for this message
In , Jochen Voß (seehuhn) wrote : Bug#328789: segfault vanishes after recompilation

Hello,

recompiling eperl fixed the segfault for me.
The file from my original email processes fine, now.
Maybe the problem is related to one of the many
transitions in unstable?

I hope this helps,
Jochen
--
http://seehuhn.de/

Revision history for this message
In , Denis Barbier (barbier) wrote :

On Sat, Sep 17, 2005 at 05:20:30PM +0100, Jochen Voss wrote:
> Hello,
>
> recompiling eperl fixed the segfault for me.
> The file from my original email processes fine, now.
> Maybe the problem is related to one of the many
> transitions in unstable?

Hi Jochen,

as eperl has not been uploaded recently, it looks like this breakage
came from Perl upgrade; unfortunately it does not happen on i386,
as you noticed. I could make a new upload to fix this bug, but
I prefer to find the reason of this breakage. For this, I need
an eperl binary not stripped (and with debugging symbols) compiled
on a sarge box. I will then run it on unstable dchroots of a
powerpc Debian machine.
I could not find a suitable machine with libperl-dev from stable,
can you please provide such an eperl binary?

FYI, here is a simpler test case:
  <:
  use POSIX qw(strftime);
  print strftime "%d.%m.%Y", localtime;
  :>

Thanks

Denis

Revision history for this message
In , Denis Barbier (barbier) wrote : Merge bugs

severity 328789 grave
merge 328789 329068

Revision history for this message
In , Denis Barbier (barbier) wrote : Re: Processed: Merge bugs

reassign 329068 eperl
merge 328789 329068

Revision history for this message
In , Denis Barbier (barbier) wrote : Problem on powerpc with eperl and libperl5.8 (5.8.7-5)

Hi,

eperl has been broken by the latest Perl upload (5.8.7-5), it now
segfaults on powerpc when loading binary modules:
  $ cat tst1
  <: use POSIX; :>
  $ cat tst2
  <: use Test; :>
  $ eperl tst1
  Segmentation fault
  $ eperl tst2

  $ ldd eperl
          libperl.so.5.8 => /usr/lib/libperl.so.5.8 (0x0fea2000)
          ...

Basically, eperl runs a Perl interpreter for everything enclosed in
<: ... :> and prints verbatim other parts of text.

According to #328789, recompiling eperl fixes this crash, but I would
like to know why it is broken to make sure that it gets really fixed.
It worked previously:
  $ dpkg-deb -x perl-base_5.8.7-4_powerpc.deb FOO
  $ LD_LIBRARY_PATH=`pwd`/FOO/usr/lib eperl tst1

  $
But if I recompile perl-base_5.8.7-4_powerpc.deb on a sid box with the
current toolchain, it segfaults:
  $ dpkg-deb -x perl-base_5.8.7-4_powerpc.deb NEW
  $ LD_LIBRARY_PATH=`pwd`/NEW/usr/lib eperl tst1
  Segmentation fault
  $

I do not know what to do next, any help is welcome.

Denis

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Automatically imported from Debian bug report #328789 http://bugs.debian.org/328789

Revision history for this message
Debian Bug Importer (debzilla) wrote :
Download full text (5.1 KiB)

Message-Id: <email address hidden>
Date: Sat, 17 Sep 2005 14:45:05 +0100
From: Jochen Voss <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: wml: segmentation fault in pass 3

--===============0498128736==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: wml
Version: 2.0.8-11
Severity: normal

Hello,

since I did an "aptitude upgrade" today, wml dies with an segmentation
fault when processing the wml files for my web pages. I append a small
example to this mail. When processing this file, I get the following
error message:

    voss@quiche [~/seehuhn.de/mathe] wml err.wml
    sh: line 1: 27698 Segmentation fault /usr/lib/wml/exec/wml_p3_eperl "-dWML_TMPDIR=/tmp/wml.d8VgWu" "-dWML_VERSION=2.0.8 (30-Oct-2001)" "-dWML_LOC_MANDIR=/usr/share/man" "-dWML_LOC_DATADIR=/usr/share/wml" "-dWML_LOC_LIBDIR=/usr/lib/wml" "-dWML_LOC_BINDIR=/usr/bin" "-dWML_LOC_PREFIX=/usr" "-dWML_GEN_HOSTNAME=quiche" "-dWML_GEN_REALNAME=Jochen Voss" "-dWML_GEN_USERNAME=voss" "-dWML_GEN_GMT_ISOTIME=2005-09-17 13:39:43" "-dWML_GEN_GMT_CTIME=Sat Sep 17 13:39:43 2005" "-dWML_GEN_ISOTIME=2005-09-17 14:39:43" "-dWML_GEN_CTIME=Sat Sep 17 14:39:43 2005" "-dWML_GEN_TIME=1126964383" "-dWML_SRC_REALNAME=Jochen Voss" "-dWML_SRC_USERNAME=voss" "-dWML_SRC_GMT_ISOTIME=2005-09-17 13:39:40" "-dWML_SRC_GMT_CTIME=Sat Sep 17 13:39:40 2005" "-dWML_SRC_ISOTIME=2005-09-17 14:39:40" "-dWML_SRC_CTIME=Sat Sep 17 14:39:40 2005" "-dWML_SRC_TIME=1126964380" "-dWML_SRC_BASENAME=err" "-dWML_SRC_FILENAME=err.wml" "-dWML_SRC_DIRNAME=/home/voss/seehuhn.de/mathe" "-dROOT=.." -P -k -B '<:' -E ':>' /tmp/wm
 l.d8VgWu/wml.27686.tmp1.wml >/tmp/wml.d8VgWu/wml.27686.tmp2.wml
    ** WML:Break: Error in Pass 3 (rc=139).

I hope this helps,
Jochen

PS.: please let me know if you need any further information. (I will
be traveling until 24 September and might not have email access during
this time.)

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: powerpc (ppc)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12.3
Locale: LANG=en_GB.iso885915, LC_CTYPE=en_GB.iso885915 (charmap=ISO-8859-15)

Versions of packages wml depends on:
ii eperl 2.2.14-12 Embedded Perl 5 Language
ii iselect 1.2.0-12 An interactive line selection tool
ii libbit-vector-perl 6.4-4 Perl and C library for bit vectors
ii libc6 2.3.5-6 GNU C Library: Shared libraries an
ii libimage-size-perl 2.992-2 determine the size of images in se
ii libterm-readkey-perl 2.30-2 A perl module for simple terminal
ii m4 1.4.3-2 a macro processing language
ii mp4h 1.3.1-2 Macro processor for HTML documents
ii perl 5.8.7-5 Larry Wall's Practical Extraction
ii perl-base [perlapi-5.8.4] 5.8.7-5 The Pathologically Eclectic Rubbis
ii slice 1.3.8-6 Extract out pre-defined slices of

Versions of packages wm...

Read more...

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Sat, 17 Sep 2005 16:56:07 +0100
From: Jochen Voss <email address hidden>
To: <email address hidden>
Subject: Bug#328789: problem occurs on ppc but not on i386

--OXfL5xGRrasGEqWY
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello,

I just found out the wml on i386 processes the file in question
just fine. I can see the problem only on my powerpc system.

I hope this helps,
Jochen
--=20
http://seehuhn.de/

--OXfL5xGRrasGEqWY
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

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

iD8DBQFDLDyXf+iD8yEbECURAjI9AKDS5NqY3eLIlq6y0jCTAqEPh0mvSwCeKyEY
MOMsl4MzRvd5K3E1aaQbpvs=
=CsBv
-----END PGP SIGNATURE-----

--OXfL5xGRrasGEqWY--

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Sat, 17 Sep 2005 17:20:30 +0100
From: Jochen Voss <email address hidden>
To: <email address hidden>
Subject: Bug#328789: segfault vanishes after recompilation

--0OAP2g/MAC+5xKAE
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello,

recompiling eperl fixed the segfault for me.
The file from my original email processes fine, now.
Maybe the problem is related to one of the many
transitions in unstable?

I hope this helps,
Jochen
--=20
http://seehuhn.de/

--0OAP2g/MAC+5xKAE
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

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

iD8DBQFDLEJNf+iD8yEbECURAuGFAJwN/IfNZMdkRvh5CONrkbUNtrF/nwCeLAFZ
JAIC+/bEIgWxeUn4Zx0cA4w=
=3I3+
-----END PGP SIGNATURE-----

--0OAP2g/MAC+5xKAE--

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Sat, 17 Sep 2005 17:17:29 +0100
From: Jochen Voss <email address hidden>
To: <email address hidden>
Subject: reassign bug #328789

reassign 328789 eperl
thanks

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Sat, 17 Sep 2005 22:07:30 +0200
From: Denis Barbier <email address hidden>
To: Jochen Voss <email address hidden>, <email address hidden>
Subject: Re: Bug#328789: segfault vanishes after recompilation

On Sat, Sep 17, 2005 at 05:20:30PM +0100, Jochen Voss wrote:
> Hello,
>
> recompiling eperl fixed the segfault for me.
> The file from my original email processes fine, now.
> Maybe the problem is related to one of the many
> transitions in unstable?

Hi Jochen,

as eperl has not been uploaded recently, it looks like this breakage
came from Perl upgrade; unfortunately it does not happen on i386,
as you noticed. I could make a new upload to fix this bug, but
I prefer to find the reason of this breakage. For this, I need
an eperl binary not stripped (and with debugging symbols) compiled
on a sarge box. I will then run it on unstable dchroots of a
powerpc Debian machine.
I could not find a suitable machine with libperl-dev from stable,
can you please provide such an eperl binary?

FYI, here is a simpler test case:
  <:
  use POSIX qw(strftime);
  print strftime "%d.%m.%Y", localtime;
  :>

Thanks

Denis

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Mon, 19 Sep 2005 19:10:34 +0200
From: Denis Barbier <email address hidden>
To: <email address hidden>
Subject: Merge bugs

severity 328789 grave
merge 328789 329068

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Mon, 19 Sep 2005 22:39:57 +0200
From: Denis Barbier <email address hidden>
To: <email address hidden>, <email address hidden>,
 <email address hidden>
Subject: Problem on powerpc with eperl and libperl5.8 (5.8.7-5)

Hi,

eperl has been broken by the latest Perl upload (5.8.7-5), it now
segfaults on powerpc when loading binary modules:
  $ cat tst1
  <: use POSIX; :>
  $ cat tst2
  <: use Test; :>
  $ eperl tst1
  Segmentation fault
  $ eperl tst2

  $ ldd eperl
          libperl.so.5.8 => /usr/lib/libperl.so.5.8 (0x0fea2000)
          ...

Basically, eperl runs a Perl interpreter for everything enclosed in
<: ... :> and prints verbatim other parts of text.

According to #328789, recompiling eperl fixes this crash, but I would
like to know why it is broken to make sure that it gets really fixed.
It worked previously:
  $ dpkg-deb -x perl-base_5.8.7-4_powerpc.deb FOO
  $ LD_LIBRARY_PATH=`pwd`/FOO/usr/lib eperl tst1

  $
But if I recompile perl-base_5.8.7-4_powerpc.deb on a sid box with the
current toolchain, it segfaults:
  $ dpkg-deb -x perl-base_5.8.7-4_powerpc.deb NEW
  $ LD_LIBRARY_PATH=`pwd`/NEW/usr/lib eperl tst1
  Segmentation fault
  $

I do not know what to do next, any help is welcome.

Denis

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Mon, 19 Sep 2005 22:20:32 +0200
From: Denis Barbier <email address hidden>
To: <email address hidden>
Subject: Re: Processed: Merge bugs

reassign 329068 eperl
merge 328789 329068

Revision history for this message
Debian Bug Importer (debzilla) wrote :

*** Bug 22041 has been marked as a duplicate of this bug. ***

Revision history for this message
Tollef Fog Heen (tfheen) wrote :

This appears to be a toolchain bug (and thanks to Adam Conrad for analysis and convincing me), so reassigning to Matthias Klose.

Revision history for this message
Adam Conrad (adconrad) wrote :

Rationale for the reassignment to toolchain:

1: Old libperl and old eperl work.
2: New libperl and old eperl segv.
3: Recompiling old libperl causes old eperl to segv.

Looks like the toolchain is forcing an ABI change in libperl, despite there
being no code changes. Ick.

Revision history for this message
In , Matthias Klose (doko-cs) wrote :

Recompiling perl and eperl did fix the segfault problem for me on
powerpc (I think the perl version in unstable doesn't need the
recompilation really).

  Matthias

Revision history for this message
Matthias Klose (doko) wrote :

rebuilt perl and eperl with the current compiler versions, the example works
well on powerpc

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Wed, 21 Sep 2005 21:48:41 +0200
From: Matthias Klose <email address hidden>
To: <email address hidden>, <email address hidden>,
        <email address hidden>
Subject: Re: wml: segmentation fault in pass 3

Recompiling perl and eperl did fix the segfault problem for me on
powerpc (I think the perl version in unstable doesn't need the
recompilation really).

  Matthias

Revision history for this message
In , Denis Barbier (barbier) wrote : Re: Bug#328789: Problem on powerpc with eperl and libperl5.8 (5.8.7-5)

Version: 2.2.14-13

On Mon, Sep 19, 2005 at 10:39:57PM +0200, Denis Barbier wrote:
> Hi,
>
> eperl has been broken by the latest Perl upload (5.8.7-5), it now
> segfaults on powerpc when loading binary modules:
[...]

I did not receive help from powerpc folks, so I am unable to investigate
this issue and am closing this bug, eperl 2.2.14-13 works fine on powerpc.
Thanks for your report.

Denis

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Fri, 30 Sep 2005 21:24:28 +0200
From: Denis Barbier <email address hidden>
To: <email address hidden>
Subject: Re: Bug#328789: Problem on powerpc with eperl and libperl5.8 (5.8.7-5)

Version: 2.2.14-13

On Mon, Sep 19, 2005 at 10:39:57PM +0200, Denis Barbier wrote:
> Hi,
>
> eperl has been broken by the latest Perl upload (5.8.7-5), it now
> segfaults on powerpc when loading binary modules:
[...]

I did not receive help from powerpc folks, so I am unable to investigate
this issue and am closing this bug, eperl 2.2.14-13 works fine on powerpc.
Thanks for your report.

Denis

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.