Project

General

Profile

Actions

Bug #1883

closed

DFly 2.8 64bit, php and gettext crashes

Added by dl over 13 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Hello!

After upgrading to Dfly 2.8 64 bit my PHP installation is doing core-dumps when an web-application tries to execute the gettext (multi-language-support) functionality. Right now the machine runs
DragonFly pick 2.8-RELEASE DragonFly v2.8.0.2.g178edc-RELEASE #16: Mon Oct 18 14:22:38 CEST 2010

On another 32 bit machine with same 2.8 the web-app (Squirrelmail, or Poweradmin) runs fine. I am quite sure that the apps were runnig fine with DFly 2.6 installations although I am verifying it right now...

I attached a GDB backtrace for the gettext error of Poweradmin at the bottom of this e-mail. I recompiled PHP 5.2 with debug flags for gdb.

I am running the php interpreter with (newest) apache 2.2.16 and /usr/pkgsrc/www/ap-fastcgi module.
I first noticed it with PHP version 5.3.3 but when trying PHP 5.2.14 (and recompiling all dependencies) the same error occurs: The webserver says: Internal server error and the error_log shows:

[Fri Oct 22 15:08:48 2010] [error] [client 87.79.236.37] FastCGI: incomplete headers (0 bytes) received from server "/usr/pkg/libexec/cgi-bin/php"
[Fri Oct 22 15:08:48 2010] [warn] FastCGI: server "/usr/pkg/libexec/cgi-bin/php" (pid 83728) terminated due to uncaught signal '11' (Segmentation fault)
[Fri Oct 22 15:08:48 2010] [warn] FastCGI: server "/usr/pkg/libexec/cgi-bin/php" restarted (pid 83732)
thr_umtx_wait: FAULT VALUE CHANGE 0 -> 2 oncond 0x8064401ac
thr_umtx_wait: FAULT VALUE CHANGE 0 -> 2 oncond 0x8064401ac
thr_umtx_wait: FAULT VALUE CHANGE 0 -> 2 oncond 0x8064401ac
thr_umtx_wait: FAULT VALUE CHANGE 0 -> 2 oncond 0x8064401ac
(and many more)

In case you need more info, please don't hesitate to ask!

Thanks in advance!
Damian

Here is the gdb backtrace:

