Apache is compiled with expat-lite? 
Apache must be compiled against system libexpat.

This kind of random segfaults with xslt indicate that 
apache is not compiled against system libexpat.

Lenar

[EMAIL PROTECTED] wrote:

> ID: 13896
> Updated by: mfischer
> Reported By: [EMAIL PROTECTED]
> Status: Open
> Bug Type: XSLT related
> Operating System: Linux RH 7.2
> PHP Version: 4.1.0RC1
> New Comment:
> 
> s/now known/not known/
> 
> Previous Comments:
> ------------------------------------------------------------------------
> 
> [2001-12-02 19:28:54] [EMAIL PROTECTED]
> 
> s/now known/not known/
> 
> ------------------------------------------------------------------------
> 
> [2001-12-02 19:28:27] [EMAIL PROTECTED]
> 
> The following somehow works for me:
> 
> <?php
> 
> $xp = xslt_create();
> 
> $content = xslt_process($xp, 'arg:/xmldata', '13896.xsl', NULL,
> array('xmldata' => join('', file('13896.xml'))), $HTTP_GET_VARS);
> 
> xslt_free($xp);
> ?>
> 
> except that it bails out that the encoding is now known and the xml not
> valid. However, no crash.
> 
> ------------------------------------------------------------------------
> 
> [2001-11-01 07:45:39] [EMAIL PROTECTED]
> 
> and yet anoter bt:
> 
> 
> Starting program: /usr/sbin/httpd -X
> [New Thread 1024 (LWP 26820)]
>                  
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 1024 (LWP 26820)]
> 0x401bef29 in chunk_free (ar_ptr=0x40272a00, p=0x8104608) at malloc.c:3242
> 3242    malloc.c: No such file or directory.
>         in malloc.c
> (gdb)   bt
> #0  0x401bef29 in chunk_free (ar_ptr=0x40272a00, p=0x8104608) at
> #malloc.c:3242
> #1  0x401becd4 in __libc_free (mem=0x8104610) at malloc.c:3154
> #2  0x4057f1f6 in __builtin_delete (ptr=0x8104610) from
> #/usr//lib/libstdc++-libc6.2-2.so.3
> #3  0x405fe5c7 in Expression::~Expression () from /usr//lib/libsablot.so.0
> #4  0x4063f8ee in PList<Expression *>::freeall () from
> #/usr//lib/libsablot.so.0
> #5  0x405fe601 in Expression::clearContent () from
> #/usr//lib/libsablot.so.0
> #6  0x405fe5a0 in Expression::~Expression () from /usr//lib/libsablot.so.0
> #7  0x406330c5 in Attribute::~Attribute () from /usr//lib/libsablot.so.0
> #8  0x40630b30 in VertexList::destructMembers () from
> #/usr//lib/libsablot.so.0
> #9  0x406319a9 in Element::~Element () from /usr//lib/libsablot.so.0
> #10 0x40648846 in XSLElement::~XSLElement () from /usr//lib/libsablot.so.0
> #11 0x40630b30 in VertexList::destructMembers () from
> #/usr//lib/libsablot.so.0 12 0x40631379 in Daddy::~Daddy () from
> #/usr//lib/libsablot.so.0 13 0x406319e4 in Element::~Element () from
> #/usr//lib/libsablot.so.0 14 0x40648846 in XSLElement::~XSLElement () from
> #/usr//lib/libsablot.so.0 15 0x40630b30 in VertexList::destructMembers ()
> #from /usr//lib/libsablot.so.0 16 0x40631379 in Daddy::~Daddy () from
> #/usr//lib/libsablot.so.0 17 0x406319e4 in Element::~Element () from
> #/usr//lib/libsablot.so.0 18 0x406315b6 in RootNode::~RootNode () from
> #/usr//lib/libsablot.so.0 19 0x40627e5c in Tree::~Tree () from
> #/usr//lib/libsablot.so.0 20 0x4061b389 in DataLineItem::~DataLineItem ()
> #from /usr//lib/libsablot.so.0 21 0x4064463b in PList<DataLineItem
> #*>::freerm () from /usr//lib/libsablot.so.0 22 0x4061b920 in
> #Processor::freeNonArgDatalines () from /usr//lib/libsablot.so.0 23
> #0x4061ba98 in Processor::cleanupAfterRun () from /usr//lib/libsablot.so.0
> #24 0x40621cbd in SablotRunProcessor () from /usr//lib/libsablot.so.0 25
> #0x4050c946 in zif_xslt_process (ht=6, return_value=0x8111a3c,
> #this_ptr=0x0, return_value_used=1)
>     at sablot.c:512
> #26 0x4042fc81 in execute (op_array=0x80fe88c) at ./zend_execute.c:1590
> #27 0x40431e8e in execute (op_array=0x8120f6c) at ./zend_execute.c:2133
> #28 0x4044057c in zend_execute_scripts (type=8, retval=0x0, file_count=3)
> #at zend.c:814
> ---Type <return> to continue, or q <return> to quit---
> #29 0x40452712 in php_execute_script (primary_file=0xbfffef90) at
> #main.c:1310 30 0x4044d4e6 in apache_php_module_main (r=0x80f6560,
> #display_source_mode=0) at sapi_apache.c:90 31 0x4044e354 in send_php
> #(r=0x80f6560, display_source_mode=0,
>     filename=0x80f81b8 "/home/transalp.php/travel/long/index.php") at
>     mod_php4.c:575
> #32 0x4044e3ce in send_parsed_php (r=0x80f6560) at mod_php4.c:590
> #33 0x080551bd in ap_invoke_handler () at eval.c:41
> #34 0x0806735c in ap_some_auth_required () at eval.c:41
> #35 0x080673d3 in ap_process_request () at eval.c:41
> #36 0x0805fa37 in ap_child_terminate () at eval.c:41
> #37 0x0805fbda in ap_child_terminate () at eval.c:41
> #38 0x0805fd1d in ap_child_terminate () at eval.c:41
> #39 0x0806033e in ap_child_terminate () at eval.c:41
> #40 0x08060c03 in main () at eval.c:41
> #41 0x4015a627 in __libc_start_main (main=0x8060780 <main>, argc=2,
> #ubp_av=0xbffff414,
>     init=0x804fb20 <_init>, fini=0x8089450 <_fini>, rtld_fini=0x4000dcd4
>     <_dl_fini>, stack_end=0xbffff40c) at
>     ../sysdeps/generic/libc-start.c:129
> 
> 
> ------------------------------------------------------------------------
> 
> [2001-11-01 07:44:42] [EMAIL PROTECTED]
> 
> finally an xslt-related backtrace:
> 
> Starting program: /usr/sbin/httpd -X
> [New Thread 1024 (LWP 26473)]
> 
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 1024 (LWP 26473)]
> __libc_free (mem=0x2) at malloc.c:3136
> 3136    malloc.c: No such file or directory.
>         in malloc.c
> (gdb) bt
> #0  __libc_free (mem=0x2) at malloc.c:3136
> #1  0x0807a5d2 in hashTableDestroy () at eval.c:41
> #2  0x08079a50 in XML_ErrorString () at eval.c:41
> #3  0x08075305 in XML_ParserFree () at eval.c:41
> #4  0x40618c39 in TreeConstructer::parseDataLineUsingExpat () from
> #/usr//lib/libsablot.so.0
> #5  0x4062b9ab in Tree::parse () from /usr//lib/libsablot.so.0
> #6  0x4061da87 in Processor::addLineParse () from /usr//lib/libsablot.so.0
> #7  0x4061e1b8 in Processor::readTreeFromURI () from
> #/usr//lib/libsablot.so.0
> #8  0x4061bdbe in Processor::open () from /usr//lib/libsablot.so.0
> #9  0x40621c2d in SablotRunProcessor () from /usr//lib/libsablot.so.0
> #10 0x4050c946 in zif_xslt_process (ht=6, return_value=0x810e5b4,
> #this_ptr=0x0, return_value_used=1)
>     at sablot.c:512
> #11 0x4042fc81 in execute (op_array=0x8106ca4) at ./zend_execute.c:1590
> #12 0x40431e8e in execute (op_array=0x81069cc) at ./zend_execute.c:2133
> #13 0x4044057c in zend_execute_scripts (type=8, retval=0x0, file_count=3)
> #at zend.c:814 14 0x40452712 in php_execute_script
> #(primary_file=0xbfffef00) at main.c:1310 15 0x4044d4e6 in
> #apache_php_module_main (r=0x80f94c0, display_source_mode=0) at
> #sapi_apache.c:90 16 0x4044e354 in send_php (r=0x80f94c0,
> #display_source_mode=0,
>     filename=0x80f9ab0 "/home/transalp.php/travel/long/index.php") at
>     mod_php4.c:575
> #17 0x4044e3ce in send_parsed_php (r=0x80f94c0) at mod_php4.c:590
> #18 0x080551bd in ap_invoke_handler () at eval.c:41
> #19 0x0806735c in ap_some_auth_required () at eval.c:41
> #20 0x403a4d43 in handle_dir () from /etc/httpd/modules/mod_dir.so
> #21 0x080551bd in ap_invoke_handler () at eval.c:41
> #22 0x0806735c in ap_some_auth_required () at eval.c:41
> #23 0x080673d3 in ap_process_request () at eval.c:41
> #24 0x0805fa37 in ap_child_terminate () at eval.c:41
> #25 0x0805fbda in ap_child_terminate () at eval.c:41
> #26 0x0805fd1d in ap_child_terminate () at eval.c:41
> #27 0x0806033e in ap_child_terminate () at eval.c:41
> ---Type <return> to continue, or q <return> to quit---
> #28 0x08060c03 in main () at eval.c:41
> #29 0x4015a627 in __libc_start_main (main=0x8060780 <main>, argc=2,
> #ubp_av=0xbffff414,
>     init=0x804fb20 <_init>, fini=0x8089450 <_fini>, rtld_fini=0x4000dcd4
>     <_dl_fini>, stack_end=0xbffff40c) at
>     ../sysdeps/generic/libc-start.c:129
> 
> 
> ------------------------------------------------------------------------
> 
> [2001-11-01 07:44:21] [EMAIL PROTECTED]
> 
> backtrace no. 3
> 
> Starting program: /usr/sbin/httpd -X
> [New Thread 1024 (LWP 26867)]
> 
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 1024 (LWP 26867)]
> 0x40437e4f in destroy_op_array (op_array=0x8127efc) at zend_opcode.c:155
> 155                     if (opline->op1.op_type==IS_CONST) {
> (gdb) bt
> #0  0x40437e4f in destroy_op_array (op_array=0x8127efc) at
> #zend_opcode.c:155
> #1  0x40437c83 in destroy_zend_function (function=0x8127efc) at
> #zend_opcode.c:100
> #2  0x40445ffd in zend_hash_destroy (ht=0x81294f8) at zend_hash.c:541
> #3  0x40437d1b in destroy_zend_class (ce=0x81294e0) at zend_opcode.c:118
> #4  0x40445ec5 in zend_hash_del_key_or_index (ht=0x80ae7c8,
> #arKey=0x81294c8 "xslt_transformer",
>     nKeyLength=17, h=1690362034, flag=0) at zend_hash.c:512
> #5  0x404467a8 in zend_hash_reverse_apply (ht=0x80ae7c8,
> #apply_func=0x40434c84 <is_not_internal_class>)
>     at zend_hash.c:741
> #6  0x404350b9 in shutdown_executor () at zend_execute_API.c:184
> #7  0x4043fd23 in zend_deactivate () at zend.c:600
> #8  0x40451263 in php_request_shutdown (dummy=0x0) at main.c:736
> #9  0x4044d55e in apache_php_module_main (r=0x80f6560,
> #display_source_mode=0) at sapi_apache.c:96 10 0x4044e354 in send_php
> #(r=0x80f6560, display_source_mode=0,
>     filename=0x80f81c8 "/home/transalp.php/travel/long/index.php") at
>     mod_php4.c:575
> #11 0x4044e3ce in send_parsed_php (r=0x80f6560) at mod_php4.c:590
> #12 0x080551bd in ap_invoke_handler () at eval.c:41
> #13 0x0806735c in ap_some_auth_required () at eval.c:41
> #14 0x080673d3 in ap_process_request () at eval.c:41
> #15 0x0805fa37 in ap_child_terminate () at eval.c:41
> #16 0x0805fbda in ap_child_terminate () at eval.c:41
> #17 0x0805fd1d in ap_child_terminate () at eval.c:41
> #18 0x0806033e in ap_child_terminate () at eval.c:41
> #19 0x08060c03 in main () at eval.c:41
> #20 0x4015a627 in __libc_start_main (main=0x8060780 <main>, argc=2,
> #ubp_av=0xbffff414,
>     init=0x804fb20 <_init>, fini=0x8089450 <_fini>, rtld_fini=0x4000dcd4
>     <_dl_fini>, stack_end=0xbffff40c) at
>     ../sysdeps/generic/libc-start.c:129
> 
> 
> ------------------------------------------------------------------------
> 
> 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/?id=13896
> 
> 
> Edit this bug report at http://bugs.php.net/?id=13896&edit=1

-- 
Lenar Lõhmus
Vision Group

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to