Bug 200882 - Segmentation fault processing large XML file
Segmentation fault processing large XML file
Status: CLOSED WONTFIX
Product: Fedora Legacy
Classification: Retired
Component: php (Show other bugs)
rhl9
i386 Linux
medium Severity high
: ---
: ---
Assigned To: Fedora Legacy Bugs
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2006-08-01 05:44 EDT by Álvaro G. Vicario
Modified: 2007-08-30 15:57 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-08-30 15:57:15 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Test case (1.79 KB, application/x-zip-compressed)
2006-08-01 05:44 EDT, Álvaro G. Vicario
no flags Details
Output from strace (45.11 KB, application/x-zip-compressed)
2006-08-01 05:45 EDT, Álvaro G. Vicario
no flags Details

  None (edit)
Description Álvaro G. Vicario 2006-08-01 05:44:14 EDT
Description of problem:

The attached test case causes a segmentation fault after processing record
number 2954 of a large XML catalog. The exact point of the crash doesn't seem to
be attached to an specific line of code: modifying XML file moves crash to
another line of code. Running through strace shows that crash happens in a call
to brk().

Version-Release number of selected component (if applicable):

php-4.2.2-17.21.legacy

(works fine under php-4.2.2-17.17.legacy)

How reproducible:

Always


Steps to Reproduce:
1. Place test case files in a directory
2. Run generate-xml-file.php to generate XML sample file:
   php -q generate-xml-file.php
3. Run test script:
   php -q segfault.php
  
Actual results:

Record #1 processed
Record #2 processed
[...]
Record #2954 processed
Violación de segmento


Expected results:


Record #1 processed
Record #2 processed
[...]
OK: no segmentation fault happened

Additional info:

I've attached strace output
Comment 1 Álvaro G. Vicario 2006-08-01 05:44:15 EDT
Created attachment 133384 [details]
Test case
Comment 2 Álvaro G. Vicario 2006-08-01 05:45:42 EDT
Created attachment 133385 [details]
Output from strace
Comment 3 Álvaro G. Vicario 2006-08-01 08:42:11 EDT
(In reply to comment #0)
> 2. Run generate-xml-file.php to generate XML sample file:
>    php -q generate-xml-file.php

Typo (sorry):

php -q generate-xml-file.php > segfault.xml
Comment 4 Jesse Keating 2007-08-30 15:57:15 EDT
Fedora Legacy project has ended.  These will not be fixed by Fedora Legacy.

Note You need to log in before you can comment on or make changes to this bug.