From owner-freebsd-stable@FreeBSD.ORG Mon Jul 30 03:58:08 2007 Return-Path: Delivered-To: stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 50E8416A418; Mon, 30 Jul 2007 03:58:08 +0000 (UTC) (envelope-from mi+kde@aldan.algebra.com) Received: from aldan.algebra.com (aldan.algebra.com [216.254.65.224]) by mx1.freebsd.org (Postfix) with ESMTP id 0A9F913C442; Mon, 30 Jul 2007 03:58:07 +0000 (UTC) (envelope-from mi+kde@aldan.algebra.com) Received: from aldan.algebra.com (localhost [127.0.0.1]) by aldan.algebra.com (8.14.1/8.14.1) with ESMTP id l6U3VB5P022110 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 29 Jul 2007 23:31:11 -0400 (EDT) (envelope-from mi+kde@aldan.algebra.com) Received: from localhost (localhost [[UNIX: localhost]]) by aldan.algebra.com (8.14.1/8.14.1/Submit) id l6U3VAXI022109; Sun, 29 Jul 2007 23:31:10 -0400 (EDT) (envelope-from mi+kde@aldan.algebra.com) From: Mikhail Teterin To: ports@FreeBSD.org Date: Sun, 29 Jul 2007 23:31:10 -0400 User-Agent: KMail/1.9.6 X-Face: %UW#n0|w>ydeGt/b@1-.UFP=K^~-:0f#O:D7whJ5G_<5143Bb3kOIs9XpX+"V+~$adGP:J|SLieM31VIhqXeLBli" Cc: stable@FreeBSD.org Subject: ImageMagick's "modules" and __cxa_finalize X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jul 2007 03:58:08 -0000 Has anyone had any luck using ImageMagick built with modules support? If I try that, and follow-up with `gmake check' (in the ${WRKSRC}), about a fifth of ImageMagick's own self-tests seg-fault -- all of them inside __cxa_finalize (after main() has already returned): mi@aldan:ImageMagick/work/ImageMagick-6.3.5 (1023) gdb tests/.libs/rwblob tests/rwblob.core [...] (gdb) where 5 #0 0x0000000804008cc0 in ?? () #1 0x00000008020079e2 in __cxa_finalize () from /lib/libc.so.6 #2 0x0000000802007637 in exit () from /lib/libc.so.6 #3 0x0000000000401135 in _start () #4 0x000000080052a000 in ?? () (More stack frames follow...) (gdb) mi@aldan:ImageMagick/work/ImageMagick-6.3.5 (1024) gdb tests/.libs/rwfile tests/rwfile.core [...] (gdb) where 5 #0 0x0000000803f04cc0 in ?? () #1 0x00000008020079e2 in __cxa_finalize () from /lib/libc.so.6 #2 0x0000000802007637 in exit () from /lib/libc.so.6 #3 0x0000000000401085 in _start () #4 0x000000080052a000 in ?? () (More stack frames follow...) (gdb) Full build/test log can be seen here: http://aldan.algebra.com/~mi/IM-6.3.5-3.failure.log Building without modules (as is the port's default) allows all self-tests to pass smoothly. According to ImageMagick and GraphicsMagick developers, these crashes are due to some "reckless" calls to atexit() from inside the modules (or inside the modules-loaded graphics librarires). By the time the program is exiting, the libraries with the atexit-loaded functions may already be unloaded. But I thought, FreeBSD had that case covered since 2003: http://www.freebsd.org/cgi/query-pr.cgi?pr=59552 Can someone, please, comment? -mi