php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13896 Segmentation fault with xslt extention
Submitted: 2001-11-01 03:41 UTC Modified: 2001-12-07 22:14 UTC
From: jens at ja-web dot de Assigned:
Status: Closed Package: XSLT related
PHP Version: 4.1.0RC1 OS: Linux RH 7.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jens at ja-web dot de
New email:
PHP Version: OS:

 

 [2001-11-01 03:41 UTC] jens at ja-web dot de
php-4.1.0-RC1 on Linux RH 7.2, Apache-1.3.20

'./configure' '--with-config-file-path=/etc' '--with-xml'
'--with-mysql=/usr' '--with-apxs=/usr/sbin/apxs' '--with-ttf=/usr'
'--with-gd=/usr/' '--with-jpeg-dir=/usr' '--with-png-dir=/usr/lib'
'--with-tiff-dir=/usr/lib' '--with-zlib' '--enable-memory-limit'
'--enable-track-vars' '--disable-debug' '--enable-xslt'
'--with-xslt-sablot' '--without-pear' '--with-t1lib=/usr'
'--with-pdflib=/usr/local/lib'
'--enable-bcmath'

when I access php-pages that use xslt functions to transform xml data I often get errors in apache like " [notice] child pid 27300 exit signal Segmentation fault (11)"



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-01 03:44 UTC] derick@php.net
Can you make a backtrace and provide a short reproducing script?

Derick
 [2001-11-01 06:38 UTC] jens at ja-web dot de
$xsl = $root . "/styles/travel.xsl";

//$xml_str is read from a database

$xp = xslt_create();

$content = xslt_process($xp, 'arg:/xmldata', $xsl, NULL, array('xmldata' => $xml_str ), $HTTP_GET_VARS);

xslt_free($xp);

###########################################################
sample $str_xml:
<?xml version="1.0" encoding="ISO-8859-1" ?><mycms><baseurl><?xml version="1.0" encoding="iso-8859-1" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="no" encoding="iso-8859-1"/>

<xsl:template match="/mycms">
<xsl:apply-templates/>
</xsl:template>

<xsl:template match="baseurl">
</xsl:template>

<xsl:template match="article">
<div class="article">
<xsl:apply-templates/>
</div>
</xsl:template>

<xsl:template match="header">
<div class="header">
<xsl:apply-templates/>
</div>
</xsl:template>

<xsl:template match="date">
<p class="date">
<xsl:apply-templates/>
</p>
</xsl:template>


<xsl:template match="content">
<div class="content">
<xsl:apply-templates/>
</div>
</xsl:template>

<xsl:template match="para">
<div>
<xsl:apply-templates/>
</div>
<br />
</xsl:template>
<xsl:template match="image">
<div class="image {@position}">
<p class="dummy">
<a href="/tools/?src={//baseurl}/{url}" onclick="return showimage('{//baseurl}/{url}')">
<img class="thumb" src="{//baseurl}/thumbs/{url}" alt="{//baseurl}/{url}" border="0" /></a><br />
<span class="caption"><xsl:value-of select="caption"></xsl:value-of></span>
</p>
</div>
</xsl:template>


<xsl:template match="link">
<a>
<xsl:attribute name="href"><xsl:value-of select="url"></xsl:value-of></xsl:attribute>
<xsl:value-of select="text"></xsl:value-of>
</a>
<xsl:text> </xsl:text>
</xsl:template>
<xsl:template match="text()|*"> <xsl:value-of select="."/>
</xsl:template>

</xsl:stylesheet>

