[PATCH] traceroute bus error on sparc

Bug #20572 reported by Debian Bug Importer
4
Affects Status Importance Assigned to Milestone
traceroute (Debian)
Fix Released
Unknown
traceroute (Ubuntu)
Invalid
High
Unassigned

Bug Description

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

Revision history for this message
In , Vincent McIntyre (vince-mcintyre) wrote : confirm

I can confirm this bug exists, and that Brendan's patch fixes it
for the sparc platform at least.

Package: traceroute
Version: 1.4a12-19

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: sparc (sparc64)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.4.27-2-sparc64
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages traceroute depends on:
ii libc6 2.3.2.ds1-22 GNU C Library: Shared
libraries an

traceroute recommends no packages.

-- no debconf information

Revision history for this message
In , Clint Adams (clint) wrote : traceroute sparc bus error

severity 320120 grave
quit

Revision history for this message
In , Graham Wilson (graham-mknod) wrote : Re: Bug#320120: [PATCH] traceroute bus error on sparc

On Wed, Jul 27, 2005 at 03:53:30PM +1000, Brendan O'Dea wrote:
> Package: traceroute
> Version: 1.4a12-19
>
> $ traceroute www.debian.org
> traceroute to www.debian.org (194.109.137.218), 30 hops max, 38 byte packets
> Bus error
>
> The fault occurs in send_probe, at:
>
> memcpy(&outdata->tv, tp, sizeof(outdata->tv));
>
> seems to be an alignment problem; removing __attribute__((packed)) from
> the tv element of outdata fixes the problem.

Sorry for the delay; I plan to upload the fixed version tonight.

--
gram

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

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

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

Message-ID: <email address hidden>
Date: Wed, 27 Jul 2005 15:53:30 +1000
From: Brendan O'Dea <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: [PATCH] traceroute bus error on sparc

Package: traceroute
Version: 1.4a12-19

  $ traceroute www.debian.org
  traceroute to www.debian.org (194.109.137.218), 30 hops max, 38 byte packets
  Bus error

The fault occurs in send_probe, at:

    memcpy(&outdata->tv, tp, sizeof(outdata->tv));

seems to be an alignment problem; removing __attribute__((packed)) from
the tv element of outdata fixes the problem.

--bod

diff -Naur traceroute-1.4a12.debian/traceroute.c traceroute-1.4a12/traceroute.c
--- traceroute-1.4a12.debian/traceroute.c 2005-07-27 15:49:41.000000000 +1000
+++ traceroute-1.4a12/traceroute.c 2005-07-27 15:50:28.000000000 +1000
@@ -271,7 +271,7 @@
 struct outdata {
  u_char seq; /* sequence number of this packet */
  u_char ttl; /* ttl packet left with */
- struct timeval tv __attribute__((packed)); /* time packet left */
+ struct timeval tv; /* time packet left */
 };

 #ifndef HAVE_ICMP_NEXTMTU

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

Message-ID: <email address hidden>
Date: Sat, 13 Aug 2005 13:02:56 +1000 (EST)
From: Vincent McIntyre <email address hidden>
To: <email address hidden>
Subject: confirm

I can confirm this bug exists, and that Brendan's patch fixes it
for the sparc platform at least.

Package: traceroute
Version: 1.4a12-19

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: sparc (sparc64)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.4.27-2-sparc64
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages traceroute depends on:
ii libc6 2.3.2.ds1-22 GNU C Library: Shared
libraries an

traceroute recommends no packages.

-- no debconf information

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

Message-ID: <email address hidden>
Date: Mon, 29 Aug 2005 21:26:02 -0400
From: Clint Adams <email address hidden>
To: <email address hidden>
Subject: traceroute sparc bus error

severity 320120 grave
quit

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

Message-ID: <email address hidden>
Date: Mon, 29 Aug 2005 20:43:51 -0500
From: Graham Wilson <email address hidden>
To: Brendan O'Dea <email address hidden>, <email address hidden>
Subject: Re: Bug#320120: [PATCH] traceroute bus error on sparc

On Wed, Jul 27, 2005 at 03:53:30PM +1000, Brendan O'Dea wrote:
> Package: traceroute
> Version: 1.4a12-19
>
> $ traceroute www.debian.org
> traceroute to www.debian.org (194.109.137.218), 30 hops max, 38 byte packets
> Bus error
>
> The fault occurs in send_probe, at:
>
> memcpy(&outdata->tv, tp, sizeof(outdata->tv));
>
> seems to be an alignment problem; removing __attribute__((packed)) from
> the tv element of outdata fixes the problem.

Sorry for the delay; I plan to upload the fixed version tonight.

--
gram

Revision history for this message
Michael Vogt (mvo) wrote :

Closed because sparc is not a supported arch (at all). And traceroute works fine
on the unoffical sparc64 port (fabbio confirmed that).

Revision history for this message
In , Graham Wilson (graham-mknod) wrote : tagging 320120

tags 320120 + pending

Revision history for this message
In , Graham Wilson (graham) wrote : Bug#320120: fixed in traceroute 1.4a12-20

Source: traceroute
Source-Version: 1.4a12-20

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

traceroute_1.4a12-20.diff.gz
  to pool/main/t/traceroute/traceroute_1.4a12-20.diff.gz
traceroute_1.4a12-20.dsc
  to pool/main/t/traceroute/traceroute_1.4a12-20.dsc
traceroute_1.4a12-20_powerpc.deb
  to pool/main/t/traceroute/traceroute_1.4a12-20_powerpc.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 <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Graham Wilson <email address hidden> (supplier of updated traceroute 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 <email address hidden>)

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

Format: 1.7
Date: Tue, 30 Aug 2005 15:19:55 +0000
Source: traceroute
Binary: traceroute
Architecture: source powerpc
Version: 1.4a12-20
Distribution: unstable
Urgency: medium
Maintainer: Graham Wilson <email address hidden>
Changed-By: Graham Wilson <email address hidden>
Description:
 traceroute - traces the route taken by packets over a TCP/IP network
Closes: 320120
Changes:
 traceroute (1.4a12-20) unstable; urgency=medium
 .
   * Apply a patch to prevent bus errors on Sparc. (closes: #320120)
Files:
 92ea5121a13e727ecfdb101dfaa0565a 868 net important traceroute_1.4a12-20.dsc
 515cf05ac8c074dcb12e6a3ae3c773d4 82586 net important traceroute_1.4a12-20.diff.gz
 3aa1152eeccf0242adb5fb212498ee42 23246 net important traceroute_1.4a12-20_powerpc.deb

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

iQEVAwUBQxSKri6fnYH5E4SWAQJsmAf+KWEfx5hejmcaSHXJqZdWDH901SyI3egv
cTTXY0WfZlLfXFEByYscFlch8V5e1WUeFwGxolQTr1JRNXMpwrrAjeTr0C2Uls3o
9srhbNO88a3LN23haDHCIaqqW7yqQEZMA+XgrjF5/noxYwV43JMenWL4tvGtWkU8
gnr1hT2NTZYwQyifrySfHCfZu5U6is8uB6FBqYLS3G03JaKzEBIfitO2BnEkSLwI
CeJsUGvgPDwAVwBADnXrrLn3KpbZW/Card06EY9DagCkniyU1nzvjfYhH3e2oMGZ
FHMaNi3aMYCwYAwfTWgzR7adbhAZbUDnTJb/5ZvxK3RvEmysZgyYZA==
=YlwE
-----END PGP SIGNATURE-----

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

Message-Id: <email address hidden>
Date: Tue, 30 Aug 2005 11:36:47 -0500 (CDT)
From: <email address hidden> (Graham Wilson)
To: <email address hidden>
Subject: tagging 320120

tags 320120 + pending

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

Message-Id: <email address hidden>
Date: Tue, 30 Aug 2005 09:47:05 -0700
From: Graham Wilson <email address hidden>
To: <email address hidden>
Subject: Bug#320120: fixed in traceroute 1.4a12-20

Source: traceroute
Source-Version: 1.4a12-20

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

traceroute_1.4a12-20.diff.gz
  to pool/main/t/traceroute/traceroute_1.4a12-20.diff.gz
traceroute_1.4a12-20.dsc
  to pool/main/t/traceroute/traceroute_1.4a12-20.dsc
traceroute_1.4a12-20_powerpc.deb
  to pool/main/t/traceroute/traceroute_1.4a12-20_powerpc.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 <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Graham Wilson <email address hidden> (supplier of updated traceroute 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 <email address hidden>)

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

Format: 1.7
Date: Tue, 30 Aug 2005 15:19:55 +0000
Source: traceroute
Binary: traceroute
Architecture: source powerpc
Version: 1.4a12-20
Distribution: unstable
Urgency: medium
Maintainer: Graham Wilson <email address hidden>
Changed-By: Graham Wilson <email address hidden>
Description:
 traceroute - traces the route taken by packets over a TCP/IP network
Closes: 320120
Changes:
 traceroute (1.4a12-20) unstable; urgency=medium
 .
   * Apply a patch to prevent bus errors on Sparc. (closes: #320120)
Files:
 92ea5121a13e727ecfdb101dfaa0565a 868 net important traceroute_1.4a12-20.dsc
 515cf05ac8c074dcb12e6a3ae3c773d4 82586 net important traceroute_1.4a12-20.diff.gz
 3aa1152eeccf0242adb5fb212498ee42 23246 net important traceroute_1.4a12-20_powerpc.deb

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

iQEVAwUBQxSKri6fnYH5E4SWAQJsmAf+KWEfx5hejmcaSHXJqZdWDH901SyI3egv
cTTXY0WfZlLfXFEByYscFlch8V5e1WUeFwGxolQTr1JRNXMpwrrAjeTr0C2Uls3o
9srhbNO88a3LN23haDHCIaqqW7yqQEZMA+XgrjF5/noxYwV43JMenWL4tvGtWkU8
gnr1hT2NTZYwQyifrySfHCfZu5U6is8uB6FBqYLS3G03JaKzEBIfitO2BnEkSLwI
CeJsUGvgPDwAVwBADnXrrLn3KpbZW/Card06EY9DagCkniyU1nzvjfYhH3e2oMGZ
FHMaNi3aMYCwYAwfTWgzR7adbhAZbUDnTJb/5ZvxK3RvEmysZgyYZA==
=YlwE
-----END PGP SIGNATURE-----

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.