NetBSD Problem Report #55907

From martin@duskware.de  Mon Jan  4 16:55:18 2021
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id E9DD41A9217
	for <gnats-bugs@gnats.NetBSD.org>; Mon,  4 Jan 2021 16:55:17 +0000 (UTC)
Date: Mon, 04 Jan 2021 17:55:14 CET
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: dhcpcd dumps core
X-Send-Pr-Version: 3.95

>Number:         55907
>Category:       bin
>Synopsis:       dhcpcd dumps core
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 04 17:00:01 +0000 2021
>Last-Modified:  Sun Jul 25 03:25:01 +0000 2021
>Originator:     Martin Husemann
>Release:        NetBSD 9.99.77
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD supremacy.duskware.de 9.99.77 NetBSD 9.99.77 (OCTEON) #2: Sun Jan 3 14:18:28 CET 2021 martin@seven-days-to-the-wolves.aprisoft.de:/work/src/sys/arch/evbmips/compile/OCTEON evbmips
Architecture: mips64eb
Machine: evbmips
>Description:

Running "dhcpcd -6" on my ERLITE3 (mips64 with 32bit userland) crashes.
Unfortunately gdb is not very helpfull:

(gdb) run -6
Starting program: /sbin/dhcpcd -6

Program received signal SIGSEGV, Segmentation fault.
0x785f9f20 in ?? (warning: GDB can't find the start of the function at 0x785f9f20.


>How-To-Repeat:
s/a

>Fix:
n/a

>Audit-Trail:
From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: bin/55907: dhcpcd dumps core
Date: Sun, 25 Jul 2021 03:21:43 +0000

 On Mon, Jan 04, 2021 at 05:00:01PM +0000, martin@NetBSD.org wrote:
  > Running "dhcpcd -6" on my ERLITE3 (mips64 with 32bit userland) crashes.
  > Unfortunately gdb is not very helpfull:
  > 
  > (gdb) run -6
  > Starting program: /sbin/dhcpcd -6
  > 
  > Program received signal SIGSEGV, Segmentation fault.
  > 0x785f9f20 in ?? (warning: GDB can't find the start of the function at 0x785f9f20.

 It's highly unlikely there's anything there in any mips binary, so
 it's most likely jumped through an uninitialized pointer.

 probably the best approach is to binary-search where it crashes :-/

 0x785f9f20 becomes a valid instruction if byte-swapped but that
 doesn't seem like a likely source of the bad value...

 -- 
 David A. Holland
 dholland@netbsd.org

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.