libxml2
Jeremy Messenger
mezz7 at cox.net
Sat Dec 12 18:30:09 UTC 2009
On Fri, 11 Dec 2009 11:49:42 -0600, Thomas Vogt <freebsdlists at bsdunix.ch>
wrote:
> Hello
>
> Am 11.12.2009 um 16:26 schrieb Roar Pettersen:
>> Hi !
>> After upgrading my FreeBSD 7.2-STABLE system I now get many
>> php.core files because I now use libxml2 (2.7.6).
>>
>> Here is some info from gdb :
>>
>> # /local/apache2/ipfw/cron2.sh
>> Segmentation fault: 11 (core dumped)
>> [root at proxy-gw2 /tmp/download]# gdb php php.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 "amd64-marcel-freebsd"...(no debugging
>> symbols found)...
>> Core was generated by `php'.
>> Program terminated with signal 11, Segmentation fault.
>> Reading symbols from /lib/libcrypt.so.4...(no debugging symbols
>> found)...done.
>> Loaded symbols for /lib/libcrypt.so.4
>> Reading symbols from /lib/libm.so.5...(no debugging symbols
>> found)...done.
>> Loaded symbols for /lib/libm.so.5
>> Reading symbols from /usr/local/lib/libxml2.so.5...(no debugging
>> symbols found)...done.
>> Loaded symbols for /usr/local/lib/libxml2.so.5
>> Reading symbols from /lib/libz.so.4...(no debugging symbols
>> found)...done.
>> Loaded symbols for /lib/libz.so.4
>> Reading symbols from /usr/local/lib/libiconv.so.3...(no debugging
>> symbols found)...done.
>> Loaded symbols for /usr/local/lib/libiconv.so.3
>> Reading symbols from /lib/libc.so.7...(no debugging symbols
>> found)...done.
>> Loaded symbols for /lib/libc.so.7
>> Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols
>> found)...done.
>> Loaded symbols for /libexec/ld-elf.so.1
>> #0 0x0000000802b20860 in ?? ()
>> (gdb) backtrace
>> #0 0x0000000802b20860 in ?? ()
>> #1 0x0000000800b11784 in xmlIsMainThread () from
>> /usr/local/lib/libxml2.so.5
>> #2 0x0000000800b10de9 in __xmlLastError () from
>> /usr/local/lib/libxml2.so.5
>> #3 0x0000000800aa3d89 in xmlResetLastError () from
>> /usr/local/lib/libxml2.so.5
>> #4 0x0000000800aaa9cf in xmlCleanupParser () from
>> /usr/local/lib/libxml2.so.5
>> #5 0x00000000004432f8 in php_libxml_shutdown ()
>> #6 0x0000000000443329 in zm_shutdown_libxml ()
>> #7 0x000000000050d731 in module_destructor ()
>> #8 0x00000000005141ea in zend_hash_apply_deleter ()
>> #9 0x0000000000514458 in zend_hash_graceful_reverse_destroy ()
>> #10 0x00000000005098c7 in zend_shutdown ()
>> #11 0x00000000004c599a in php_module_shutdown ()
>> #12 0x000000000058e35b in main ()
>>
>>
>> # php -v
>> PHP 5.2.11 with Suhosin-Patch 0.9.7 (cli) (built: Dec 11 2009 07:30:10)
>> Copyright (c) 1997-2009 The PHP Group
>> Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
>> Segmentation fault: 11 (core dumped)
>>
>> # uname -a
>> FreeBSD proxy-gw2.uib.no 7.2-STABLE FreeBSD 7.2-STABLE #0: Fri Dec 11
>> 00:22:13 CET 2009
>> root at proxy-gw2.uib.no:/usr/obj/usr/src/sys/PROXY-GW2 amd64
>>
>>
>> Thank you !
>>
>
> There is already a PR.
> http://www.freebsd.org/cgi/query-pr.cgi?pr=141226
>
> You can downgrade libxml2 or remove all lines below from
> "patch-configure" in libxml2 (/usr/ports/textproc/libxml2/files/..) an
> recompile libxml2:
>
> @@ -20665,6 +20666,8 @@
> fi
> fi
> ;;
> + *freebsd*) THREAD_LIBS=""
> + ;;
> esac
> if test "$WITH_THREADS" = "1" ; then
> THREAD_CFLAGS="$THREAD_CFLAGS -D_REENTRANT"
The bug is in the PHP module. Please help ale (Alex) to hunt the bug[1],
so he can fix PHP modules in the ports tree.
[1]
http://lists.freebsd.org/pipermail/freebsd-ports/2009-December/058256.html
Cheers,
Mezz
> Regards,
> Thomas
>
>
>
>
> Tom
--
mezz7 at cox.net - mezz at FreeBSD.org
FreeBSD GNOME Team
http://www.FreeBSD.org/gnome/ - gnome at FreeBSD.org
More information about the freebsd-gnome
mailing list