root@pick:~www/poweradmin# gdb php php.core
GNU gdb (GDB) 7.0
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-dragonfly".
For bug reporting instructions, please see:
<http://bugs.dragonflybsd.org/&gt;...
Reading symbols from /usr/pkg/bin/php...done.
Reading symbols from /usr/lib/libpthread.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libpthread.so.0
Reading symbols from /usr/lib/libcrypt.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libcrypt.so.3
Reading symbols from /usr/pkg/lib/libssl.so.0.9.8...(no debugging symbols found)...done.
Loaded symbols for /usr/pkg/lib/libssl.so.0.9.8
Reading symbols from /usr/pkg/lib/libcrypto.so.0.9.8...(no debugging symbols found)...done.
Loaded symbols for /usr/pkg/lib/libcrypto.so.0.9.8
Reading symbols from /usr/lib/librt.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/librt.so.0
Reading symbols from /usr/lib/libm.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libm.so.3
Reading symbols from /usr/lib/libz.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libz.so.3
Reading symbols from /usr/pkg/lib/libxml2.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/pkg/lib/libxml2.so.2
Reading symbols from /usr/lib/libc.so.7...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libc.so.7
Symbols already loaded for /usr/lib/libpthread.so.0
Reading symbols from /usr/pkg/lib/php/20040412/mysql.so...done.
Loaded symbols for /usr/pkg/lib/php/20040412/mysql.so
Reading symbols from /usr/pkg/lib/mysql/libmysqlclient.so.16...(no debugging symbols found)...done.
Loaded symbols for /usr/pkg/lib/mysql/libmysqlclient.so.16
Reading symbols from /usr/pkg/lib/php/20040412/gettext.so...done.
Loaded symbols for /usr/pkg/lib/php/20040412/gettext.so
Reading symbols from /usr/pkg/lib/libintl.so.3...done.
Loaded symbols for /usr/pkg/lib/libintl.so.3
Reading symbols from /usr/pkg/lib/php/20040412/mbstring.so...done.
Loaded symbols for /usr/pkg/lib/php/20040412/mbstring.so
Reading symbols from /usr/pkg/lib/php/20040412/posix.so...done.
Loaded symbols for /usr/pkg/lib/php/20040412/posix.so
Reading symbols from /usr/pkg/lib/php/20040412/bcmath.so...done.
Loaded symbols for /usr/pkg/lib/php/20040412/bcmath.so
Reading symbols from /usr/pkg/lib/php/20040412/mcrypt.so...done.
Loaded symbols for /usr/pkg/lib/php/20040412/mcrypt.so
Reading symbols from /usr/pkg/lib/libmcrypt.so.4...(no debugging symbols found)...done.
Loaded symbols for /usr/pkg/lib/libmcrypt.so.4
Reading symbols from /usr/lib/i18n/libiconv_std.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/i18n/libiconv_std.so.1
Reading symbols from /usr/lib/i18n/libUTF8.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/i18n/libUTF8.so.1
Reading symbols from /usr/lib/i18n/libmapper_646.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/i18n/libmapper_646.so.1
Reading symbols from /usr/libexec/ld-elf.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/libexec/ld-elf.so.2
Core was generated by `php'.
Program terminated with signal 11, Segmentation fault.
#0 0x0000000801e7a7e4 in libintl_dcigettext (domainname=0x801e7d6e0 "messages",
msgid1=0x8029198c8 "You do not have the permission to perform searches.", msgid2=0x0, plural=0, n=0, category=6) at ./dcigettext.c:669
669 ./dcigettext.c: No such file or directory.
in ./dcigettext.c
(gdb) bt
#0 0x0000000801e7a7e4 in libintl_dcigettext (domainname=0x801e7d6e0 "messages",
msgid1=0x8029198c8 "You do not have the permission to perform searches.", msgid2=0x0, plural=0, n=0, category=6) at ./dcigettext.c:669
#1 0x0000000801e758c6 in libintl_dcgettext (domainname=0x0, msgid=0x8029198c8 "You do not have the permission to perform searches.", category=6)
at ./dcgettext.c:49
#2 0x0000000801e7590b in libintl_gettext (msgid=0x8029198c8 "You do not have the permission to perform searches.") at ./gettext.c:57
#3 0x0000000801d7160b in zif_gettext (ht=1, return_value=0x802919a20, return_value_ptr=0x0, this_ptr=0x0, return_value_used=1)
at /var/build/devel/php-gettext/work/php-5.2.14/ext/gettext/gettext.c:206
#4 0x000000000060ac3f in zend_do_fcall_common_helper_SPEC (execute_data=0x7fffffffbb60)
at /var/build/lang/php5/work/php-5.2.14/Zend/zend_vm_execute.h:200
#5 0x0000000000610980 in ZEND_DO_FCALL_SPEC_CONST_HANDLER (execute_data=0x7fffffffbb60)
at /var/build/lang/php5/work/php-5.2.14/Zend/zend_vm_execute.h:1740
#6 0x000000000060a70c in execute (op_array=0x8017b3f18) at /var/build/lang/php5/work/php-5.2.14/Zend/zend_vm_execute.h:92
#7 0x000000000061173b in ZEND_INCLUDE_OR_EVAL_SPEC_CONST_HANDLER (execute_data=0x7fffffffce40)
at /var/build/lang/php5/work/php-5.2.14/Zend/zend_vm_execute.h:2104
#8 0x000000000060a70c in execute (op_array=0x801798f18) at /var/build/lang/php5/work/php-5.2.14/Zend/zend_vm_execute.h:92
#9 0x000000000061173b in ZEND_INCLUDE_OR_EVAL_SPEC_CONST_HANDLER (execute_data=0x7fffffffdc00)
at /var/build/lang/php5/work/php-5.2.14/Zend/zend_vm_execute.h:2104
#10 0x000000000060a70c in execute (op_array=0x801797968) at /var/build/lang/php5/work/php-5.2.14/Zend/zend_vm_execute.h:92
#11 0x00000000005e4c21 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /var/build/lang/php5/work/php-5.2.14/Zend/zend.c:1215
#12 0x000000000059130b in php_execute_script (primary_file=0x7ffffffff560) at /var/build/lang/php5/work/php-5.2.14/main/main.c:2057
#13 0x0000000000662613 in main (argc=2, argv=0x7ffffffff6f8) at /var/build/lang/php5/work/php-5.2.14/sapi/cli/php_cli.c:1171

Actions #1

Updated by ftigeot over 13 years ago

Hi,

On Fri, Oct 22, 2010 at 04:57:51PM +0200, Damian Lubosch wrote:

After upgrading to Dfly 2.8 64 bit my PHP installation is doing core-dumps
when an web-application tries to execute the gettext (multi-language-support)
functionality.

This is due to a known bug in the pkgsrc version of gettext-lib:

http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=43879

For the moment, your best bet is to apply the patches in the above PR by hand
and recompile devel/gettext-lib.

The fixes should be committed real soon now;

Actions #2

Updated by marino over 11 years ago

  • Description updated (diff)
  • Status changed from New to Closed
  • Assignee deleted (0)
Actions

Also available in: Atom PDF