From nobody Fri Jul 5 11:25:19 2024 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WFrlz5bDbz5P61K for ; Fri, 05 Jul 2024 11:25:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WFrlz3jbYz539Y for ; Fri, 5 Jul 2024 11:25:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1720178719; a=rsa-sha256; cv=none; b=VJgpTQTbXtsfAO2DMrfSvsyTPFv9QHvAZ13DkOBL6tUnOD5s3U+pKJJ6lzkyYf1km61Mbs efQPL8PdihoYYsF/cr3boa/lLmiKo1asQ8w96kmIrDxNgYxRy6VJyllR/sVoKkTDNl9ss4 0DIhiPuLMlSMAPbePGlzg6dKANgehHPqcPqFTGwzAWB8VdFiozG7x5AcW5SZ495v/a+ctG g52JfnFoETpOSJH3AH/CtTkxsSwdammwuQIPzA0tikKOoqZtIps6Wi3/SFSsThfNnJVKZb WMKR72Y4zxMr/fFBRX2ZtnovFDh/wNukNuc0AB4+PeV9DSaojiGvjQ9XJBM70w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720178719; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xLfdLmjfxZ5GftIsGIYbC+QmjSsYfCbXatJvhbBQvqA=; b=gDaMngiqF/cuzBeSChjj5dW/eZL7dZHa3NmOFSAFLzRv6ayKL5l4UT1IGrekHOibdIUBa0 JnMsqQ5bYJy/tgaOadR9IZemGaNTcZYfShUVMy8tTr6A6hi/RLthZYkONJBa9wOkdXLonA z8WfwsEWjwZPlOjwzrtjQm5Aumav9/1aCMFlTSQCYTrJooWXORSpCvBbUO8s2h9Jf2dudI vJiG7vtKfBEkbaT7YVaUpT4EpO2vGTq9xS0+FHaGoE/Uo7k28NNln7YJmmU2wIk/rAVeAf iQeH2cSTgyj67KnAVPXxd7zQjjbpOCe9uyXFAeX6ZMc2dtVP3HRRmsin6Wb7oA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WFrlz3CFwzvJl for ; Fri, 5 Jul 2024 11:25:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 465BPJEo060581 for ; Fri, 5 Jul 2024 11:25:19 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 465BPJhS060580 for ports-bugs@FreeBSD.org; Fri, 5 Jul 2024 11:25:19 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 280141] net/net-snmp: Tries to bind twice Date: Fri, 05 Jul 2024 11:25:19 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: freebsd-ports@charlieroot.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports-bugs@freebsd.org Sender: owner-freebsd-ports-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280141 Bug ID: 280141 Summary: net/net-snmp: Tries to bind twice Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: freebsd-ports@charlieroot.de I just upgraded from 13.2 to 14.1 using freebsd-update. Start of net-snmpd fails: 58220 snmpd RET getsockopt 0 58220 snmpd CALL bind(0x8,0x820833524,0x10) 58220 snmpd STRU struct sockaddr { AF_INET, 192.168.124.35:161 } 58220 snmpd RET bind 0 58220 snmpd CALL socket(PF_INET,0x2,IPPROTO_IP) 58220 snmpd RET socket 9 58220 snmpd CALL=20 getsockopt(0x9,SOL_SOCKET,SO_SNDBUF,0x820833388,0x820833384) 58220 snmpd RET getsockopt 0 58220 snmpd CALL=20 getsockopt(0x9,SOL_SOCKET,SO_RCVBUF,0x8208333a8,0x8208333a4) 58220 snmpd RET getsockopt 0 58220 snmpd CALL bind(0x9,0x820833524,0x10) 58220 snmpd STRU struct sockaddr { AF_INET, 192.168.124.35:161 } 58220 snmpd RET bind -1 errno 48 Address already in use 58220 snmpd CALL close(0x9) 58220 snmpd RET close 0 58220 snmpd CALL write(0x3,0x2d4ec227800,0x3a) 58220 snmpd GIO fd 3 wrote 58 bytes "Error opening specified endpoint "udp:192.168.124.35:161" " 58220 snmpd RET write 58/0x3a 58220 snmpd CALL write(0x3,0x2d4ec227800,0x1b) 58220 snmpd GIO fd 3 wrote 27 bytes "Server Exiting with code 1 " It tries to bind twice. When I uncomment agentaddress udp:192.168.124.35:161 from /usr/local/etc/snmp/snmpd.conf it starts fine. [helmut@BSDHelmut ~]$ sudo kdump -f /tmp/snmpd_ktrace.out 2>&1 | grep "stru= ct sockaddr" 66920 snmpd STRU struct sockaddr { AF_INET, 0.0.0.0:161 } 66920 snmpd STRU struct sockaddr { AF_INET, 0.0.0.0:199 } [helmut@BSDHelmut ~]$ [helmut@BSDHelmut ~]$ cat /usr/local/etc/snmp/snmpd.conf #agentaddress udp:192.168.124.35:161 rocommunity public 127.0.0.1 rocommunity public 10.0.124.129 rocommunity public 192.168.124.35 [helmut@BSDHelmut ~]$ [helmut@BSDHelmut ~]$ ps auxww | grep snmp snmpd 11549 0.0 0.1 34648 21588 - S 13:16 0:00.04 /usr/local/sbin/snmpd -p /var/run/net_snmpd.pid -u snmpd -g snmpd -c /usr/local/etc/snmp/snmpd.conf [helmut@BSDHelmut ~]$ Changing agentaddress to udp:12345 26689 snmpd CALL bind(0x8,0x82085f7a4,0x10) 26689 snmpd STRU struct sockaddr { AF_INET, 0.0.0.0:12345 } 26689 snmpd RET bind 0 26689 snmpd CALL socket(PF_INET,0x2,IPPROTO_IP) 26689 snmpd RET socket 9 26689 snmpd CALL=20 getsockopt(0x9,SOL_SOCKET,SO_SNDBUF,0x82085f608,0x82085f604) 26689 snmpd RET getsockopt 0 26689 snmpd CALL=20 getsockopt(0x9,SOL_SOCKET,SO_RCVBUF,0x82085f628,0x82085f624) 26689 snmpd RET getsockopt 0 26689 snmpd CALL bind(0x9,0x82085f7a4,0x10) 26689 snmpd STRU struct sockaddr { AF_INET, 0.0.0.0:12345 } 26689 snmpd RET bind -1 errno 48 Address already in use --=20 You are receiving this mail because: You are the assignee for the bug.=