NetBSD Problem Report #52323

From john@stgeorge.klos.com  Thu Jun 22 19:25:34 2017
Return-Path: <john@stgeorge.klos.com>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 13EBA7A1B9
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 22 Jun 2017 19:25:34 +0000 (UTC)
Message-Id: <201706221816.v5MIGkhs003667@stgeorge.klos.com>
Date: Thu, 22 Jun 2017 18:16:46 GMT
From: john@ziaspace.com
Reply-To: john@ziaspace.com
To: gnats-bugs@NetBSD.org
Subject: net/mtr broken on NetBSD
X-Send-Pr-Version: 3.95

>Number:         52323
>Category:       pkg
>Synopsis:       net/mtr is broken on NetBSD
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    wiz
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 22 19:30:00 +0000 2017
>Closed-Date:    Mon Jun 26 14:43:34 +0000 2017
>Last-Modified:  Tue Jun 27 12:35:00 +0000 2017
>Originator:     John Klos
>Release:        NetBSD 7.0_STABLE
>Organization:

>Environment:


System: NetBSD stgeorge.klos.com 7.0_STABLE NetBSD 7.0_STABLE (STGEORGE) #0: Fri Jan 6 07:35:58 UTC 2017 john*stgeorge.klos.com:/usr/obj-amd64/sys/arch/amd64/compile/STGEORGE amd64
Architecture: x86_64
Machine: amd64
>Description:

When net/mtr is updated to version 0.92, mtr no longer works:
stgeorge: {4} mtr google.com
mtr: mtr should not run suid
stgeorge: {5} su
stgeorge: {1} mtr google.com
mtr: Failure to start mtr-packet: Invalid argument
>How-To-Repeat:

Install net/mtr version 0.92 from pkgsrc.
>Fix:


>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->wiz
Responsible-Changed-By: maya@NetBSD.org
Responsible-Changed-When: Thu, 22 Jun 2017 22:06:55 +0000
Responsible-Changed-Why:
Over to updater


From: coypu@sdf.org
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/52323 (net/mtr is broken on NetBSD)
Date: Fri, 23 Jun 2017 14:50:06 +0000

 if I go to the mtr work directory, run mtr -4 as root, it then works.
 for -6 it gets:

   1549      1 mtr-packet __socket30(0x2, 0x1, 0x84) Err#43 EPROTONOSUPPORT
  10889      1 mtr      connect                     Err#65 EHOSTUNREACH

State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Mon, 26 Jun 2017 14:43:34 +0000
State-Changed-Why:
Downgraded the package to 0.87 again.


From: "Thomas Klausner" <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/52323 CVS commit: pkgsrc/net/mtr
Date: Mon, 26 Jun 2017 14:41:37 +0000

 Module Name:	pkgsrc
 Committed By:	wiz
 Date:		Mon Jun 26 14:41:37 UTC 2017

 Modified Files:
 	pkgsrc/net/mtr: Makefile distinfo
 Added Files:
 	pkgsrc/net/mtr/patches: patch-asn.c patch-net.c patch-net.h

 Log Message:
 Revert upgrade to 0.92 due to mtr not working.

 See PR pkg/52323.


 To generate a diff of this commit:
 cvs rdiff -u -r1.99 -r1.100 pkgsrc/net/mtr/Makefile
 cvs rdiff -u -r1.47 -r1.48 pkgsrc/net/mtr/distinfo
 cvs rdiff -u -r0 -r1.7 pkgsrc/net/mtr/patches/patch-asn.c
 cvs rdiff -u -r0 -r1.3 pkgsrc/net/mtr/patches/patch-net.c
 cvs rdiff -u -r0 -r1.4 pkgsrc/net/mtr/patches/patch-net.h

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc: 
Subject: Re: pkg/52323: net/mtr broken on NetBSD
Date: Mon, 26 Jun 2017 16:46:47 +0200

 Reported upstream at
 https://github.com/traviscross/mtr/issues/205

From: coypu@sdf.org
To: gnats-bugs@NetBSD.org
Cc: wiz@netbsd.org
Subject: Re: pkg/52323 (net/mtr is broken on NetBSD)
Date: Mon, 26 Jun 2017 16:22:47 +0000

 Hi wiz,

 part of the problem is that youa re not installing mtr-packet at all.
 It should be installed and probably setuid root. It will then work.

 additionally mtr has a problem its fallback in a case where host
 resolves ipv6 and ipv4 but ipv6 connections fail, it will not fall back
 to ipv4 but error out.

 I had trouble understanding what is wrong with the build system that it
 is not being installed.

From: Thomas Klausner <wiz@netbsd.org>
To: coypu@sdf.org
Cc: gnats-bugs@NetBSD.org
Subject: Re: pkg/52323 (net/mtr is broken on NetBSD)
Date: Tue, 27 Jun 2017 14:27:30 +0200

 On Mon, Jun 26, 2017 at 04:22:47PM +0000, coypu@sdf.org wrote:
 > part of the problem is that youa re not installing mtr-packet at all.
 > It should be installed and probably setuid root. It will then work.

 Thank you, that did indeed fix the problem.

 > additionally mtr has a problem its fallback in a case where host
 > resolves ipv6 and ipv4 but ipv6 connections fail, it will not fall back
 > to ipv4 but error out.

 I've filed an upstream bug report for that.

 > I had trouble understanding what is wrong with the build system that it
 > is not being installed.

 That's easy to answer: for (to me) unknown reasons, the package had a
 manual installation rule.
  Thomas

>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-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.