NetBSD Problem Report #30999

From www@netbsd.org  Tue Aug 16 09:42:07 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id B3D2963B116; Tue, 16 Aug 2005 09:42:07 +0000 (UTC)
Message-Id: <20050816094207.B3D2963B116@narn.netbsd.org>
Date: Tue, 16 Aug 2005 09:42:07 +0000 (UTC)
From: Huajian.luo@Sun.COM
Reply-To: Huajian.luo@Sun.COM
To: gnats-bugs@netbsd.org
Subject: mail/procmail hung for years
X-Send-Pr-Version: www-1.0

>Number:         30999
>Category:       pkg
>Synopsis:       mail/procmail hung for years
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kim
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 16 09:43:00 +0000 2005
>Closed-Date:    Fri Dec 23 04:40:50 +0000 2005
>Last-Modified:  Mon Oct 31 23:00:04 +0000 2011
>Originator:     Huajian.Luo
>Release:        Solaris
>Organization:
Sun
>Environment:
SunOS whatluo 5.10 s10_72 sun4u sparc SUNW,Sun-Blade-2500
>Description:
Using the following directories for the LOCKINGTESTs:
  /tmp .
Initiating fcntl()/kernel-locking-support tests

Proceeding with kernel-locking-support tests in the background
Testing for const
Testing for volatile
Testing for prototypes
Testing for enum
Checking for POSIX and ANSI/ISO system include files
Checking for network/comsat/biff support
Testing for void*, size_t, off_t, pid_t, time_t, mode_t, uid_t & gid_t
Checking realloc implementation
Testing for WIFEXITED(), WIFSTOPPED(), WEXITSTATUS() & WSIGTERM()
Testing for various struct passwd members
Testing for memmove, strchr, strpbrk, strcspn, strtol, strstr,
        rename, setrgid, setegid, pow, opendir, mkdir, waitpid, fsync,
        ftruncate, strtod, strncasecmp, strerror, strlcat,
        memset, bzero, and _exit
Determining the maximum number of 16 byte arguments execv() takes
Benchmarking your system's strstr() implementation
----hung at here.....
>How-To-Repeat:
cd  pkgsrc/mail/procmail
bamake
>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->kim
Responsible-Changed-By: reed@netbsd.org
Responsible-Changed-When: Tue, 16 Aug 2005 15:52:24 +0000
Responsible-Changed-Why:
Assigned to maintainer (not specific to Solaris).


From: "Jeremy C. Reed" <reed@reedmedia.net>
To: gnats-bugs@netbsd.org
Cc: Huajian.luo@Sun.COM
Subject: Re: pkg/30999: mail/procmail hung for years
Date: Tue, 16 Aug 2005 08:55:24 -0700 (PDT)

 On Tue, 16 Aug 2005 Huajian.luo@Sun.COM wrote:

 > Benchmarking your system's strstr() implementation
 > ----hung at here.....

 I see that FreeBSD ports had same issue reported:
   http://www.FreeBSD.org/cgi/query-pr.cgi?pr=74276

 "Submitter says it was due to the use of -O3 in CFLAGS."

 And the Gentoo ebuild says:
 # -finline-functions (implied by -O3) leaves strstr() in an infinite loop.
 # To work around this, we append -fno-inline-functions to CFLAGS
          append-flags -fno-inline-functions


 Maybe try in the pkgsrc/mail/procmail/Makefile:

 CFLAGS+=	-finline-functions

   Jeremy C. Reed

   	  	 	 BSD News, BSD tutorials, BSD links
  	  	 	 http://www.bsdnewsletter.com/

From: "Jeremy C. Reed" <reed@reedmedia.net>
To: gnats-bugs@netbsd.org
Cc: Huajian.luo@Sun.COM
Subject: Re: pkg/30999: mail/procmail hung for years
Date: Tue, 16 Aug 2005 09:33:55 -0700 (PDT)

 On Tue, 16 Aug 2005, Jeremy C. Reed wrote:

 > Maybe try in the pkgsrc/mail/procmail/Makefile:
 >
 > CFLAGS+=	-finline-functions

 Sorry, I meant to try CFLAGS+=-fno-inline-functions  (with the "no").

   Jeremy C. Reed

   	  	 	 BSD News, BSD tutorials, BSD links
  	  	 	 http://www.bsdnewsletter.com/

From: "Huajian.Luo" <Huajian.Luo@Sun.Com>
To: "Jeremy C. Reed" <reed@reedmedia.net>
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/30999: mail/procmail hung for years
Date: Wed, 17 Aug 2005 11:24:09 +0800

 Jeremy C. Reed wrote:
 > On Tue, 16 Aug 2005, Jeremy C. Reed wrote:
 > 
 > >Maybe try in the pkgsrc/mail/procmail/Makefile:
 > >
 > >CFLAGS+=	-finline-functions
 > 
 > Sorry, I meant to try CFLAGS+=-fno-inline-functions  (with the "no").

 Yes, that's do the work.

 Thanks,

 -Huajian.

From: "Johnny C. Lam" <jlam@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/30999 CVS commit: pkgsrc/mail/procmail
Date: Fri, 23 Dec 2005 04:36:45 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	jlam
 Date:		Fri Dec 23 04:36:45 UTC 2005

 Modified Files:
 	pkgsrc/mail/procmail: Makefile
 Added Files:
 	pkgsrc/mail/procmail: hacks.mk

 Log Message:
 Apply hack noted in PR pkg/30999 -- turn off inline functions when
 compiling in order to fix an infinite loop error on Solaris.

 Bump the PKGREVISION to 2.


 To generate a diff of this commit:
 cvs rdiff -r1.38 -r1.39 pkgsrc/mail/procmail/Makefile
 cvs rdiff -r0 -r1.1 pkgsrc/mail/procmail/hacks.mk

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

State-Changed-From-To: open->closed
State-Changed-By: jlam@netbsd.org
State-Changed-When: Fri, 23 Dec 2005 04:40:50 +0000
State-Changed-Why:
Hack from PR applied to pkgsrc.  Thanks for the PR!


From: "Steven Drake" <sbd@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/30999 CVS commit: pkgsrc/mail/procmail
Date: Mon, 31 Oct 2011 22:58:46 +0000

 Module Name:	pkgsrc
 Committed By:	sbd
 Date:		Mon Oct 31 22:58:45 UTC 2011

 Modified Files:
 	pkgsrc/mail/procmail: Makefile
 Removed Files:
 	pkgsrc/mail/procmail: hacks.mk

 Log Message:
 The infinite loop noted in PR#30999 is cause by inlining functions on
 any system, so inline functions should alway be disabled.


 To generate a diff of this commit:
 cvs rdiff -u -r1.45 -r1.46 pkgsrc/mail/procmail/Makefile
 cvs rdiff -u -r1.1 -r0 pkgsrc/mail/procmail/hacks.mk

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

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.