#26015 [Bgs-Opn]: imap_thread Apache2 signal Segmentation fault
ID: 26015 User updated by: tirny at mail dot ru Reported By: tirny at mail dot ru -Status: Bogus +Status: Open Bug Type: IMAP related Operating System: freeBSD 5.1p10 PHP Version: 4.3.4RC3 New Comment: vot Previous Comments: [2003-11-12 05:04:49] tirny at mail dot ru I think, but this bug in PHP. I am try this action with any other version Apache (1.3.29, 2.0.48), UW IMAP, etc. The result is same. It works on RHL8, Windows, bot doesnt work on FreeBSD 5.1. CLI imap_thread works as it has to. But when call this function, and if PHP works as Apache2 module - Apache2 goes to core (child pid 43381 exit signal Segmentation fault (11)). Apache2 not threaded. All is compiled using keys CFLAGS=-O -pipe, COPTFLAGS=-O -pipe [2003-11-03 09:27:37] [EMAIL PROTECTED] Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PHP. Yeah not a PHP issue, note the breakage in the mail_* functions. You might want to report this to the cclient authors and see if they have a solution for this, or are working upon one. [2003-11-03 05:23:20] tirny at mail dot ru configure line: --exec-prefix=/usr/local/php --with-apxs2 --enable-debug --with-config-file-path=/usr/local/etc --with-imap GDB backtrace: #0 0x2859c7d3 in mail_thresd_references () from /usr/local/lib/libc-client4.so.8 #1 0x2859bcf7 in mail_thread_msgs () from /usr/local/lib/libc-client4.so.8 #2 0x285ae7c5 in nntp_thread () from /usr/local/lib/libc-client4.so.8 #3 0x2859bc31 in mail_thread () from /usr/local/lib/libc-client4.so.8 #4 0x284161a6 in zif_mail_thread (ht=1, return_value=0x8172164, this_ptr=0x0, return_value_used=1) at /home/trn/php-4.3.4RC3/ext/imap/php_imap.c:3991 #5 0x2852361e in execute (op_array=0x816b424) at /home/trn/php-4.3.4RC3/Zend/zend_execute.c:1616 #6 0x28511ec1 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /home/trn/php-4.3.4RC3/Zend/zend.c:884 #7 0x284db443 in php_execute_script (primary_file=0xbfbff920) at /home/trn/php-4.3.4RC3/main/main.c:1729 #8 0x285295b6 in php_handler (r=0x8163050) at /home/trn/php-4.3.4RC3/sapi/apache2handler/sapi_apache2.c:537 #9 0x08065239 in ap_run_handler () #10 0x08065844 in ap_invoke_handler () #11 0x08062049 in ap_process_request () #12 0x0805d107 in ap_process_http_connection () #13 0x0806f1e9 in ap_run_process_connection () #14 0x0806f50e in ap_process_connection () #15 0x0806397b in child_main () #16 0x08063a4c in makr_child () #17 0x08063b92 in startup_children () #18 0x08063f66 in ap_mpm_run () #19 0x0806aa66 in main () #20 0x0805cc15 in _start () [2003-10-28 03:57:02] [EMAIL PROTECTED] 1. You didn't read this: http://bugs.php.net/how-to-report.php 2. You didn't give your configure line for PHP 3. You didn't provide GDB backtrace -- Bogus (most likely bug in c-client, or you're trying to use it with threaded apache2) [2003-10-28 00:52:58] tirny at mail dot ru Description: On RHL7.3 Apache2.0.44 PHP4.3.4 (cclient - do not remember version)- is work fine. Changing OS soft on freeBSD, Apache2.0.47, 4.3.4RC1, cclient-2002d,1 not work: script terminated after 30s (in my news group 5 messages) and in apache error log this: child pid 21979 exit signal Segmentation fault (11) Reproduce code: --- ?php $nntp = imap_open({news.mydomain.tld:119/nntp}newsgroup, , ); $headers = imap_headers($nntp); $threads = imap_thread($nntp); while (list($key, $val) = each($threads)) { $tree = explode(., $key); if ($tree[1] == num) { print ul\nli . $headers[$val - 1] . \n; } else if ($tree[1] == branch) { print /ul\n; } } imap_close($nntp); ? -- Edit this bug report at http://bugs.php.net/?id=26015edit=1
#26015 [Bgs]: imap_thread Apache2 signal Segmentation fault
ID: 26015 User updated by: tirny at mail dot ru Reported By: tirny at mail dot ru Status: Bogus Bug Type: IMAP related Operating System: freeBSD 5.1p10 PHP Version: 4.3.4RC3 New Comment: I think, but this bug in PHP. I am try this action with any other version Apache (1.3.29, 2.0.48), UW IMAP, etc. The result is same. It works on RHL8, Windows, bot doesnt work on FreeBSD 5.1. CLI imap_thread works as it has to. But when call this function, and if PHP works as Apache2 module - Apache2 goes to core (child pid 43381 exit signal Segmentation fault (11)). Apache2 not threaded. All is compiled using keys CFLAGS=-O -pipe, COPTFLAGS=-O -pipe Previous Comments: [2003-11-03 09:27:37] [EMAIL PROTECTED] Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PHP. Yeah not a PHP issue, note the breakage in the mail_* functions. You might want to report this to the cclient authors and see if they have a solution for this, or are working upon one. [2003-11-03 05:23:20] tirny at mail dot ru configure line: --exec-prefix=/usr/local/php --with-apxs2 --enable-debug --with-config-file-path=/usr/local/etc --with-imap GDB backtrace: #0 0x2859c7d3 in mail_thresd_references () from /usr/local/lib/libc-client4.so.8 #1 0x2859bcf7 in mail_thread_msgs () from /usr/local/lib/libc-client4.so.8 #2 0x285ae7c5 in nntp_thread () from /usr/local/lib/libc-client4.so.8 #3 0x2859bc31 in mail_thread () from /usr/local/lib/libc-client4.so.8 #4 0x284161a6 in zif_mail_thread (ht=1, return_value=0x8172164, this_ptr=0x0, return_value_used=1) at /home/trn/php-4.3.4RC3/ext/imap/php_imap.c:3991 #5 0x2852361e in execute (op_array=0x816b424) at /home/trn/php-4.3.4RC3/Zend/zend_execute.c:1616 #6 0x28511ec1 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /home/trn/php-4.3.4RC3/Zend/zend.c:884 #7 0x284db443 in php_execute_script (primary_file=0xbfbff920) at /home/trn/php-4.3.4RC3/main/main.c:1729 #8 0x285295b6 in php_handler (r=0x8163050) at /home/trn/php-4.3.4RC3/sapi/apache2handler/sapi_apache2.c:537 #9 0x08065239 in ap_run_handler () #10 0x08065844 in ap_invoke_handler () #11 0x08062049 in ap_process_request () #12 0x0805d107 in ap_process_http_connection () #13 0x0806f1e9 in ap_run_process_connection () #14 0x0806f50e in ap_process_connection () #15 0x0806397b in child_main () #16 0x08063a4c in makr_child () #17 0x08063b92 in startup_children () #18 0x08063f66 in ap_mpm_run () #19 0x0806aa66 in main () #20 0x0805cc15 in _start () [2003-10-28 03:57:02] [EMAIL PROTECTED] 1. You didn't read this: http://bugs.php.net/how-to-report.php 2. You didn't give your configure line for PHP 3. You didn't provide GDB backtrace -- Bogus (most likely bug in c-client, or you're trying to use it with threaded apache2) [2003-10-28 00:52:58] tirny at mail dot ru Description: On RHL7.3 Apache2.0.44 PHP4.3.4 (cclient - do not remember version)- is work fine. Changing OS soft on freeBSD, Apache2.0.47, 4.3.4RC1, cclient-2002d,1 not work: script terminated after 30s (in my news group 5 messages) and in apache error log this: child pid 21979 exit signal Segmentation fault (11) Reproduce code: --- ?php $nntp = imap_open({news.mydomain.tld:119/nntp}newsgroup, , ); $headers = imap_headers($nntp); $threads = imap_thread($nntp); while (list($key, $val) = each($threads)) { $tree = explode(., $key); if ($tree[1] == num) { print ul\nli . $headers[$val - 1] . \n; } else if ($tree[1] == branch) { print /ul\n; } } imap_close($nntp); ? -- Edit this bug report at http://bugs.php.net/?id=26015edit=1
#26015 [Bgs-Opn]: imap_thread Apache2 signal Segmentation fault
ID: 26015 User updated by: tirny at mail dot ru Reported By: tirny at mail dot ru -Status: Bogus +Status: Open Bug Type: IMAP related Operating System: freeBSD 5.1p10 -PHP Version: 4.3.4RC2 +PHP Version: 4.3.4RC3 New Comment: configure line: --exec-prefix=/usr/local/php --with-apxs2 --enable-debug --with-config-file-path=/usr/local/etc --with-imap GDB backtrace: #0 0x2859c7d3 in mail_thresd_references () from /usr/local/lib/libc-client4.so.8 #1 0x2859bcf7 in mail_thread_msgs () from /usr/local/lib/libc-client4.so.8 #2 0x285ae7c5 in nntp_thread () from /usr/local/lib/libc-client4.so.8 #3 0x2859bc31 in mail_thread () from /usr/local/lib/libc-client4.so.8 #4 0x284161a6 in zif_mail_thread (ht=1, return_value=0x8172164, this_ptr=0x0, return_value_used=1) at /home/trn/php-4.3.4RC3/ext/imap/php_imap.c:3991 #5 0x2852361e in execute (op_array=0x816b424) at /home/trn/php-4.3.4RC3/Zend/zend_execute.c:1616 #6 0x28511ec1 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /home/trn/php-4.3.4RC3/Zend/zend.c:884 #7 0x284db443 in php_execute_script (primary_file=0xbfbff920) at /home/trn/php-4.3.4RC3/main/main.c:1729 #8 0x285295b6 in php_handler (r=0x8163050) at /home/trn/php-4.3.4RC3/sapi/apache2handler/sapi_apache2.c:537 #9 0x08065239 in ap_run_handler () #10 0x08065844 in ap_invoke_handler () #11 0x08062049 in ap_process_request () #12 0x0805d107 in ap_process_http_connection () #13 0x0806f1e9 in ap_run_process_connection () #14 0x0806f50e in ap_process_connection () #15 0x0806397b in child_main () #16 0x08063a4c in makr_child () #17 0x08063b92 in startup_children () #18 0x08063f66 in ap_mpm_run () #19 0x0806aa66 in main () #20 0x0805cc15 in _start () Previous Comments: [2003-10-28 03:57:02] [EMAIL PROTECTED] 1. You didn't read this: http://bugs.php.net/how-to-report.php 2. You didn't give your configure line for PHP 3. You didn't provide GDB backtrace -- Bogus (most likely bug in c-client, or you're trying to use it with threaded apache2) [2003-10-28 00:52:58] tirny at mail dot ru Description: On RHL7.3 Apache2.0.44 PHP4.3.4 (cclient - do not remember version)- is work fine. Changing OS soft on freeBSD, Apache2.0.47, 4.3.4RC1, cclient-2002d,1 not work: script terminated after 30s (in my news group 5 messages) and in apache error log this: child pid 21979 exit signal Segmentation fault (11) Reproduce code: --- ?php $nntp = imap_open({news.mydomain.tld:119/nntp}newsgroup, , ); $headers = imap_headers($nntp); $threads = imap_thread($nntp); while (list($key, $val) = each($threads)) { $tree = explode(., $key); if ($tree[1] == num) { print ul\nli . $headers[$val - 1] . \n; } else if ($tree[1] == branch) { print /ul\n; } } imap_close($nntp); ? -- Edit this bug report at http://bugs.php.net/?id=26015edit=1
#26015 [NEW]: imap_thread Apache2 signal Segmentation fault
From: tirny at mail dot ru Operating system: freeBSD 5.1p10 PHP version: 4.3.4RC2 PHP Bug Type: IMAP related Bug description: imap_thread Apache2 signal Segmentation fault Description: On RHL7.3 Apache2.0.44 PHP4.3.4 (cclient - do not remember version)- is work fine. Changing OS soft on freeBSD, Apache2.0.47, 4.3.4RC1, cclient-2002d,1 not work: script terminated after 30s (in my news group 5 messages) and in apache error log this: child pid 21979 exit signal Segmentation fault (11) Reproduce code: --- ?php $nntp = imap_open({news.mydomain.tld:119/nntp}newsgroup, , ); $headers = imap_headers($nntp); $threads = imap_thread($nntp); while (list($key, $val) = each($threads)) { $tree = explode(., $key); if ($tree[1] == num) { print ul\nli . $headers[$val - 1] . \n; } else if ($tree[1] == branch) { print /ul\n; } } imap_close($nntp); ? -- Edit bug report at http://bugs.php.net/?id=26015edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26015r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26015r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26015r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26015r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26015r=needtrace Try newer version: http://bugs.php.net/fix.php?id=26015r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=26015r=support Expected behavior: http://bugs.php.net/fix.php?id=26015r=notwrong Not enough info:http://bugs.php.net/fix.php?id=26015r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=26015r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26015r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26015r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26015r=dst IIS Stability: http://bugs.php.net/fix.php?id=26015r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=26015r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26015r=float