From aaron@moondance.finch.st  Sat Sep 24 19:24:21 2005
Return-Path: <aaron@moondance.finch.st>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id A3A0716A41F
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 24 Sep 2005 19:24:21 +0000 (GMT)
	(envelope-from aaron@moondance.finch.st)
Received: from mpls-qmqp-02.inet.qwest.net (mpls-qmqp-02.inet.qwest.net [63.231.195.113])
	by mx1.FreeBSD.org (Postfix) with SMTP id 310AB43D48
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 24 Sep 2005 19:24:20 +0000 (GMT)
	(envelope-from aaron@moondance.finch.st)
Received: (qmail 91559 invoked by uid 0); 24 Sep 2005 19:15:56 -0000
Received: from unknown (63.231.195.12)
  by mpls-qmqp-02.inet.qwest.net with QMQP; 24 Sep 2005 19:15:56 -0000
Received: from finch.st (168.103.194.212)
  by mpls-pop-12.inet.qwest.net with SMTP; 24 Sep 2005 19:24:18 -0000
Received: from [24.8.47.149] (helo=mail.finch.st)
	by finch.st with esmtp (Exim 4.52 (FreeBSD))
	id 1EJFVu-000Jcl-Ua
	for FreeBSD-gnats-submit@freebsd.org; Sat, 24 Sep 2005 13:16:47 -0600
Received: from localhost ([127.0.0.1] helo=moondance.finch.st)
	by mail.finch.st with esmtp (Exim 4.52 (FreeBSD))
	id 1EJFd5-0001G2-FN
	for FreeBSD-gnats-submit@freebsd.org; Sat, 24 Sep 2005 13:24:12 -0600
Received: (from aaron@localhost)
	by moondance.finch.st (8.13.3/8.13.3/Submit) id j8OJOBva004837;
	Sat, 24 Sep 2005 13:24:11 -0600 (MDT)
	(envelope-from aaron)
Message-Id: <200509241924.j8OJOBva004837@moondance.finch.st>
Date: Sat, 24 Sep 2005 13:24:11 -0600 (MDT)
From: "Aaron Dalton" <aaron@daltons.ca>
Reply-To: Aaron Dalton <aaron@daltons.ca>
To: FreeBSD-gnats-submit@freebsd.org
Subject: usermin/perl coredumps
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         86535
>Category:       ports
>Synopsis:       usermin/perl coredumps
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    des
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Sep 24 19:30:19 GMT 2005
>Closed-Date:    Wed Mar 22 13:32:17 GMT 2006
>Last-Modified:  Wed Mar 22 13:32:17 GMT 2006
>Originator:     Aaron Dalton
>Release:        FreeBSD 5.4-RELEASE i386
>Organization:
>Environment:
System: FreeBSD moondance.finch.st 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun May 8 10:21:06 UTC 2005 root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
Whenever I try to start the Usermin service, Perl coredumps.  Below is the 
stacktrace.  The same thing happens in Webmin, but since PAM is not 
required, the line "no-pam=1" fixes the problem.  Usermin requires PAM, 
however.  I have downloaded pamtester and have been fiddling around and 
can find no problems with PAM itself.  Any help or direction would be 
greatly appreciated.

Aaron

>How-To-Repeat:
	
>Fix:

	

--- error.txt begins here ---
moondance# /usr/local/etc/rc.d/usermin.sh start
Starting usermin.
Segmentation fault (core dumped)
moondance# ll
total 3502
-rw-r--r--  1 root  wheel     2835 Sep 21 21:03 Makefile
-rw-r--r--  1 root  wheel      100 Sep 21 21:03 distinfo
drwxr-xr-x  2 root  wheel      512 Sep 18 21:20 files
-rw-------  1 root  wheel  3551232 Sep 24 13:19 perl5.8.7.core
-rw-r--r--  1 root  wheel      316 Nov 10  2002 pkg-descr
-rw-r--r--  1 root  wheel      338 Jun 19  2004 pkg-message
-rw-r--r--  1 root  wheel      158 Jun 19  2004 pkg-plist
moondance# gdb /usr/bin/perl perl5.8.7.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you 
are
welcome to change it and/or distribute copies of it under certain 
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for 
details.
This GDB was configured as "i386-marcel-freebsd"...(no debugging symbols 
found)...

