| Summary: | xmllint --xpath crashes on empty results (null pointer dereference in doXPathDump) | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | fred <fredoche> | ||||||
| Component: | libxml2 | Assignee: | Daniel Veillard <veillard> | ||||||
| Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 17 | CC: | c.david86, jjardon, jpokorny, metal3d, veillard | ||||||
| Target Milestone: | --- | Keywords: | Reopened | ||||||
| Target Release: | --- | ||||||||
| Hardware: | x86_64 | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | abrt_hash:06910dfc94710a76ec1f25e399b989599ff3ce3a | ||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2013-08-01 18:11:40 UTC | Type: | --- | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Attachments: |
|
||||||||
|
Description
fred
2012-03-16 12:37:28 UTC
Created attachment 570594 [details]
File: backtrace
Created attachment 570595 [details]
File: smolt_data
This message is a reminder that Fedora 16 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 16. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '16'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 16's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 16 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged to click on "Clone This Bug" and open it against that version of Fedora. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping Fedora 17, same error on a sitemaps.xml to process... should I recreate a bugreport ? Just hit the same, IMHO fixed by:
> commit bdc64d6d5f5f30982279af23cfa2d3ab08ba34c4
> Author: Daniel Veillard <veillard>
> Date: Tue Mar 27 14:41:37 2012 +0800
>
> Fix a crash with xmllint --path on empty results
>
> If the returned node set is empty, it is possible for the nodetab
> to be null
Unfortunately not in F17 (yet?).
Fedora 16 changed to end-of-life (EOL) status on 2013-02-12. Fedora 16 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. Thank you for reporting this bug and we are sorry it could not be fixed. $ rpm -qf $(which xmllint) libxml2-2.7.8-9.fc17.x86_64 Fixed summary as --xpath is the triggering parameter, not --path. $ echo "<oops/>" | xmllint --xpath "//*[nothing]/*" - > Segmentation fault (core dumped) In detail: $ echo -e "define hook-stop\nbt full\nend\nrun\n<oops/>" \ | gdb -args xmllint --xpath "//*[nothing]/*" - \ | sed '/(gdb)/bcont;d;:cont;n;bcont' > (gdb) >>(gdb) Starting program: /usr/bin/xmllint --xpath //\*\[nothing\]/\* - > > Program received signal SIGSEGV, Segmentation fault. > #0 0x0000000000408121 in doXPathDump (cur=0x81d250) at xmllint.c:2075 > i = <optimized out> > node = <optimized out> > ctxt = <optimized out> > #1 doXPathQuery (query=<optimized out>, doc=0x81d8b0) at xmllint.c:2149 > ctxt = 0x81d680 > res = 0x81d250 > #2 parseAndPrintFile (filename=filename@entry=0x7fffffffe3df "-", > rectxt=rectxt@entry=0x0) at xmllint.c:2424 > doc = 0x81d8b0 > tmp = <optimized out> > #3 0x0000000000406912 in main (argc=4, argv=0x7fffffffe098) at xmllint.c:3710 > i = <optimized out> > acount = <optimized out> > files = <optimized out> > version = <optimized out> > indent = <optimized out> > 0x0000000000408121 in doXPathDump (cur=0x81d250) at xmllint.c:2075 > 2075 if (cur->nodesetval->nodeNr <= 0) { > (gdb) quit > A debugging session is active. > > Inferior 1 [process 21610] will be killed. > > Quit anyway? (y or n) [answered Y; input not from terminal] $ echo -e 'define hook-stop\np cur->nodesetval\nbt full\nend\nrun\n<oops/>' \ | gdb -args xmllint --xpath "//*[nothing]/*" - \ | sed '/(gdb)/bcont;d;:cont;n;bcont' > (gdb) >>>(gdb) Starting program: /usr/bin/xmllint --xpath //\*\[nothing\]/\* - > > Program received signal SIGSEGV, Segmentation fault. > $1 = (xmlNodeSetPtr) 0x0 > #0 0x0000000000408121 in doXPathDump (cur=0x81d2b0) at xmllint.c:2075 > i = <optimized out> > node = <optimized out> > ctxt = <optimized out> > #1 doXPathQuery (query=<optimized out>, doc=0x81d8b0) at xmllint.c:2149 > ctxt = 0x81d680 > res = 0x81d2b0 > #2 parseAndPrintFile (filename=filename@entry=0x7fffffffe3df "-", rectxt=rectxt@entry=0x0) at xmllint.c:2424 > doc = 0x81d8b0 > tmp = <optimized out> > #3 0x0000000000406912 in main (argc=4, argv=0x7fffffffe098) at xmllint.c:3710 > i = <optimized out> > acount = <optimized out> > files = <optimized out> > version = <optimized out> > indent = <optimized out> > 0x0000000000408121 in doXPathDump (cur=0x81d2b0) at xmllint.c:2075 > 2075 if (cur->nodesetval->nodeNr <= 0) { > (gdb) quit > A debugging session is active. > > Inferior 1 [process 22291] will be killed. > > Quit anyway? (y or n) [answered Y; input not from terminal] I can confirm this is fixed in F18 (libxml2-2.9.0-3.fc18), though. This message is a reminder that Fedora 17 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 17. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '17'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 17's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 17 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior to Fedora 17's end of life. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Fedora 17 changed to end-of-life (EOL) status on 2013-07-30. Fedora 17 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. Thank you for reporting this bug and we are sorry it could not be fixed. |