NetBSD Problem Report #43637

From www@NetBSD.org  Sun Jul 18 14:47:53 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id E7B2A63BB10
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 18 Jul 2010 14:47:52 +0000 (UTC)
Message-Id: <20100718144752.873D063BB0A@www.NetBSD.org>
Date: Sun, 18 Jul 2010 14:47:52 +0000 (UTC)
From: ace@netlinx.de
Reply-To: ace@netlinx.de
To: gnats-bugs@NetBSD.org
Subject: postfix with mysql fails on NetBSD 5.1_RC3
X-Send-Pr-Version: www-1.0

>Number:         43637
>Category:       pkg
>Synopsis:       postfix with mysql fails on NetBSD 5.1_RC3
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 18 14:50:00 +0000 2010
>Closed-Date:    Tue Feb 26 22:15:21 +0000 2013
>Last-Modified:  Tue Feb 26 22:20:04 +0000 2013
>Originator:     Friedrich Holzapfel
>Release:        NetBSD 5.1_RC3
>Organization:
>Environment:
NetBSD mail 5.1_RC3 NetBSD 5.1_RC3 (XEN3_DOMU) #0: Sat Jun 12 20:22:22 UTC 2010  builds@b8.netbsd.org:/home/builds/ab/netbsd-5-1-RC3/amd64/201006130031Z-obj/home/builds/ab/netbsd-5-1-RC3/src/sys/arch/amd64/compile/XEN3_DOMU amd64
>Description:
Postfix 2.7.1 from pkgsrc-2010Q2 (PKG_OPTIONS mysql and tls) aborts while trying to send queued mails.


Jul 17 04:06:57 mail postfix/master[1070]: warning: process /usr/pkg/libexec/postfix/smtp pid 1435 killed by signal 6
Jul 17 04:06:57 mail postfix/master[1070]: warning: /usr/pkg/libexec/postfix/smtp: bad command startup -- throttling


  1070      1 smtp     write(0x2, 0x7f7ffcc0bde0, 0x33) = 51
       "_res is not supported for multi-threaded programs.\n"
  1070      1 smtp     __sigprocmask14(0x3, 0x7f7fffffbbb0, 0) = 0
  1070      1 smtp     _lwp_self()                 = 1
  1070      1 smtp     _lwp_kill(0x1, 0x6)         = 0
  1070      1 smtp     SIGABRT SIG_DFL


/usr/pkg/libexec/postfix/smtp:
        -lssl.0.9.8 => /usr/pkg/lib/libssl.so.0.9.8
        -lcrypto.0.9.8 => /usr/pkg/lib/libcrypto.so.0.9.8
        -lc.12 => /usr/lib/libc.so.12
        -lmysqlclient.16 => /usr/pkg/lib/mysql/libmysqlclient.so.16
        -lpthread.0 => /usr/lib/libpthread.so.0
        -lcrypt.0 => /usr/lib/libcrypt.so.0
        -lm.0 => /usr/lib/libm.so.0
        -lz.1 => /usr/lib/libz.so.1



The problem seems to originate in the dependency of /usr/pkg/lib/mysql/libmysqlclient.so.16 (needed by /usr/pkg/libexec/postfix/smtp) on /usr/lib/libpthread.so.0 when databases/mysql51-client is compiled with SSL support enabled (default) and an incompatibility somewhere in the latter shared library:
Signal 6 (SIGABRT) after printing "_res is not supported for multi-threaded programs.\n".



>How-To-Repeat:
Install mail/postfix with PKG_OPTIONS mysql and MySQL client 5.1 (default PKG_OPTIONS ssl) on NetBSD 5.1_RC3 (XEN3_DOMU). Current postfix in pkgsrc (mail/postfix-current) is also affected.

OpenSSL from pkgsrc and from base are both affected (here PREFER.openssl=pkgsrc).



>Fix:
To workaround this disable the ssl PKG_OPTION for MySQL
 PKG_OPTIONS.mysql5+= -ssl


Fix unknown



>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->martti
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Sun, 18 Jul 2010 18:41:33 +0000
Responsible-Changed-Why:
Over to maintainer.


Responsible-Changed-From-To: martti->pkg-manager
Responsible-Changed-By: dholland@NetBSD.org
Responsible-Changed-When: Sun, 10 Oct 2010 02:54:18 +0000
Responsible-Changed-Why:
maintainer was reset :(


State-Changed-From-To: open->feedback
State-Changed-By: garbled@NetBSD.org
State-Changed-When: Tue, 26 Feb 2013 20:01:24 +0000
State-Changed-Why:
Applied patch from PR44656.  This fixes the mysql problem you described in my
personal configuration, so I assume this will fix your issue as well.

Thank you.


From: "Tim Rightnour" <garbled@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/43637 CVS commit: pkgsrc/mail/postfix
Date: Tue, 26 Feb 2013 19:56:19 +0000

 Module Name:	pkgsrc
 Committed By:	garbled
 Date:		Tue Feb 26 19:56:19 UTC 2013

 Modified Files:
 	pkgsrc/mail/postfix: distinfo
 Added Files:
 	pkgsrc/mail/postfix/patches: patch-src_dns_dns__lookup.c

 Log Message:
 Add fix from PR44656 to fix sig6 in postfix/smtp when compiled with any type
 of DB support (like mysql, postgres, etc).  Also fixes PR43637
 Tested by me.


 To generate a diff of this commit:
 cvs rdiff -u -r1.148 -r1.149 pkgsrc/mail/postfix/distinfo
 cvs rdiff -u -r0 -r1.1 \
     pkgsrc/mail/postfix/patches/patch-src_dns_dns__lookup.c

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

State-Changed-From-To: feedback->closed
State-Changed-By: garbled@NetBSD.org
State-Changed-When: Tue, 26 Feb 2013 22:15:21 +0000
State-Changed-Why:
Feedback recieved, thank you for your PR


From: "ace@netlinx.co.za" <ace@netlinx.co.za>
To: gnats-bugs@NetBSD.org
Cc: garbled@NetBSD.org, pkg-manager@netbsd.org, pkgsrc-bugs@netbsd.org, 
 gnats-admin@netbsd.org, ace@netlinx.de
Subject: Re: pkg/43637 (postfix with mysql fails on NetBSD 5.1_RC3)
Date: Tue, 26 Feb 2013 22:57:25 +0200

 Thanks Tim (and River)!

 I can confirm postfix/smtp running fine here with the patch applied, PR
 can be closed.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.