ID:               27811
 User updated by:  andrei at vinchi dot ru
 Reported By:      andrei at vinchi dot ru
-Status:           Feedback
+Status:           Open
 Bug Type:         *XML functions
 Operating System: Red Hat 7.2, SlackWare 9.0
 PHP Version:      4.3.5
 New Comment:

Here they are:



Program received signal SIGSEGV, Segmentation fault.

normal_updatePosition (enc=0x815f760,

    ptr=0x821d560 "ONTENT-DATA-175 CONTENT-DATA-176 CONTENT-DATA-177
CONTENT-DATA-178 CONTENT-DATA-179 CONTENT-DATA-180 CONTENT-DATA-181
CONTENT-DATA-182 CONTENT-DATA-183 CONTENT-DATA-184 CONTENT-DATA-185
CONTENT-DATA-1"...,

    end=0x821b888
" DESCRIPTION-1 DESCRIPTION-2 DESCRIPTION-3 DESCRIPTION-4 DESCRIPTION-5 DESCRIPTION-6 DESCRIPTION-7 DESCRIPTION-8 DESCRIPTION-9 DESCRIPTION-10 DES"...,
pos=0x8214ff8)

    at
/andrei/php/build/php4-STABLE-200404010630/ext/xml/expat/xmltok_impl.c:1747

1747        switch (BYTE_TYPE(enc, ptr)) {



That's all. May be you need something else?



The CGI version (not only cgi, but apache module too) of PHP supplayed
with SlackWare 9.0 has this bug. It can be used for check.


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

[2004-04-01 03:16:25] [EMAIL PROTECTED]

Can you add the info of the crash (the few lines above the "bt"
command) too?

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

[2004-04-01 02:56:52] andrei at vinchi dot ru

This is back trace in gdb.



(gdb) bt

#0  normal_updatePosition (enc=0x815f760,

    ptr=0x821d560 "ONTENT-DATA-175 CONTENT-DATA-176 CONTENT-DATA-177
CONTENT-DATA-178 CONTENT-DATA-179 CONTENT-DATA-180 CONTENT-DATA-181
CONTENT-DATA-182 CONTENT-DATA-183 CONTENT-DATA-184 CONTENT-DATA-185
CONTENT-DATA-1"...,

    end=0x821b888
" DESCRIPTION-1 DESCRIPTION-2 DESCRIPTION-3 DESCRIPTION-4 DESCRIPTION-5 DESCRIPTION-6 DESCRIPTION-7 DESCRIPTION-8 DESCRIPTION-9 DESCRIPTION-10 DES"...,
pos=0x8214ff8)

    at
/andrei/php/build/php4-STABLE-200404010630/ext/xml/expat/xmltok_impl.c:1747

#1  0x08109bd8 in php_XML_GetCurrentLineNumber (parser=0x8214e70)

    at
/andrei/php/build/php4-STABLE-200404010630/ext/xml/expat/xmlparse.c:1571

#2  0x081082af in zif_xml_get_current_line_number (ht=1,
return_value=0x8213bcc, this_ptr=0x0, return_value_used=1)

    at /andrei/php/build/php4-STABLE-200404010630/ext/xml/xml.c:1431

#3  0x0814f011 in execute (op_array=0x820ef04) at
/andrei/php/build/php4-STABLE-200404010630/Zend/zend_execute.c:1626

#4  0x0813ee56 in zend_execute_scripts (type=8, retval=0x0,
file_count=3)

    at /andrei/php/build/php4-STABLE-200404010630/Zend/zend.c:889

#5  0x0811d1b2 in php_execute_script (primary_file=0xbffffa80)

    at /andrei/php/build/php4-STABLE-200404010630/main/main.c:1731

#6  0x081570a8 in main (argc=2, argv=0xbffffb24) at
/andrei/php/build/php4-STABLE-200404010630/sapi/cli/php_cli.c:822

#7  0x40318507 in __libc_start_main (main=0x8156934 <main>, argc=2,
ubp_av=0xbffffb24, init=0x8066b4c <_init>,

    fini=0x81575d0 <_fini>, rtld_fini=0x4000dc14 <_dl_fini>,
stack_end=0xbffffb1c) at ../sysdeps/generic/libc-start.c:129

(gdb) frame 3

#3  0x0814f011 in execute (op_array=0x820ef04) at
/andrei/php/build/php4-STABLE-200404010630/Zend/zend_execute.c:1626

1626                                                           
((zend_internal_function *)
EX(function_state).function)->handler(EX(opline)->extended_value,
EX(Ts)[EX(opline)->result.u.var].var.ptr, EX(object).ptr,
return_value_used TSRMLS_CC);

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

[2004-04-01 02:16:44] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

Post that backtrace then if you have one...

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

[2004-04-01 01:52:02] andrei at vinchi dot ru

I've just tried latest PHP snapshot too and see that the problem still
present. In the gdb the same line 1747 of file
php4-STABLE-200404010630/ext/xml/expat/xmltok_impl.c produce crash.

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

[2004-03-31 14:09:04] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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

I've just tried latest PHP snapshot and I do not see a 

crash. However I do see XML errors after entry #19 

which appear like this: XML parse error on 121 in 905 

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

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/27811

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

Reply via email to