/img/travel/long/2001</baseurl><article>
<content>
<para>Heute ist Sightseeing angesagt; ab jetzt keine Hauptstra?en mehr!! Doch wir haben noch ein kleines Problem: wir m??ten mal wieder tanken, doch heute ist Feiertag. Die n?chsten gr??eren Ortschaften sind im Westen, also machen wir uns erstmal in diese Richtung auf den Weg. </para>
<para>Nur wenige Kilometer sp?ter, in Orgelet (D470) ist eine Tankstelle 24/24, wie es ?berall so sch?n hei?t. Allerdings nur mit Tankautomat. Leider nimmt der trotz dickem VISA-Wapperl au?en dran weder unsere Kredit- noch EC-Karten ! Mist, was jetzt? Wir sind nicht die einzigen, die hier tanken m?chten und Heike kann eine Franz?sin, die gerade fertig ist, davon ?berzeugen, da? wir ihr 100 FF geben und sie daf?r mit ihrer Karte etwas Benzin f?r uns zapft - puh, erstmal gerettet!</para>
<para><image position="center"><url>01-01-03.jpg</url><caption>01-01-03.jpg</caption></image>Jetzt geht es wirklich los. Auf D3 und D60 fahren wir durch Onoz, Cernon, Condes nach Thoirette. Die wundersch?ne Landstra?e f?hrt durch Wald und Felder, manchmal hoch oben manchmal unten neben dem Flu? Ain entlang. Die ?berraschung in Toirette: hier hat ein Supermarkt ge?ffnet! Der kommt uns gerade recht zu einem zweiten Fr?hst?ck mit Baguette, Schinken und K?se. </para>
<para>Wir bleiben auf der Rechten Seite des Flusses und fahren nun auf der D936 weiter nach S?den. Etwa auf halbem Weg nach Corveissat biegt links ein schmales Str??chen. Das ist die D59, die dicht am Flu? entlang f?hrt, wie ich leider zu sp?t merke. So fahren wir nun auf sch?ner kurviger Stra?e hinauf nach Corveissat und weiter auf der D59B durch den Wald. Bald erreichen wir eine Stelle, wo die Stra?e an die Schlucht herran f?hrt: von hier hat man eine sch?ne Aussicht auf den Flu?, die D59 unten entlang, die Br?cke auf die andere Seite - war doch garnicht so schlecht, da? ich mich verfahren habe.</para>
<para><image position="center"><url>01-01-06.jpg</url><caption>01-01-06.jpg</caption></image>Es geht weiter nach Cize und nun auf der D59, vorbei an Roman?che bis Hautecourt-Roman?che. Hier treffen wir auf die D979. Nach rechts f?hrt sie nach Bourg-en-Bresse, unserem n?chsten Ziel - die 100FF Benzin sind n?mlich bald wieder hin. Die Stra?e f?hrt die letzten Kilometer fast kerzengerade auf die Stadt zu. Dahinter ist viel flaches Land und weit im Hintergrund sieht man wieder Berge. Das mu? der Beginn vom Massiv Central sein. In Bourg angekommen finden wir zwar keine Tankstelle - wieder nur Automaten - aber eineNn McDonalds; dann tanken wir erstmal selbst. Au wei, ist das teuer hier ...</para>
<para>N?chste M?glichkeit zum Tanken ist dann wohl Macon, ca. 30km westlich und laut Karte etwas gr??er als Bourg. Die Stra?e dorthin, die N79 ist nicht so schlimm wie bef?rchtet; zwar fast schnurgerade aber etwas h?gelig und durch gr?ne Landschaft. In Macon dann endlich eine richtige Tankstelle - der Tag ist gerettet. Wir sind nun auch schon fast am Fu? der Berge, die wir vor 2 Stunden gesehen haben. Da fahren wir jetzt rauf.</para>
<para>Wir verlassen die Stadt auf der N6 nach S?den. Nach wenigen Kilometern, in Creches-sur-Saone biegen wir nach rechts in die D31 ab. Nun geht es hinauf in die Weinberge. Wir fahren kreuz und quer, immer weiter bergan, grobe Richtung: Westen. Es ist unm?glich den Weg auf der Karte mit zu verfolgen, wenn man nicht an jeder Kreuzung anh?lt. Und Anhalten geht im Moment nicht - die Strecke macht zu viel Spa?! Wir passieren Ouroux und erreichen einen gro?en Kreisverkehr in der N?he von Monsols. Ah ja, jetzt pa?t auch die Karte wieder. </para>
<para>Nun geht es weiter nach S?den. Die D23 f?hr kilometerlang sch?n kurvig durch W?lder. Die D9 f?hrt dann ins Tal hinab. Hier fahren wir ein kurzes St?ck auf der Hauptstra?e D485 nach Norden und biegen gleich wieder links auf die D9 ab. Ein kurzes St?ck bergan und dann nochmal links: die D54 nach Gandris. Kurven, Kurven, Kurven! In Gandris treffen wir auf die D504 die aus dem Tal kommt und nach Westen f?hrt. Noch gut 10 km sch?ne Strecke und wir sind in Cublize. Hier gibt es einen Campingplatz in der N?he des Sees. Da bleiben wir f?r heute.</para>

