tcl8.4: tclsh SEGVs on hppa

Bug #24489 reported by Debian Bug Importer
4
Affects Status Importance Assigned to Milestone
tcl8.4 (Debian)
Fix Released
Unknown
tcl8.4 (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

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

Revision history for this message
In , Chris Waters (xtifr) wrote : Re: Bug#334898: tcl8.4: tclcurl FTBFS because tclsh SEGVs on hppa

tags 334898 + help
thanks

On Thu, Oct 20, 2005 at 05:33:26PM +0200, Domenico Andreoli wrote:
> it looks like tclsh8.4 chokes on the
> following 1liner script:

> pkg_mkIndex . libTclCurl0.14.1.so tclcurl.tcl \; exit;

Well, pkg_mkIndex actually attempts to load and initialize the
package, so it's not clear at this point if the problem is in tcl or
in the initialization code of tclcurl. I think we may need to call in
an hppa expert here.

--
Chris Waters | Pneumonoultra- osis is too long
<email address hidden> | microscopicsilico- to fit into a single
or <email address hidden> | volcaniconi- standalone haiku

Revision history for this message
In , Nathanael Nerode (neroden-twcny) wrote : More tclsh segfaults on hppa.

A very similar bug, possibly the same one, appears to be biting the postinst
of gpsmanship, causing it to fail to install. From the build log for xastir
(http://buildd.debian.org/fetch.php?&pkg=xastir&ver=1.6.0-2&arch=hppa&stamp=1129791638&file=log&as=raw)
we see:

Setting up gpsmanshp (1.2-2) ...
/var/lib/dpkg/info/gpsmanshp.postinst: line 5: 3480 Done
ec$
      3481 Segmentation fault | tclsh$TCLVERSION 2>&1 >/dev/null
dpkg: error processing gpsmanshp (--configure):
 subprocess post-installation script returned error exit status 139

It's also possible that this segfaulting is due to a kernel misconfiguration
on the hppa buildd, as the recently-solved Qt FTBFS was. Ask on the hppa
list.

--
Nathanael Nerode <email address hidden>

"(Instead, we front-load the flamewars and grudges in
the interest of efficiency.)" --Steve Lanagasek,
http://lists.debian.org/debian-devel/2005/09/msg01056.html

Revision history for this message
In , Steve Langasek (vorlon) wrote : Re: tcl8.4: tclcurl FTBFS because tclsh SEGVs on hppa

severity 334898 grave
retitle 334898 tcl8.4: tclsh SEGVs on hppa
thanks

Definitely not a tclcurl bug.

vorlon@paer:~$ tclsh8.4
Segmentation fault
vorlon@paer:~$ gdb tclsh8.4
[...]
(gdb) run
[...]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 18784)]
0x4038ebb8 in Tcl_UtfToExternal () from /usr/lib/libtcl8.4.so.0
(gdb) bt
#0 0x4038ebb8 in Tcl_UtfToExternal () from /usr/lib/libtcl8.4.so.0
#1 0x4038df78 in Tcl_ExternalToUtf () from /usr/lib/libtcl8.4.so.0
#2 0x403a7d60 in Tcl_ReadRaw () from /usr/lib/libtcl8.4.so.0
#3 0x403a8cc8 in Tcl_ChannelName () from /usr/lib/libtcl8.4.so.0
#4 0x403b848c in Tcl_FSEvalFile () from /usr/lib/libtcl8.4.so.0
#5 0x403683a0 in TclEvalObjvInternal () from /usr/lib/libtcl8.4.so.0
#6 0x4036aeac in Tcl_EvalObjv () from /usr/lib/libtcl8.4.so.0
#7 0x4036b25c in Tcl_EvalObjEx () from /usr/lib/libtcl8.4.so.0
#8 0x403d0cec in Tcl_UplevelObjCmd () from /usr/lib/libtcl8.4.so.0
#9 0x403683a0 in TclEvalObjvInternal () from /usr/lib/libtcl8.4.so.0
#10 0x40395548 in TclExprFloatError () from /usr/lib/libtcl8.4.so.0
#11 0x4039b068 in TclCompEvalObj () from /usr/lib/libtcl8.4.so.0
#12 0x403d164c in TclObjInterpProc () from /usr/lib/libtcl8.4.so.0
#13 0x403683a0 in TclEvalObjvInternal () from /usr/lib/libtcl8.4.so.0
#14 0x4036a2a4 in Tcl_EvalEx () from /usr/lib/libtcl8.4.so.0
#15 0x4036a81c in Tcl_Eval () from /usr/lib/libtcl8.4.so.0
#16 0x00010800 in Tcl_AppInit ()
#17 0x403bf708 in Tcl_Main () from /usr/lib/libtcl8.4.so.0
#18 0x000107d4 in main ()
(gdb)