warning: core file may not match specified executable file.
Core was generated by `perl5.8.7'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libpam.so.2...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/libpam.so.2
Reading symbols from /usr/local/lib/perl5/5.8.7/mach/CORE/libperl.so...(no 
debugging symbols found)...done.
Loaded symbols for /usr/local/lib/perl5/5.8.7/mach/CORE/libperl.so
Reading symbols from /lib/libm.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.3
Reading symbols from /lib/libcrypt.so.2...(no debugging symbols 
found)...done.
Loaded symbols for /lib/libcrypt.so.2
Reading symbols from /lib/libutil.so.4...(no debugging symbols 
found)...done.
Loaded symbols for /lib/libutil.so.4
Reading symbols from /usr/lib/libpthread.so.1...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/libpthread.so.1
Reading symbols from /lib/libc.so.5...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.5
Reading symbols from 
/usr/local/lib/perl5/5.8.7/mach/auto/Socket/Socket.so...(no debugging 
symbols found)...done.
Loaded symbols for /usr/local/lib/perl5/5.8.7/mach/auto/Socket/Socket.so
Reading symbols from 
/usr/local/lib/perl5/5.8.7/mach/auto/POSIX/POSIX.so...(no debugging 
symbols found)...done.
Loaded symbols for /usr/local/lib/perl5/5.8.7/mach/auto/POSIX/POSIX.so
Reading symbols from 
/usr/local/lib/perl5/5.8.7/mach/auto/Fcntl/Fcntl.so...(no debugging 
symbols found)...done.
Loaded symbols for /usr/local/lib/perl5/5.8.7/mach/auto/Fcntl/Fcntl.so
Reading symbols from 
/usr/local/lib/perl5/site_perl/5.8.7/mach/auto/Net/SSLeay/SSLeay.so...(no 
debugging symbols found)...done.
Loaded symbols for 
/usr/local/lib/perl5/site_perl/5.8.7/mach/auto/Net/SSLeay/SSLeay.so
Reading symbols from /usr/lib/libssl.so.3...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/libssl.so.3
Reading symbols from /lib/libcrypto.so.3...(no debugging symbols 
found)...done.
Loaded symbols for /lib/libcrypto.so.3
Reading symbols from 
/usr/local/lib/perl5/site_perl/5.8.7/mach/auto/Authen/PAM/PAM.so...(no 
debugging symbols found)...done.
Loaded symbols for 
/usr/local/lib/perl5/site_perl/5.8.7/mach/auto/Authen/PAM/PAM.so
Reading symbols from /usr/lib/pam_nologin.so.2...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/pam_nologin.so.2
Reading symbols from /usr/lib/pam_opie.so.2...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/pam_opie.so.2
Reading symbols from /usr/lib/libopie.so.3...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/libopie.so.3
Reading symbols from /lib/libmd.so.2...(no debugging symbols 
found)...done.
Loaded symbols for /lib/libmd.so.2
Reading symbols from /usr/lib/pam_opieaccess.so.2...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/pam_opieaccess.so.2
Reading symbols from /usr/lib/pam_unix.so.2...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/pam_unix.so.2
Reading symbols from /usr/lib/libypclnt.so.1...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/libypclnt.so.1
Reading symbols from /usr/lib/pam_login_access.so.2...(no debugging 
symbols found)...done.
Loaded symbols for /usr/lib/pam_login_access.so.2
Reading symbols from /usr/lib/pam_permit.so.2...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/pam_permit.so.2
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols 
found)...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x2807a26e in openpam_dispatch () from /usr/lib/libpam.so.2
(gdb) where
#0  0x2807a26e in openpam_dispatch () from /usr/lib/libpam.so.2
#1  0x28079878 in pam_authenticate () from /usr/lib/libpam.so.2
#2  0x2843025c in XS_Authen__PAM_pam_authenticate ()
   from /usr/local/lib/perl5/site_perl/5.8.7/mach/auto/Authen/PAM/PAM.so
#3  0x280f7f58 in Perl_pp_entersub ()
   from /usr/local/lib/perl5/5.8.7/mach/CORE/libperl.so
#4  0x280f08f9 in Perl_runops_standard ()
   from /usr/local/lib/perl5/5.8.7/mach/CORE/libperl.so
#5  0x2809eea6 in S_run_body ()
   from /usr/local/lib/perl5/5.8.7/mach/CORE/libperl.so
#6  0x2809eb31 in perl_run ()
   from /usr/local/lib/perl5/5.8.7/mach/CORE/libperl.so
#7  0x08049050 in main ()
(gdb)
--- error.txt ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->perl 
Responsible-Changed-By: mnag 
Responsible-Changed-When: Sun Sep 25 05:18:32 GMT 2005 
Responsible-Changed-Why:  
Over to perl@ 

http://www.freebsd.org/cgi/query-pr.cgi?pr=86535 
Responsible-Changed-From-To: perl->des 
Responsible-Changed-By: tobez 
Responsible-Changed-When: Sun Sep 25 10:03:43 CEST 2005 
Responsible-Changed-Why:  
Looks like security/p5-Authen-PAM problem to me - over to its maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=86535 

From: Jeremy Doran <frysco-freebsd-dated-1141065394.fc1fc9@vulpes.net>
To: bug-followup@FreeBSD.org, aaron@daltons.ca
Cc: frysco-freebsd@vulpes.net
Subject: Re: ports/86535: usermin/perl coredumps
Date: Wed, 22 Feb 2006 10:36:32 -0800

 Usermin was working fine for me (with Perl 5.8.7) until I upgraded to Perl
 5.8.8.  
 
 Now, I am seeing the same problem as described in the original bug report.
 The stack track looks pretty much the same too. 
 
 I tried a re-compile of libpam from /usr/src/lib/libpam, as well as
 re-compiling usermin, Perl and the dependacies. No luck.
 
 Since I don't provide users with shell accounts, this was the only method I
 have for them to change passwords - until there is a fix, they are unable
 to do that.
 
 FreeBSD urocyon.critter.net 5.3-RELEASE-p26 FreeBSD 5.3-RELEASE-p26 #6: Thu
 Feb  2 11:29:26 EST 2006
 root@urocyon.critter.net:/usr/obj/usr/src/sys/CRITTER  i386
 
 Information for usermin-1.190_1:
 Depends on:
 Dependency: perl-5.8.8
 Dependency: p5-Net-SSLeay-1.30_1
 Dependency: p5-Authen-PAM-0.14
 
 (gdb) where
 #0  0x28079265 in openpam_dispatch () from /usr/lib/libpam.so.2
 #1  0x28078878 in pam_authenticate () from /usr/lib/libpam.so.2
 #2  0x284041cc in XS_Authen__PAM_pam_authenticate () from
 /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/Authen/PAM/PAM.so
 #3  0x280f5f40 in Perl_pp_entersub () from
 /usr/local/lib/perl5/5.8.8/mach/CORE/libperl.so
 #4  0x280eeb25 in Perl_runops_standard () from
 /usr/local/lib/perl5/5.8.8/mach/CORE/libperl.so
 #5  0x2809dff6 in S_run_body () from
 /usr/local/lib/perl5/5.8.8/mach/CORE/libperl.so
 #6  0x2809dc7f in perl_run () from
 /usr/local/lib/perl5/5.8.8/mach/CORE/libperl.so
 #7  0x08049004 in main ()

From: Jeremy Doran <frysco-freebsd-dated-1141066264.66cbcd@vulpes.net>
To: bug-followup@FreeBSD.org, aaron@daltons.ca
Cc: Jeremy Doran <frysco-freebsd@vulpes.net>
Subject: Re: ports/86535: usermin/perl coredumps
Date: Wed, 22 Feb 2006 10:51:01 -0800

 Since sending my followup, I noticed that version 0.16 of Authen::PAM is
 available.
 
 I applied the following diffs to security/p5-Authen-PAM:
 
 --- Makefile~   Fri Mar  7 01:10:43 2003
 +++ Makefile    Wed Feb 22 13:42:40 2006
 @@ -6,7 +6,7 @@
  #
 
  PORTNAME=      Authen-PAM
 -PORTVERSION=   0.14
 +PORTVERSION=   0.16
  CATEGORIES=    security perl5
  MASTER_SITES=  ${MASTER_SITE_PERL_CPAN}
  MASTER_SITE_SUBDIR=    Authen
 
 
 --- distinfo~   Tue Jan 24 01:50:52 2006
 +++ distinfo    Wed Feb 22 13:47:14 2006
 @@ -1,3 +1,3 @@
 -MD5 (Authen-PAM-0.14.tar.gz) = cc17168f6645022ff52b594ef96940ab
 -SHA256 (Authen-PAM-0.14.tar.gz) =
 c7f6c5b4c0e71329c79627f9c4d60cc33d99a682b7a4b7f43d15c668688c4141
 -SIZE (Authen-PAM-0.14.tar.gz) = 43455
 +MD5 (Authen-PAM-0.16.tar.gz) = 7278471dfa694d9ef312bc92d7099af2
 +SHA256 (Authen-PAM-0.16.tar.gz) =
 0e949bd9a2a9df0f829971030fe9169cbaf6cec78b92faf22f547ff6c6155c9b
 +SIZE (Authen-PAM-0.16.tar.gz) = 45922
 
 
 Usermin now starts without dumping core.
State-Changed-From-To: open->closed 
State-Changed-By: des 
State-Changed-When: Wed Mar 22 13:32:15 UTC 2006 
State-Changed-Why:  
fixed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=86535 
>Unformatted:
