NetBSD Problem Report #41879
From manu@glop.net.espci.fr Wed Aug 12 17:25:19 2009
Return-Path: <manu@glop.net.espci.fr>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id E20D663C284
for <gnats-bugs@gnats.NetBSD.org>; Wed, 12 Aug 2009 17:25:18 +0000 (UTC)
Message-Id: <20090812153042.7B3B8FD273@glop.net.espci.fr>
Date: Wed, 12 Aug 2009 17:30:42 +0200 (CEST)
From: manu@netbsd.org
To: gnats-bugs@gnats.NetBSD.org
Subject: openssl ocsp -port uses a signed short
X-Send-Pr-Version: 3.95
>Number: 41879
>Category: bin
>Synopsis: openssl ocsp -port uses as signed short
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Aug 12 17:30:00 +0000 2009
>Originator: Emmanuel Dreyfus
>Release: NetBSD 5.0_STABLE
>Organization:
>Environment:
System: NetBSD glop.example.net 5.0_STABLE NetBSD 5.0_STABLE (XEN3_DOMU) #0: Sat Aug 1 15:33:02 UTC 2009 builds@b7.netbsd.org:/home/builds/ab/netbsd-5/i386/200908010000Z-obj/home/builds/ab/netbsd-5/src/sys/arch/i386/compile/XEN3_DOMU i386
Architecture: i386
Machine: i386
>Description:
openssl ocsp -port uses a signed short. This means that in order to listen
on port 8080, one need to use openssl ocsp -port -57456
We get to this result because: 57456 + 8080 = 0 % 2^16
Using openssl ocsp -port 8080 will lead to a bind failure followed by a
crash:
# openssl ocsp -index /htdocs/ocsp/index.txt \
-url http://localhost -port 8080 -CA certs/ca.crt \
-text -rsigner certs/ocsp2009.crt \
-rkey private/www.example.net.key \
-nrequest 1 -out log.txt
3148069572:error:02006016:system library:bind:Invalid argument:/home/builds/ab/netbsd-5/src/crypto/dist/openssl/crypto/bio/b_sock.c:759:port='8080'
3148069572:error:20069075:BIO routines:BIO_get_accept_socket:unable to bind socket:/home/builds/ab/netbsd-5/src/crypto/dist/openssl/crypto/bio/b_sock.c:761:
[1] Segmentation fault (core dumped) openssl ocsp -in...
>How-To-Repeat:
See above.
>Fix:
Unknown yet. That bug did not exist in NetBSD 4.0.
(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.