This is also definitely not a kernel config error. paer's kernel throws
SIGBUSes on unaligned memory access, it doesn't randomly throw segfaults.

--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
<email address hidden> http://www.debian.org/

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

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

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

Message-ID: <email address hidden>
Date: Thu, 20 Oct 2005 17:33:26 +0200
From: Domenico Andreoli <email address hidden>
To: <email address hidden>
Subject: tcl8.4: tclcurl FTBFS because tclsh SEGVs on hppa

Package: tcl8.4
Version: 8.4.11-1
Severity: important

hi,

  please have a look at the build log on hppa of the latest upload
of tclcurl 0.14.1-1 package [0]. it looks like tclsh8.4 chokes on the
following 1liner script:

  pkg_mkIndex . libTclCurl0.14.1.so tclcurl.tcl \; exit;

regards
domenico

[0] http://buildd.debian.org/fetch.php?&pkg=tclcurl&ver=0.14.1-1&arch=hppa&stamp=1129725920&file=log&as=raw

-----[ Domenico Andreoli, aka cavok
 --[ http://people.debian.org/~cavok/gpgkey.asc
   ---[ 3A0F 2F80 F79C 678A 8936 4FEE 0677 9033 A20E BC50

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

Message-ID: <email address hidden>
Date: Thu, 20 Oct 2005 14:51:15 -0700
From: Chris Waters <email address hidden>
To: Domenico Andreoli <email address hidden>, <email address hidden>
Subject: Re: Bug#334898: tcl8.4: tclcurl FTBFS because tclsh SEGVs on hppa

tags 334898 + help
thanks

On Thu, Oct 20, 2005 at 05:33:26PM +0200, Domenico Andreoli wrote:
> it looks like tclsh8.4 chokes on the
> following 1liner script:

> pkg_mkIndex . libTclCurl0.14.1.so tclcurl.tcl \; exit;

Well, pkg_mkIndex actually attempts to load and initialize the
package, so it's not clear at this point if the problem is in tcl or
in the initialization code of tclcurl. I think we may need to call in
an hppa expert here.

--
Chris Waters | Pneumonoultra- osis is too long
<email address hidden> | microscopicsilico- to fit into a single
or <email address hidden> | volcaniconi- standalone haiku

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

Message-Id: <email address hidden>
Date: Sun, 23 Oct 2005 00:52:21 -0400
From: Nathanael Nerode <email address hidden>
To: <email address hidden>
Subject: More tclsh segfaults on hppa.

A very similar bug, possibly the same one, appears to be biting the postinst
of gpsmanship, causing it to fail to install. From the build log for xastir
(http://buildd.debian.org/fetch.php?&pkg=xastir&ver=1.6.0-2&arch=hppa&stamp=1129791638&file=log&as=raw)
we see:

Setting up gpsmanshp (1.2-2) ...
/var/lib/dpkg/info/gpsmanshp.postinst: line 5: 3480 Done
ec$
      3481 Segmentation fault | tclsh$TCLVERSION 2>&1 >/dev/null
dpkg: error processing gpsmanshp (--configure):
 subprocess post-installation script returned error exit status 139

It's also possible that this segfaulting is due to a kernel misconfiguration
on the hppa buildd, as the recently-solved Qt FTBFS was. Ask on the hppa
list.

--
Nathanael Nerode <email address hidden>

"(Instead, we front-load the flamewars and grudges in
the interest of efficiency.)" --Steve Lanagasek,
http://lists.debian.org/debian-devel/2005/09/msg01056.html

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

Message-ID: <email address hidden>
Date: Sun, 23 Oct 2005 05:43:54 -0700
From: Steve Langasek <email address hidden>
To: <email address hidden>
Subject: Re: tcl8.4: tclcurl FTBFS because tclsh SEGVs on hppa

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

severity 334898 grave
retitle 334898 tcl8.4: tclsh SEGVs on hppa
thanks

Definitely not a tclcurl bug.

vorlon@paer:~$ tclsh8.4=20
Segmentation fault
vorlon@paer:~$ gdb tclsh8.4=20
[...]
(gdb) run
[...]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 18784)]
0x4038ebb8 in Tcl_UtfToExternal () from /usr/lib/libtcl8.4.so.0
(gdb) bt
#0 0x4038ebb8 in Tcl_UtfToExternal () from /usr/lib/libtcl8.4.so.0
#1 0x4038df78 in Tcl_ExternalToUtf () from /usr/lib/libtcl8.4.so.0
#2 0x403a7d60 in Tcl_ReadRaw () from /usr/lib/libtcl8.4.so.0
#3 0x403a8cc8 in Tcl_ChannelName () from /usr/lib/libtcl8.4.so.0
#4 0x403b848c in Tcl_FSEvalFile () from /usr/lib/libtcl8.4.so.0
#5 0x403683a0 in TclEvalObjvInternal () from /usr/lib/libtcl8.4.so.0
#6 0x4036aeac in Tcl_EvalObjv () from /usr/lib/libtcl8.4.so.0
#7 0x4036b25c in Tcl_EvalObjEx () from /usr/lib/libtcl8.4.so.0
#8 0x403d0cec in Tcl_UplevelObjCmd () from /usr/lib/libtcl8.4.so.0
#9 0x403683a0 in TclEvalObjvInternal () from /usr/lib/libtcl8.4.so.0
#10 0x40395548 in TclExprFloatError () from /usr/lib/libtcl8.4.so.0
#11 0x4039b068 in TclCompEvalObj () from /usr/lib/libtcl8.4.so.0
#12 0x403d164c in TclObjInterpProc () from /usr/lib/libtcl8.4.so.0
#13 0x403683a0 in TclEvalObjvInternal () from /usr/lib/libtcl8.4.so.0
#14 0x4036a2a4 in Tcl_EvalEx () from /usr/lib/libtcl8.4.so.0
#15 0x4036a81c in Tcl_Eval () from /usr/lib/libtcl8.4.so.0
#16 0x00010800 in Tcl_AppInit ()
#17 0x403bf708 in Tcl_Main () from /usr/lib/libtcl8.4.so.0
#18 0x000107d4 in main ()
(gdb)=20

This is also definitely not a kernel config error. paer's kernel throws
SIGBUSes on unaligned memory access, it doesn't randomly throw segfaults.

--=20
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
<email address hidden> http://www.debian.org/

--MfFXiAuoTsnnDAfZ
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)

