PHP Bugs  
php.net | support | documentation | report a bug | advanced search | search howto | statistics | login

go to bug id or search bugs for  

Bug #7169 Crash with long .php-file and --trans-sid
Submitted:12 Oct 2000 6:24pm UTC Modified: 15 Oct 2000 12:13pm UTC
From:balu at technologist dot com Assigned to:
Status:Closed Category:Reproducible Crash
Version:4.0.3 OS:Linux 2.2.14
View/Vote Developer Edit Submission

[12 Oct 2000 6:24pm UTC] balu at technologist dot com
I have problems accessing a rather long file after enabling --trans-sid.
Apache-childs die after processing X lines of that file. (I tested to
add one more char at the end of the last processed character, but it was
not displayed)

Is it possible that the buffer --trans-sid uses to store the page (and
process it) in is too small?

I have no gdb installed yet, or can create a logfile, so perhaps this
could be approved by someone else... 

I will try to reproduce it on another system and get a trace from
that...

[13 Oct 2000 5:50am UTC] balu at technologist dot com
I configured it on the original system with:
./configure  --with-apxs=/usr/local/apache/current/bin/apxs
--enable-versioning --with-mysql --enable-track-vars --enable-syvshm
--enable-sysvsem --with-config-file-path=/etc --enable-url-includes
--enable-trans-sid

On a second system I used:

./configure  --prefix=/usr --libexecdir=/usr/libexec/php
--sysconfdir=/etc/ --sharedstatedir=/var/state/php
--localstatedir=/var/state/php --with-apxs --enable-versioning
--enable-inline-optimization --enable-calendar --with-gdbm --enable-ftp
--with-gettext --with-mysql=/usr --enable-trans-sid --enable-sysvsem
--enable-sysvshm --with-zlib --with-config-file-path=/etc/php.ini

I can't get a logfile, so I used:
gdb /usr/local/apache/current/bin/httpd
(gdb) run -X 

and got (before accessing the page)

Starting program: /usr/local/apache/current/bin/httpd -X
warning: find_solib: Can't read pathname for load map: Input/output
error

Error while mapping shared library sections:
"/sbin/": not in executable format: Is a directory.
Error while reading shared library symbols:
"/sbin/": can't read symbols: Is a directory.
Cannot access memory at address 0xc3815b00.
(gdb)

But I think that is a gdb-problem...
[15 Oct 2000 12:13pm UTC] balu at technologist dot com
Okay - we've tried nearly everything to get arout this "bug", until we
found a small error in the html-code of the crashing page.

It looks like trans-sid does not like broken pages - it gets confused if
a ">" is too much, or a " is not closed, I think.

But as this has nothing to do with filesize and trans-sid I close this
report.

RSS feed | show source 

PHP Copyright © 2001-2009 The PHP Group
All rights reserved.
Last updated: Sat Nov 21 10:30:49 2009 UTC