#43199 [Com]: Many segmentation faults

2007-11-09 Thread serban dot ghita at verasys dot com
 ID:   43199
 Comment by:   serban dot ghita at verasys dot com
 Reported By:  eugene dot pikalov at gmail dot com
 Status:   Feedback
 Bug Type: PDO related
 Operating System: Linux  Fedora  2.6.22.5-76.fc7
 PHP Version:  5.2.4
 New Comment:

i can confirm this on slackware after upgrading.
Linux www 2.6.21.5-smp #1 SMP Sat Nov 3 15:51:44 Local time zone must
be set--see zic m i686 Intel(R) Xeon(R) CPU E5335  @ 2.00GHz
GenuineIntel GNU/Linux

i was running httpd-2.2.6 with PHP 5.2.4

i tried compiling both apache and php with less options, nothing
worked.

temporary workaround: installed httpd-2.0.58 + PHP 5.2.4 and everithing
worked. i cannot generate a backtrace at the moment because i'm on a
production server


Previous Comments:


[2007-11-05 23:46:17] [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 for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

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.





[2007-11-05 14:17:41] eugene dot pikalov at gmail dot com

Description:

On 5.2.3 everything allright, after update i have many segfaults in
httpd logs. Apache/2.2.4

Reproduce code:
---
[Fri Nov 02 17:30:01 2007] [notice] child pid 30265 exit signal
Segmentation fault (11)
[Fri Nov 02 17:32:21 2007] [notice] child pid 30840 exit signal
Segmentation fault (11)
[Fri Nov 02 17:35:17 2007] [notice] child pid 31093 exit signal
Segmentation fault (11)
[Fri Nov 02 17:39:06 2007] [notice] child pid 551 exit signal
Segmentation fault (11)
[Fri Nov 02 17:39:58 2007] [notice] child pid 419 exit signal
Segmentation fault (11)
[Fri Nov 02 17:43:56 2007] [notice] child pid 2439 exit signal
Segmentation fault (11)
*** glibc detected *** /usr/sbin/httpd: munmap_chunk(): invalid
pointer: 0x80e90b60 ***
=== Backtrace: =
/lib/libc.so.6(cfree+0x1bb)[0x42255b]
/etc/httpd/modules/libphp5.so(zend_hash_destroy+0x4e)[0xcc607e]
/etc/httpd/modules/libphp5.so[0xb42227]
/etc/httpd/modules/libphp5.so(php_pdo_pdbh_dtor+0x15)[0xb422e5]
/etc/httpd/modules/libphp5.so(plist_entry_destructor+0x82)[0xcc8822]
/etc/httpd/modules/libphp5.so[0xcc5d68]
/etc/httpd/modules/libphp5.so(zend_hash_graceful_reverse_destroy+0x18)[0xcc5fa8]
/etc/httpd/modules/libphp5.so(zend_shutdown+0x12)[0xcbc892]
/etc/httpd/modules/libphp5.so(php_module_shutdown+0x2f)[0xc7ba6f]
/etc/httpd/modules/libphp5.so(php_module_shutdown_wrapper+0xb)[0xc7bb1b]
/etc/httpd/modules/libphp5.so[0xd344e3]
/usr/lib/libapr-1.so.0[0x385d1d]
/usr/lib/libapr-1.so.0(apr_pool_destroy+0x3d)[0x38648d]
/usr/sbin/httpd[0x800386c5]
/usr/sbin/httpd[0x80038c30]
/usr/sbin/httpd[0x80038e41]
/usr/sbin/httpd(ap_mpm_run+0x913)[0x80039843]
/usr/sbin/httpd(main+0x8b7)[0x80010217]
/lib/libc.so.6(__libc_start_main+0xe0)[0x3ccf70]
/usr/sbin/httpd[0x8000f2f1]
=== Memory map: 
[Fri Nov 02 17:46:00 2007] [notice] child pid 2773 exit signal Aborted
(6)
[Fri Nov 02 17:50:37 2007] [notice] child pid 4359 exit signal
Segmentation fault (11)
[Fri Nov 02 17:53:55 2007] [notice] child pid 5519 exit signal
Segmentation fault (11)
[Fri Nov 02 17:54:38 2007] [notice] child pid 5622 exit signal
Segmentation fault (11)
[Fri Nov 02 17:55:51 2007] [notice] child pid 4738 exit signal
Segmentation fault (11)
[Fri Nov 02 17:57:45 2007] [notice] child pid 6674 exit signal
Segmentation fault (11)







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


#39206 [NEW]: php cli crashes on tidy_parse_string

2006-10-20 Thread serban dot ghita at verasys dot com
From: serban dot ghita at verasys dot com
Operating system: Windows XP SP1
PHP version:  5.1.6
PHP Bug Type: CGI related
Bug description:  php cli crashes on tidy_parse_string

Description:

running PHP 5.1.6.6 from the cli on Windows XP. i parse some html strings,
and then i run a tidy check on the code:

---
$config_tidy = array(show-errors = 1, accessibility-check = 0);
$tidy = tidy_parse_string($arr['html'], $config_tidy, 'utf8');
---

On a certain html code that is contained in $arr['html'] it crashes:
Windows has encountered and error
---
AppName: php.exe AppVer: 5.1.6.6 ModName: php_tidy.dll
ModVer: 5.1.6.6  Offset: 00015819
---

Reproduce code:
---
//$arr['html'] - contains html code (0-400 lines)


$config_tidy = array(show-errors = 1, accessibility-check = 0);
$tidy = tidy_parse_string($arr['html'], $config_tidy, 'utf8');


Expected result:

the script should parse the html code just fine.

Actual result:
--
the debug info returned: http://sasa.verasys.ro/a932_appcompat.xml

-- 
Edit bug report at http://bugs.php.net/?id=39206edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=39206r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=39206r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=39206r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=39206r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=39206r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=39206r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=39206r=needscript
Try newer version:http://bugs.php.net/fix.php?id=39206r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=39206r=support
Expected behavior:http://bugs.php.net/fix.php?id=39206r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=39206r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=39206r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=39206r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=39206r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=39206r=dst
IIS Stability:http://bugs.php.net/fix.php?id=39206r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=39206r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=39206r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=39206r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=39206r=mysqlcfg


#39206 [Fbk-Opn]: php cli crashes on tidy_parse_string

2006-10-20 Thread serban dot ghita at verasys dot com
 ID:   39206
 User updated by:  serban dot ghita at verasys dot com
 Reported By:  serban dot ghita at verasys dot com
-Status:   Feedback
+Status:   Open
 Bug Type: CGI related
 Operating System: Windows XP SP1
 PHP Version:  5.1.6
 New Comment:


AppName: php.exe AppVer: 5.2.0.0 ModName: php_tidy.dll
ModVer: 5.2.0.0  Offset: 00015469
---

i'll try to recompile php on unix later, with the cvs version, to see
if the same thing happens


Previous Comments:


[2006-10-20 08:57:00] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





[2006-10-20 07:50:13] serban dot ghita at verasys dot com

Description:

running PHP 5.1.6.6 from the cli on Windows XP. i parse some html
strings, and then i run a tidy check on the code:

---
$config_tidy = array(show-errors = 1, accessibility-check = 0);
$tidy = tidy_parse_string($arr['html'], $config_tidy, 'utf8');
---

On a certain html code that is contained in $arr['html'] it crashes:
Windows has encountered and error
---
AppName: php.exe AppVer: 5.1.6.6 ModName: php_tidy.dll
ModVer: 5.1.6.6  Offset: 00015819
---

Reproduce code:
---
//$arr['html'] - contains html code (0-400 lines)


$config_tidy = array(show-errors = 1, accessibility-check = 0);
$tidy = tidy_parse_string($arr['html'], $config_tidy, 'utf8');


Expected result:

the script should parse the html code just fine.

Actual result:
--
the debug info returned: http://sasa.verasys.ro/a932_appcompat.xml





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