Subject: pkg/29828: ircd-hybrid on sparc64 NetBSD 2.0 produces "Bus error"
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 03/29/2005 17:51:00
>Number:         29828
>Category:       pkg
>Synopsis:       ircd-hybrid on sparc64 NetBSD 2.0 produces "Bus error"
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 29 17:51:00 +0000 2005
>Originator:     Ryan Cresawn
>Release:        NetBSD 2.0
Computing in the Humanities and Social Sciences, University of Toronto
System: NetBSD 2.0 NetBSD 2.0 (GENERIC) #0: Thu Dec  2 02:49:29 UTC 2004  builds@build:/big/builds/ab/netbsd-2-0-RELEASE/sparc64/200411300000Z-obj/big/builds/ab/netbsd-2-0-RELEASE/src/sys/arch/sparc64/compile/GENERIC sparc64
Architecture: sparc64
Machine: Sun Ultra 1

The compilaton of ircd-hybrid from pkgsrc-2005Q1 results in a
non-funtional binary.  The binary will listen for network connections
but upon a client connecting will produce a "Bus error" in less than
one minute.  The client is never able to connect to the server long
enough to permit messages to be sent.  Debugging the problem may be
difficult because the binary does not produce a core file when it
exits despite being run with the options "-nx3" and having been
compiled with the following /etc/mk.conf file:

# cat /etc/mk.conf
CFLAGS=-O0 -g3


Install NetBSD 2.0 on a sparc64 computer.  Perform a cvs checkout of
pkgsrc-2005Q1.  Perform a "make install" in the directory
/usr/pkgsrc/chat/ircd-hybrid.  Start the binary with the "-nx3"
options.  The "-n" instructs it to not detach and enter into daemon
mode and "x3" instructs it to enter into debug mode.  Without debug
mode enabled the server quietly exits without any warning or error.
With debug mode enabled it exits with "Bus error".  Create a very
basic configuration file for the server.  Start the server.  Connect
to the server with either telnet or with an irc client.  In less than
a minute the server should exit and produce "Bus error".