ID:               19482
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Feedback
 Bug Type:         PCRE related
 Operating System: Redhat 7.3
 PHP Version:      4.2.3,4.3.0-dev
 New Comment:

[EMAIL PROTECTED] :
Can you try that again, but when you hit the segfault,
type the following commands into gdb:

up
print locale
print pce
print pce->locale



Previous Comments:
------------------------------------------------------------------------

[2002-10-06 04:46:27] [EMAIL PROTECTED]

Still getting the segfault at almost the same place.  Seems a lot
easier to reproduce now.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 8821)]
0x4207fb88 in strcmp () from /lib/i686/libc.so.6
(gdb) bt
#0  0x4207fb88 in strcmp () from /lib/i686/libc.so.6
#1  0x40304db2 in pcre_get_compiled_regex (
    regex=0x819925c "|Internet Explorer/([0-9.]+)|", extra=0xbfff8ebc,
    preg_options=0xbfff8eb4) at
/tmp/php4-200210060000/ext/pcre/php_pcre.c:158
#2  0x40305827 in php_pcre_match (ht=3, return_value=0x81353cc,
this_ptr=0x0,
    return_value_used=1, global=0) at
/tmp/php4-200210060000/ext/pcre/php_pcre.c:408
#3  0x40305e74 in zif_preg_match (ht=3, return_value=0x81353cc,
this_ptr=0x0,
    return_value_used=1) at
/tmp/php4-200210060000/ext/pcre/php_pcre.c:559
#4  0x403eafa3 in execute (op_array=0x81e5dfc)
    at /tmp/php4-200210060000/Zend/zend_execute.c:1597
#5  0x403eb1d6 in execute (op_array=0x8198e24)
    at /tmp/php4-200210060000/Zend/zend_execute.c:1641
#6  0x403eb1d6 in execute (op_array=0x8223314)
    at /tmp/php4-200210060000/Zend/zend_execute.c:1641
#7  0x403ed202 in execute (op_array=0x817d5e4)
    at /tmp/php4-200210060000/Zend/zend_execute.c:2163
#8  0x403d9128 in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
    at /tmp/php4-200210060000/Zend/zend.c:834
#9  0x403a2b92 in php_execute_script (primary_file=0xbffff6f0)
    at /tmp/php4-200210060000/main/main.c:1542
#10 0x403eff12 in apache_php_module_main (r=0x808cf18,
display_source_mode=0)
    at /tmp/php4-200210060000/sapi/apache/sapi_apache.c:55
#11 0x403f0e0c in send_php (r=0x808cf18, display_source_mode=0,
    filename=0x808ec10 "/var/www/modesmail/horde/imp/redirect.php")
    at /tmp/php4-200210060000/sapi/apache/mod_php4.c:564
#12 0x403f0e79 in send_parsed_php (r=0x808cf18)
---Type <return> to continue, or q <return> to quit---
    at /tmp/php4-200210060000/sapi/apache/mod_php4.c:579
#13 0x0805475d in ap_invoke_handler ()
#14 0x080672dc in process_request_internal ()
#15 0x08067353 in ap_process_request ()
#16 0x0805f587 in child_main ()
#17 0x0805f72a in make_child ()
#18 0x0805f86d in startup_children ()
#19 0x0805fec0 in standalone_main ()
#20 0x080607c3 in main ()
#21 0x42017589 in __libc_start_main () from /lib/i686/libc.so.6

------------------------------------------------------------------------

[2002-10-05 09:43:33] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip



------------------------------------------------------------------------

[2002-10-01 15:16:37] [EMAIL PROTECTED]

hello!

i have nearly the same problem...

i've wondered, that sometimes are segfaults in the error_log. i have
installed 
the newest php (4.2.3) & apache (1.3.26) version.

now i have found a cause:

if this in the mail header:
From: ()

imp shows &nbsp; as sender. with the attempt to open the email, the
apache-
process segfaulted. after some try, i could fetch a strace-log from the
process.

you can found it here: http://dpits.de/segfault.log

thank you!

bye
daniel prior

------------------------------------------------------------------------

[2002-09-27 10:53:40] [EMAIL PROTECTED]

I upgraded from 4.1.2 to 4.2.3 yesterday and have seen many seg faults
in the error_log when I came in this morning.

I am using Apache 1.3.26, mod_ssl 2.8.10, Openssl 0.9.6g, Compaq Tru64
4.0G.

My PHP configure is pretty basic:
./configure --with-mysql --with-imap --with-curl --quiet
--with-apxs=(path_to_apxs)

We, also, are using IMP (2.2.7).  I have not tried to produce the
seg-faults

------------------------------------------------------------------------

[2002-09-25 14:51:06] [EMAIL PROTECTED]

I'm encounting this same bug using Horde/IMP/Turba (2.1/3.1/1.1) on Red
Hat 7.3 with all updates (except mm-1.1.3-8 which seems to cause
problems with  Apache restarts) and here's what i've tried:

- compiling Apache (1.3.26), PHP (4.2.3), and mod_ssl (2.8.10) without
mm support
- compiling PHP 4.2.3 without mm support and using the pcre library
packaged with Red Hat 
- downloading a fresh pcre library (v3.9) and compiling PHP against
that.
- compiling everything with mm support and external pcre library (3.9)

In each case the same segfault occurs.
If i compile the software (Apache, mod_ssl, PHP) with debugging symbols
i can't get the segfault to occur.  Been through about 300 test
messages and it still hasn't segfaulted.
This is driving me nuts.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/19482

-- 
Edit this bug report at http://bugs.php.net/?id=19482&edit=1

Reply via email to