NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-amd64/45243: yale-tftpd generate a coredump file when running on NetBSD-5.1 amd64 platform



>Number:         45243
>Category:       port-amd64
>Synopsis:       yale-tftpd generate a coredump file when running on NetBSD-5.1 
>amd64 platform
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-amd64-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 12 07:50:00 +0000 2011
>Originator:     Cedric DEVILLERS
>Release:        NetBSD 5.1 amd64
>Organization:
University Paris VII
>Environment:
NetBSD  5.1 NetBSD 5.1 (GENERIC) #0: Sat Nov  6 13:19:33 UTC 2010  
builds%b6.netbsd.org@localhost:/home/builds/ab/netbsd-5-1-RELEASE/amd64/201011061943Z-obj/home/builds/ab/netbsd-5-1-RELEASE/src/sys/arch/amd64/compile/GENERIC
 amd64
>Description:
The yale-tftpd daemon is running (with or without inetd) and when a request 
arrives, the child (fork) crash with coredump.
>How-To-Repeat:
Running yale-tftpd daemon on NetBSD 5.1 amd64 platform (not tested on previous 
release).
Perform a request to the tftpd server with a tftp client.
The request was terminated with timeout and on the server, there is a coredump 
file on tftpboot directory.
>Fix:
Recompiling this port with static flag seems to correct the problem but there 
are certainly a better solution.

--- Makefile    2011-08-12 07:15:15.000000000 +0000
+++ Makefile.new        2011-08-12 07:14:02.000000000 +0000
@@ -1,7 +1,7 @@
 # $NetBSD: Makefile,v 1.18 2009/06/05 10:19:10 hasso Exp $
 
 DISTNAME=      yale-tftpd-3.0
-PKGREVISION=   4
+PKGREVISION=   5
 CATEGORIES=    net
 MASTER_SITES=  ftp://ftp.cert.dfn.de/pub/tools/net/yale-tftpd/
 
@@ -19,6 +19,7 @@
 CFLAGS.Linux+=                 -DHAVE_STRERROR
 CFLAGS.SunOS+=                 -DHAVE_STRERROR -DBROKEN_TH_STUFF
 LDFLAGS.SunOS+=                        -lsocket -lnsl
+LDFLAGS.NetBSD+=               -static
 
 USE_LANGUAGES=                 c
 



Home | Main Index | Thread Index | Old Index