iD8DBQFDW4WKKN6ufymYLloRAutFAKC+DQ0lOrMVpRUtCwwEg8mShM1E+QCfRsn5
z6euBj7Yskwb9NNJQaMAsmo=
=lquK
-----END PGP SIGNATURE-----

--MfFXiAuoTsnnDAfZ--

Revision history for this message
Matt Zimmerman (mdz) wrote :

Only affects hppa, downgrading

Revision history for this message
In , Steinar H. Gunderson (sesse) wrote :

On Sun, Oct 23, 2005 at 05:43:54AM -0700, Steve Langasek wrote:
> vorlon@paer:~$ tclsh8.4
> Segmentation fault

sesse@paer:~$ tclsh8.4
%

IOW, this was fixed in tcl8.4, either by way of fixes upstream (8.4.12-1), or
recompilation with different toolchain (8.4.12-1 or 8.4.11-1.1); the latter
seems a bit odd, though, given that 8.4.11-1 was also compiled using gcc
4.0.1, but for some reason pulls in gcc-3.3-base.

Also note that tclcurl has built on hppa several times since this, including
the very same version (and the only reasonable changes I can see are 2.4 vs.
2.6 kernels and newer binutils). I'm closing this one.

/* Steinar */
--
Homepage: http://www.sesse.net/

Changed in tcl8.4:
status: Confirmed → Fix Released
Revision history for this message
Wouter Stomp (wouterstomp-deactivatedaccount) wrote :

According to the debian bus report, this is fixed now.

Changed in tcl8.4:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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