Connecting Tech Pros Worldwide Forums | Help | Site Map

Segmentation Fault in PHP???

Justin Tang
Guest
 
Posts: n/a
#1: Jul 17 '05
Hi
I am wondering about the segmentation fault in PHP. Namely, I'm
running PHP version 4.6.9 on my server right now and when I try to
process a large piece of text via textarea(3k+), the resulting POST
data I get seems to be result from a segementation fault error. The
data I receive becomes truncated followed by the variable name, equal
sign, then the entire span of the data.


Code:
<?=$test?>
<form action="test.php" method = "POST">
<TEXTAREA NAME="test"></TEXTAREA>
<input type="submit">
</form>

the result printed from the above would be

[first fragment of the data]test = [complete data]

This problem does not occur on my other server which is running 4.3.6.
I've compared the ini files between the two and they are almost
identical. Can someone please help me figure out this strange strange
error???

Brion Vibber
Guest
 
Posts: n/a
#2: Jul 17 '05

re: Segmentation Fault in PHP???


Justin Tang wrote:[color=blue]
> I am wondering about the segmentation fault in PHP. Namely, I'm
> running PHP version 4.6.9 on my server right now and when I try to
> process a large piece of text via textarea(3k+), the resulting POST
> data I get seems to be result from a segementation fault error.[/color]

A segmentation fault will cause the process to be killed, which usually
means it returns no data at all. If running PHP as an Apache module this
will be reported in the Apache error log like this:

[notice] child pid 12345 exit Segmentation fault (11)

Are you seeing errors like that?
[color=blue]
> The
> data I receive becomes truncated followed by the variable name, equal
> sign, then the entire span of the data.[/color]

This sounds like: http://bugs.php.net/bug.php?id=22427

Does the suggestion in the last comment to this bug report help?

-- brion vibber (brion @ pobox.com)
Closed Thread