Bug 1473368 - [abrt] perl-XML-XPath: XML_ParserFree(): perl killed by signal 6
[abrt] perl-XML-XPath: XML_ParserFree(): perl killed by signal 6
Status: NEW
Product: Fedora
Classification: Fedora
Component: perl-XML-XPath (Show other bugs)
26
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Jitka Plesnikova
Fedora Extras Quality Assurance
https://retrace.fedoraproject.org/faf...
abrt_hash:311aad172213195d0c4fe3541bc...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-20 11:46 EDT by Peter Janes
Modified: 2017-07-21 10 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
File: backtrace (13.54 KB, text/plain)
2017-07-20 11:46 EDT, Peter Janes
no flags Details
File: cgroup (355 bytes, text/plain)
2017-07-20 11:46 EDT, Peter Janes
no flags Details
File: core_backtrace (6.99 KB, text/plain)
2017-07-20 11:46 EDT, Peter Janes
no flags Details
File: cpuinfo (1.21 KB, text/plain)
2017-07-20 11:46 EDT, Peter Janes
no flags Details
File: dso_list (2.09 KB, text/plain)
2017-07-20 11:46 EDT, Peter Janes
no flags Details
File: environ (5.01 KB, text/plain)
2017-07-20 11:46 EDT, Peter Janes
no flags Details
File: limits (1.29 KB, text/plain)
2017-07-20 11:46 EDT, Peter Janes
no flags Details
File: maps (9.92 KB, text/plain)
2017-07-20 11:46 EDT, Peter Janes
no flags Details
File: open_fds (324 bytes, text/plain)
2017-07-20 11:46 EDT, Peter Janes
no flags Details
File: proc_pid_status (1.27 KB, text/plain)
2017-07-20 11:46 EDT, Peter Janes
no flags Details
File: var_log_messages (28 bytes, text/plain)
2017-07-20 11:46 EDT, Peter Janes
no flags Details
A file that causes the error (32.01 KB, application/xml)
2017-07-21 10:38 EDT, Peter Janes
no flags Details

  None (edit)
Description Peter Janes 2017-07-20 11:46:05 EDT
Description of problem:
attempting to run an xpath query on a 3MB XML file

Version-Release number of selected component:
perl-XML-XPath-1.40-2.fc26

Additional info:
reporter:       libreport-2.9.1
backtrace_rating: 4
cmdline:        /usr/bin/perl /usr/bin/xpath -q -e //attribute[name="mcd_productcode"][text()="437"]
crash_function: XML_ParserFree
executable:     /usr/bin/perl
journald_cursor: s=52b9622599c149f3b2bcedca8f7b4442;i=11e0871;b=40ee98e7a11b4e288e018b288f5c9c34;m=aff301cda5;t=554c195af067a;x=6e1ff771cada272b
kernel:         4.11.8-300.fc26.x86_64
rootdir:        /
runlevel:       N 5
type:           CCpp
uid:            1000

Truncated backtrace:
Thread no. 1 (10 frames)
 #6 XML_ParserFree at lib/xmlparse.c:1374
 #7 XS_XML__Parser__Expat_ParserFree at Expat.xs:1432
 #8 Perl_pp_entersub at pp_hot.c:3988
 #9 Perl_runops_standard at run.c:41
 #10 Perl_call_sv at perl.c:2807
 #11 S_curse at sv.c:6869
 #12 Perl_sv_clear at sv.c:6473
 #13 Perl_sv_free2 at sv.c:6970
 #14 Perl_leave_scope at scope.c:1096
 #15 Perl_dounwind at pp_ctl.c:1548
Comment 1 Peter Janes 2017-07-20 11:46:11 EDT
Created attachment 1301842 [details]
File: backtrace
Comment 2 Peter Janes 2017-07-20 11:46:12 EDT
Created attachment 1301843 [details]
File: cgroup
Comment 3 Peter Janes 2017-07-20 11:46:13 EDT
Created attachment 1301844 [details]
File: core_backtrace
Comment 4 Peter Janes 2017-07-20 11:46:14 EDT
Created attachment 1301845 [details]
File: cpuinfo
Comment 5 Peter Janes 2017-07-20 11:46:15 EDT
Created attachment 1301846 [details]
File: dso_list
Comment 6 Peter Janes 2017-07-20 11:46:16 EDT
Created attachment 1301847 [details]
File: environ
Comment 7 Peter Janes 2017-07-20 11:46:17 EDT
Created attachment 1301848 [details]
File: limits
Comment 8 Peter Janes 2017-07-20 11:46:18 EDT
Created attachment 1301849 [details]
File: maps
Comment 9 Peter Janes 2017-07-20 11:46:19 EDT
Created attachment 1301850 [details]
File: open_fds
Comment 10 Peter Janes 2017-07-20 11:46:20 EDT
Created attachment 1301851 [details]
File: proc_pid_status
Comment 11 Peter Janes 2017-07-20 11:46:21 EDT
Created attachment 1301852 [details]
File: var_log_messages
Comment 12 Petr Pisar 2017-07-21 01:44:49 EDT
Could you provide us the XML file? We need a complete reproducer to find the root cause.

Looking at the back trace, I think perl raised an exception (Perl_pp_die() call) and then glibc discovered a mistake in memory management when deallocating memory in the XML::Parer::Expat module (XS_XML__Parser__Expat_ParserFree() call).
Comment 13 Peter Janes 2017-07-21 10:38 EDT
Created attachment 1302467 [details]
A file that causes the error

This is as minimal as I can get the test file; if I remove any elements or change any element content the stack trace disappears (although it often still reports that it ran out of memory, depending on what was removed).

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