regex cacheing segfault
| From: | Rasmus Lerdorf | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | regex cacheing segfault | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-3079@lists.php.net to get a copy of this message | ||
This new regex cacheing code needs a bit of debugging. It is quite broken
at the moment. I'll take a look later on tonight, but if Sascha is awake,
please have a look.
Program received signal SIGSEGV, Segmentation fault.
_efree (ptr=0xffffffe8, filename=0x154300 "functions/reg.c", lineno=86) at
alloc.c:166
166 if ((p->size < MAX_CACHED_MEMORY) &&
(GLOBAL(cache_count[p->size]) < MAX_CACHED_ENTRIES)) {
(gdb) bt
#0 _efree (ptr=0xffffffe8, filename=0x154300 "functions/reg.c",
lineno=86) at alloc.c:166
#1 0x8594c in _php3_regcomp (ht=0x0, return_value=0x1dbb68,
list=0x1f41b8, plist=0x1f8938, preg=0xefffe440,
pattern=0x28a368 "<b>|</b>", cflags=3) at functions/reg.c:86
#2 0x85ed0 in __php3_regreplace (ht=0x299cc8, return_value=0x1dbb68,
list=0x1f41b8, plist=0x1f8938,
pattern=0x28a368 "<b>|</b>", replace=0x14d468 "",
string=0x2a5440
"<b>Box + paper</b>", icase=1, extended=1)
at functions/reg.c:288
#3 0x863e4 in _php3_eregreplace (ht=0x299cc8, return_value=0x1dbb68,
list=0x1f41b8, plist=0x1f8938, icase=1)
at functions/reg.c:448
#4 0x8656c in php3_eregireplace (ht=0x299cc8, return_value=0x1dbb68,
list=0x1f41b8, plist=0x1f8938) at functions/reg.c:472
#5 0x9c008 in phpparse () at control_structures_inline.h:930
#6 0x590ec in php3_parse (yyin=0x1f4400) at main.c:1471
#7 0x593f8 in apache_php3_module_main (r=0x231480, fd=2078720,
display_source_mode=0, preprocessed=0) at main.c:1851
#8 0x5619c in send_php3 ()
#9 0x5622c in send_parsed_php3 ()
#10 0xabf20 in ap_invoke_handler ()
#11 0xc6d4c in process_request_internal ()
#12 0xc6dcc in ap_process_request ()
#13 0xbb834 in child_main ()
#14 0xbba9c in make_child ()
#15 0xbbc98 in startup_children ()
#16 0xbc56c in standalone_main ()
#17 0xbd0bc in main ()
-Rasmus
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net