NetBSD Problem Report #21326

Received: (qmail 10106 invoked by uid 605); 26 Apr 2003 05:47:49 -0000
Message-Id: <20030426054742.3FF7711154@narn.netbsd.org>
Date: Sat, 26 Apr 2003 05:47:42 +0000 (UTC)
From: netbsd@davidkrause.com
Sender: gnats-bugs-owner@netbsd.org
Reply-To: netbsd@davidkrause.com
To: gnats-bugs@gnats.netbsd.org
Subject: dsniff dumps core on hpcmips
X-Send-Pr-Version: www-1.0

>Number:         21326
>Category:       port-hpcmips
>Synopsis:       dsniff dumps core on hpcmips
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-hpcmips-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 26 05:48:00 +0000 2003
>Closed-Date:    
>Last-Modified:  Thu May 08 19:59:03 +0000 2003
>Originator:     David Krause
>Release:        NetBSD 1.6.1
>Organization:
>Environment:
NetBSD bean.davidkrause.com 1.6.1 NetBSD 1.6.1 (GENERIC) #0: Tue Apr  8 08:06:53 UTC 2003     autobuild@tgm.daemon.org:/autobuild/netbsd-1-6/hpcmips/OBJ/autobuild/netbsd-1-6/src/sys/arch/hpcmips/compile/GENERIC hpcmips

>Description:
dsniff dumps core on hpcmips

bean# pkg_info | grep dsniff
dsniff-2.3          password sniffer

reproducible on 1.6.1 and -current

>How-To-Repeat:
bean# dsniff -n
dsniff: listening on wi0
Segmentation fault (core dumped)

also happens on ne0

bean# gdb -q /usr/pkg/sbin/dsniff dsniff.core
(no debugging symbols found)...Core was generated by `dsniff'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/libexec/ld.elf_so...done.
Loaded symbols for /usr/libexec/ld.elf_so
Reading symbols from /usr/lib/libresolv.so.1...done.
Loaded symbols for /usr/lib/libresolv.so.1
Reading symbols from /usr/lib/libpcap.so.1...done.
Loaded symbols for /usr/lib/libpcap.so.1
Reading symbols from /usr/pkg/lib/libnet.so.1...done.
Loaded symbols for /usr/pkg/lib/libnet.so.1
Reading symbols from /usr/lib/libssl.so.2...done.
Loaded symbols for /usr/lib/libssl.so.2
Reading symbols from /usr/lib/libcrypto.so.1...done.
Loaded symbols for /usr/lib/libcrypto.so.1
Reading symbols from /usr/lib/libc.so.12...done.
Loaded symbols for /usr/lib/libc.so.12
#0  0x416234 in mkhash ()
(gdb) bt
#0  0x416234 in mkhash ()
#1  0x413d14 in detect_scan ()
warning: Warning: GDB can't find the start of the function at 0x19d20016.

    GDB is unable to find the start of the function at 0x19d20016
and thus can't determine the size of that function's stack frame.
This means that GDB may be unable to access that stack frame, or
the frames below it.
    This problem is most likely caused by an invalid program counter or
stack pointer.
    However, if you think GDB should simply search farther back
from 0x19d20016 for code which looks like the beginning of a
function, you can increase the range of the search using the `set
heuristic-fence-post' command.

>Fix:
unknown
>Release-Note:
>Audit-Trail:

From: David Krause <netbsd@davidkrause.com>
To: gnats-bugs@netbsd.org
Cc:  
Subject: Re: port-hpcmips/21326: dsniff dumps core on hpcmips
Date: Thu, 8 May 2003 12:12:06 -0500

 Here is a better stack trace from an unstripped debug binary:

 #0  0x416254 in mkhash ()
 #1  0x413d34 in mk_hash_index ()
 #2  0x414fe4 in find_stream ()
 #3  0x415394 in process_tcp ()
 #4  0x412938 in gen_ip_proc ()
 #5  0x4126d0 in gen_ip_frag_proc ()
 #6  0x4123dc in pcap_hand ()
 #7  0x30067788 in pcap_read () from /usr/lib/libpcap.so.1
 #8  0x3006804c in pcap_loop () from /usr/lib/libpcap.so.1
 #9  0x413114 in nids_run ()
 #10 0x40ac08 in main (argc=0, argv=0x7fffec28) at ./dsniff.c:172

 David
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.