From wkb@freebie.demon.nl  Thu Oct 26 11:11:24 2000
Return-Path: <wkb@freebie.demon.nl>
Received: from post.mail.nl.demon.net (post-11.mail.nl.demon.net [194.159.73.21])
	by hub.freebsd.org (Postfix) with ESMTP id 8F0FB37B4C5
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 26 Oct 2000 11:11:23 -0700 (PDT)
Received: from [212.238.54.101] (helo=freebie.demon.nl)
	by post.mail.nl.demon.net with smtp (Exim 3.14 #4)
	id 13orUo-000Od4-00
	for FreeBSD-gnats-submit@freebsd.org; Thu, 26 Oct 2000 18:11:22 +0000
Received: (from wkb@localhost)
	by freebie.demon.nl (8.11.0/8.11.0) id e9QIEFK11864;
	Thu, 26 Oct 2000 20:14:15 +0200 (CEST)
	(envelope-from wkb)
Message-Id: <200010261814.e9QIEFK11864@freebie.demon.nl>
Date: Thu, 26 Oct 2000 20:14:15 +0200 (CEST)
From: wilko@freebsd.org
Sender: wkb@freebie.demon.nl
Reply-To: wilko@freebsd.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: tcpdump causes unaligned accesses
X-Send-Pr-Version: 3.2

>Number:         22314
>Category:       alpha
>Synopsis:       tcpdump causes unaligned accesses
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-alpha
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 26 11:20:01 PDT 2000
>Closed-Date:    Sun Nov 5 08:37:59 PST 2000
>Last-Modified:  Sun Nov 05 08:38:21 PST 2000
>Originator:     Wilko Bulte
>Release:        FreeBSD RELENG_4
>Organization:
Private FreeBSD site - The Netherlands
>Environment:

	RELENG_4 as of yesterday on alpha.

>Description:

	The tcpdump utility causes reports of unaligned accesses when
	run on alpha.

>How-To-Repeat:

	Run tcpdump

>Fix:

	Ignore the warnings as a workaround.

>Release-Note:
>Audit-Trail:

From: "Bulte, Wilko" <Wilko.Bulte@compaq.com>
To: "'freebsd-gnats-submit@FreeBSD.org'" <freebsd-gnats-submit@FreeBSD.org>,
	"'wilko@freebsd.org'" <wilko@freebsd.org>
Cc:  
Subject: Re: alpha/22314: tcpdump causes unaligned accesses
Date: Fri, 27 Oct 2000 10:37:51 +0100

 As requested more info. Note that it was 4.1R, not 4-stable as I noted =
 in
 the
 initial PR
 	Wilko
 ----------------
 
 Script started on Fri Oct 27 12:10:07 2000
 
 FreeBSD chuck.storage-lab 4.1-RELEASE FreeBSD 4.1-RELEASE #0: Thu Jul =
 27
 09:39:1
 2 GMT 2000     root@beta.osd.bsdi.com:/usr/src/sys/compile/GENERIC  =
 alpha
 
 bash-2.04# gdb /usr/sbin/tcpdump tcpdump.core
 GNU gdb 4.18
 Copyright 1998 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General Public License, and =
 you are
 welcome to change it and/or distribute copies of it under certain
 conditions.
 Type "show copying" to see the conditions.
 There is absolutely no warranty for GDB.  Type "show warranty" for =
 details.
 This GDB was configured as "alpha-unknown-freebsd"...
 Core was generated by `tcpdump'.
 Program terminated with signal 10, Bus error.
 Reading symbols from /usr/lib/libpcap.so.2...done.
 Reading symbols from /usr/lib/libcrypto.so.1...done.
 Reading symbols from /usr/lib/libc.so.4...done.
 Reading symbols from /usr/libexec/ld-elf.so.1...done.
 #0  0x120003fa8 in getname (ap=3D0x120016774 "\a")
     at
 /usr/src/usr.sbin/tcpdump/tcpdump/../../../contrib/tcpdump/addrtoname.c:=
 1
 92
 192             addr =3D *(const u_int32_t *)ap;
 (gdb) bt
 #0  0x120003fa8 in getname (ap=3D0x120016774 "\a")
     at
 /usr/src/usr.sbin/tcpdump/tcpdump/../../../contrib/tcpdump/addrtoname.c:=
 1
 92
 #1  0x120007fa8 in arp_print (bp=3D0x1201ba290 "", length=3D60, =
 caplen=3D0)
     at
 /usr/src/usr.sbin/tcpdump/tcpdump/../../../contrib/tcpdump/print-arp.c:1=
 0
 7
 #2  0x120016774 in ether_encap_print (ethertype=3D2054, p=3D0x1201ba290 =
 "",
 length=3D4
 6,
     caplen=3D46)
     at
 /usr/src/usr.sbin/tcpdump/tcpdump/../../../contrib/tcpdump/print-ether.c=
 :
 186
 #3  0x120016488 in ether_if_print (user=3D0x1201ba290 "", =
 h=3D0x2e0000002e,
     p=3D0x1201ba282 "=FF=FF=FF=FF=FF=FF")
     at
 /usr/src/usr.sbin/tcpdump/tcpdump/../../../contrib/tcpdump/print-ether.c=
 :
 142
 #4  0x1600bc884 in pcap_read () from /usr/lib/libpcap.so.2
 #5  0x1600bc358 in pcap_loop () from /usr/lib/libpcap.so.2
 #6  0x120003034 in main (argc=3D301972785, argv=3D0x11ffbd3c)
     at
 /usr/src/usr.sbin/tcpdump/tcpdump/../../../contrib/tcpdump/tcpdump.c:421=
 
 (gdb)
 #0  0x120003fa8 in getname (ap=3D0x120016774 "\a")
     at
 /usr/src/usr.sbin/tcpdump/tcpdump/../../../contrib/tcpdump/addrtoname.c:=
 1
 92
 #1  0x120007fa8 in arp_print (bp=3D0x1201ba290 "", length=3D60, =
 caplen=3D0)
     at
 /usr/src/usr.sbin/tcpdump/tcpdump/../../../contrib/tcpdump/print-arp.c:1=
 0
 7
 #2  0x120016774 in ether_encap_print (ethertype=3D2054, p=3D0x1201ba290 =
 "",
 length=3D4
 6,
     caplen=3D46)
     at
 /usr/src/usr.sbin/tcpdump/tcpdump/../../../contrib/tcpdump/print-ether.c=
 :
 186
 #3  0x120016488 in ether_if_print (user=3D0x1201ba290 "", =
 h=3D0x2e0000002e,
     p=3D0x1201ba282 "=FF=FF=FF=FF=FF=FF")
     at
 /usr/src/usr.sbin/tcpdump/tcpdump/../../../contrib/tcpdump/print-ether.c=
 :
 142
 #4  0x1600bc884 in pcap_read () from /usr/lib/libpcap.so.2
 #5  0x1600bc358 in pcap_loop () from /usr/lib/libpcap.so.2
 #6  0x120003034 in main (argc=3D301972785, argv=3D0x11ffbd3c)
     at
 /usr/src/usr.sbin/tcpdump/tcpdump/../../../contrib/tcpdump/tcpdump.c:421=
 
 (gdb) bash-2.04# exit
 
 Script done on Fri Oct 27 12:10:32 2000
 
State-Changed-From-To: open->closed 
State-Changed-By: wilko 
State-Changed-When: Sun Nov 5 08:37:59 PST 2000 
State-Changed-Why:  
Closing PR per the following commit: 

fenner      2000/11/04 16:23:11 PST 

Modified files:        (Branch: RELENG_4) 
usr.sbin/tcpdump/tcpdump config.h 
Log: 
Nasty hack to handle tcpdump alignment issues on Alpha. 
This is being committed directly to RELENG_4 as a bandaid 
for 4.2 and a better solution will be created soon. 

PR:           alpha/22314 
Submitted by: gallatin 
Approved by:  jkh 

Revision  Changes    Path 
1.1.2.1   +7 -1      src/usr.sbin/tcpdump/tcpdump/config.h 



http://www.freebsd.org/cgi/query-pr.cgi?pr=22314 
>Unformatted:
