From owner-freebsd-stable@FreeBSD.ORG Wed Jan 16 12:05:14 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 8B285475 for ; Wed, 16 Jan 2013 12:05:14 +0000 (UTC) (envelope-from kpaasial@gmail.com) Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) by mx1.freebsd.org (Postfix) with ESMTP id 2EEC5131 for ; Wed, 16 Jan 2013 12:05:14 +0000 (UTC) Received: by mail-wi0-f179.google.com with SMTP id o1so1151358wic.0 for ; Wed, 16 Jan 2013 04:05:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=8veztiqf143F39d9oSVwMCm1jF0RbiROSRZTq2AK0iE=; b=DiDqR18zx4zGm8bL4lya/0THfpyHnHr86BNOR/1K9hdOo6u5kmET4L2fdtLdpbeksO rOL2tgeUPGafplzYd7yHGAVoPqACH5PVCv1ZAsvrOZhkW07SRvqtqYkDawmpX+2qpEpy mtQJMttKPAn5yhKNt6Okg1QmmWOpiq9Fi/bUfTQSLL7RD8+I2lZFDc43cyUCZrEOoskJ juZywuP+SPVpN0BuGVj1yTcroH1OYbItITZxBkha3jT/7xcBpp0QjCpVc4TgN24GIJOz kyT6Xju5KHhSuAHNMwbgt8oVWQA7vMElFHWqgFWhdO240zi3VbofwZZ9rrMg2fdFV4zL p4/Q== MIME-Version: 1.0 X-Received: by 10.180.93.40 with SMTP id cr8mr9690244wib.15.1358337913247; Wed, 16 Jan 2013 04:05:13 -0800 (PST) Received: by 10.216.172.197 with HTTP; Wed, 16 Jan 2013 04:05:13 -0800 (PST) Date: Wed, 16 Jan 2013 14:05:13 +0200 Message-ID: Subject: CLANG 3.2 breaks security/pam_ssh_agent_auth on stable/9 From: Kimmo Paasiala To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jan 2013 12:05:14 -0000 Hello list. I just updated my stable/9 system after clang3.2 was added. My system is amd64, both world and kernel are compiled with clang3.2 and the default compiler is clang. I'm tracking the sources with GIT and the version I have corresponds to SVN revision r245451. Everything else seems to work but the pam authentication module security/pam_ssh_agent_auth segfaults immediately. The version I had was compiled in a releng/9.1 jail using poudriere with clang as the default compiler. I recompiled the port with the new clang3.2 compiler but no difference. Here is the backtrace from gdb when I run su(1) as root with the suitable settings to force the use of the plugin: (gdb) run Starting program: /usr/bin/su (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)... Program received signal SIGSEGV, Segmentation fault. 0x0000000800ef2070 in strsvis () from /lib/libc.so.7 (gdb) bt #0 0x0000000800ef2070 in strsvis () from /lib/libc.so.7 #1 0x0000000800ef2584 in strvis () from /lib/libc.so.7 #2 0x0000000800ef25e5 in strnvis () from /lib/libc.so.7 #3 0x0000000801c0e2e7 in do_log () from /usr/local/lib/pam_ssh_agent_auth.so #4 0x0000000801c0e4ff in logit () from /usr/local/lib/pam_ssh_agent_auth.so #5 0x0000000801c116f4 in pam_user_key_allowed2 () from /usr/local/lib/pam_ssh_agent_auth.so #6 0x0000000801c11f1e in pam_user_key_allowed () from /usr/local/lib/pam_ssh_agent_auth.so #7 0x0000000801c11a18 in userauth_pubkey_from_id () from /usr/local/lib/pam_ssh_agent_auth.so #8 0x0000000801c118fa in find_authorized_keys () from /usr/local/lib/pam_ssh_agent_auth.so #9 0x0000000801c122e5 in pam_sm_authenticate () from /usr/local/lib/pam_ssh_agent_auth.so #10 0x0000000800a343e0 in openpam_dispatch () from /usr/lib/libpam.so.5 #11 0x0000000800a33946 in pam_authenticate () from /usr/lib/libpam.so.5 #12 0x00000000004020b8 in ?? () #13 0x0000000000401c61 in ?? () #14 0x000000080061f000 in ?? () #15 0x0000000000000000 in ?? () The str*vis() calls suggest that it's something in the libc maybe? Regards, Kimmo Paasiala