</content>
</article>
</mycms>

##########################################################
sample $xsl:


 [2001-11-01 06:41 UTC] jens at ja-web dot de
ups, the xml/xsl got mixed up a bit while pasting into the input form ...
 [2001-11-01 06:41 UTC] derick@php.net
The bug system made a mess of it, can you put it on the web and make it available for download?

Derick
 [2001-11-01 06:46 UTC] jens at ja-web dot de
how do I provide a backtrace?

thanks Jens
 [2001-11-01 07:03 UTC] jens at ja-web dot de
sample xml: 
http://transalp.com/TMP/samplearticle.xml

sample xsl:
http://transalp.com/styles/travel.xsl


 [2001-11-01 07:36 UTC] jens at ja-web dot de
backtrace No. 1

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:40 UTC] jens at ja-web dot de
backtrace No. 2

Starting program: /usr/sbin/httpd -X
[New Thread 1024 (LWP 26843)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 26843)]
0x40437c62 in destroy_zend_function (function=0x2) at zend_opcode.c:98
98              switch (function->type) {
(gdb) bt
#0  0x40437c62 in destroy_zend_function (function=0x2) at zend_opcode.c:98
#1  0x40445ffd in zend_hash_destroy (ht=0x8128218) at zend_hash.c:541
#2  0x40437d1b in destroy_zend_class (ce=0x8128200) at zend_opcode.c:118
#3  0x40445ec5 in zend_hash_del_key_or_index (ht=0x80ae7c8, arKey=0x811ed30 "db_sql", nKeyLength=7, 
    h=2434980274, flag=0) at zend_hash.c:512
#4  0x404467a8 in zend_hash_reverse_apply (ht=0x80ae7c8, apply_func=0x40434c84 <is_not_internal_class>)
    at zend_hash.c:741
#5  0x404350b9 in shutdown_executor () at zend_execute_API.c:184
#6  0x4043fd23 in zend_deactivate () at zend.c:600
#7  0x40451263 in php_request_shutdown (dummy=0x0) at main.c:736
#8  0x4044d55e in apache_php_module_main (r=0x80f6560, display_source_mode=0) at sapi_apache.c:96
#9  0x4044e354 in send_php (r=0x80f6560, display_source_mode=0, 
    filename=0x80f81a8 "/home/transalp.php/travel/long/index.php") at mod_php4.c:575
#10 0x4044e3ce in send_parsed_php (r=0x80f6560) at mod_php4.c:590
#11 0x080551bd in ap_invoke_handler () at eval.c:41
#12 0x0806735c in ap_some_auth_required () at eval.c:41
#13 0x080673d3 in ap_process_request () at eval.c:41
#14 0x0805fa37 in ap_child_terminate () at eval.c:41
#15 0x0805fbda in ap_child_terminate () at eval.c:41
#16 0x0805fd1d in ap_child_terminate () at eval.c:41
#17 0x0806033e in ap_child_terminate () at eval.c:41
#18 0x08060c03 in main () at eval.c:41
#19 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 UTC] jens at ja-web dot de
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

 [2001-11-01 07:44 UTC] jens at ja-web dot de
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:45 UTC] jens at ja-web dot de
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-12-02 19:28 UTC] mfischer@php.net
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-12-02 19:28 UTC] mfischer@php.net
s/now known/not known/
 [2001-12-02 19:28 UTC] mfischer@php.net
s/now known/not known/
 [2001-12-07 21:41 UTC] jens at ja-web dot de
just tried again with php-4.2.0-dev on Apache/1.3.22


so far, I got no errors!!!



looks good!
 [2001-12-07 22:14 UTC] mfischer@php.net
Great, closing this one.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 00:01:27 2024 UTC