NetBSD Problem Report #46948
From mark@ecs.vuw.ac.nz Thu Sep 13 05:26:13 2012
Return-Path: <mark@ecs.vuw.ac.nz>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
by www.NetBSD.org (Postfix) with ESMTP id 595BC63B86D
for <gnats-bugs@gnats.netbsd.org>; Thu, 13 Sep 2012 05:26:13 +0000 (UTC)
Message-Id: <201209131726.09632.mark@ecs.vuw.ac.nz>
Date: Thu, 13 Sep 2012 17:26:09 +1200
From: Mark Davies <mark@ecs.vuw.ac.nz>
To: gnats-bugs@gnats.netbsd.org
Subject: squids pam_auth segfaults in pam_start
>Number: 46948
>Category: lib
>Synopsis: squids pam_auth segfaults in pam_start
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: lib-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Sep 13 05:30:01 +0000 2012
>Originator: Mark Davies
>Release: NetBSD 6.0_RC1
>Organization:
>Environment:
System: NetBSD www-cache2.ecs.vuw.ac.nz 6.0_RC1 NetBSD 6.0_RC1
(GENERIC) #1: Mon Aug 20 16:57:13 NZST 2012
mark@turakirae.ecs.vuw.ac.nz:/local/SAVE/6_64.obj/src/work/6/src/sys/arch/amd64/compile/GENERIC
amd64
Architecture: x86_64
Machine: amd64
>Description:
I put this in lib but it might be a pkg bug although I can't see
anything wrong in how pam is being called.
pam_auth from squid31 segfaults while loading the pam_krb5.so
when build on NetBSD 6.0_RC1/amd64.
backtrace is
#0 0x00007f7ff700219a in _free_internal () from
/usr/lib/libgnumalloc.so.1
#1 0x00007f7ff7002b45 in realloc () from /usr/lib/libgnumalloc.so.1
#2 0x00007f7ff6caf2ec in asprintf () from /usr/lib/libc.so.12
#3 0x00007f7ff7806311 in openpam_dynamic () from /usr/lib/libpam.so.3
#4 0x00007f7ff780615b in openpam_load_module () from
/usr/lib/libpam.so.3
#5 0x00007f7ff7805310 in ?? () from /usr/lib/libpam.so.3
#6 0x00007f7ff7805783 in ?? () from /usr/lib/libpam.so.3
#7 0x00007f7ff7805003 in ?? () from /usr/lib/libpam.so.3
#8 0x00007f7ff7805783 in ?? () from /usr/lib/libpam.so.3
#9 0x00007f7ff78058a7 in openpam_configure () from
/usr/lib/libpam.so.3
#10 0x00007f7ff7802df6 in pam_start () from /usr/lib/libpam.so.3
#11 0x0000000000401780 in main ()
A pam_auth built on 5.1_STABLE but run on 6.0_RC1/amd64 (with the 5.1
vintage shared libraries it wants) works successfully.
A pam_auth built and run on 5.99.59/i386 exhibits the same problem.
>How-To-Repeat:
On a system with pam configured to use kerberos build squid31
run /usr/pkg/libexec/pam_auth and type "username password" return
(Doesn't matter what the usename and password are as it doesnt
get that far)
>Fix:
(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-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.