Bug 1625712

Summary: xsltproc error: "Unexpected RVT flag"
Product: [Fedora] Fedora Reporter: Matt McCutchen <matt>
Component: libxsltAssignee: Devrim Gündüz <devrim>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 30CC: igor.raits, jjelen, veillard
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-11 14:49:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Matt McCutchen 2018-09-05 15:58:54 UTC
Description of problem:
xsltproc entered an infinite loop spewing "Unexpected RVT flag" error messages while running an XSL transform I use to build my web site.  Rather than making a new minimal reproduction, I'm going to guess this is the same issue as https://gitlab.gnome.org/GNOME/libxslt/issues/2 and ask you to cherry-pick the upstream patch for that issue into Fedora, and if my issue remains, I'll file a new bug.

Version-Release number of selected component (if applicable):
libxslt-1.1.32-2.fc28.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Create bug.xsl and bug.xml as per https://gitlab.gnome.org/GNOME/libxslt/issues/2
2. xsltproc bug.xsl bug.xml

Actual results:
Successful processing.

Expected results:
The following errors are printed and then xsltproc hangs:

runtime error: file bug.xsl line 38 element value-of
localRVT not head of list
xsltReleaseLocalRVTs: Unexpected RVT flag (nil)
xsltReleaseLocalRVTs: Unexpected RVT flag (nil)
xsltReleaseLocalRVTs: Unexpected RVT flag (nil)
xsltFreeStackElem: Unexpected RVT flag 0x1
runtime error: file bug.xsl line 27 element result
localRVT not head of list

Comment 1 Matt McCutchen 2018-09-05 16:00:38 UTC
Oops, I reversed actual and expected...

Actual results:
The following errors are printed and then xsltproc hangs:

runtime error: file bug.xsl line 38 element value-of
localRVT not head of list
xsltReleaseLocalRVTs: Unexpected RVT flag (nil)
xsltReleaseLocalRVTs: Unexpected RVT flag (nil)
xsltReleaseLocalRVTs: Unexpected RVT flag (nil)
xsltFreeStackElem: Unexpected RVT flag 0x1
runtime error: file bug.xsl line 27 element result
localRVT not head of list

Expected results:
No hang.

Comment 2 Matt McCutchen 2018-09-05 16:01:48 UTC
Workaround: Downgrade to libxslt-1.1.29-4.fc27.x86_64.

Comment 3 Ben Cotton 2019-05-02 20:58:59 UTC
This message is a reminder that Fedora 28 is nearing its end of life.
On 2019-May-28 Fedora will stop maintaining and issuing updates for
Fedora 28. 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
EOL if it remains open with a Fedora 'version' of '28'.

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.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 28 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 this bug is closed as described in the policy above.

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.

Comment 4 Matt McCutchen 2019-05-10 18:43:47 UTC
The problem still occurs when I install libxslt-1.1.32-4.fc30.x86_64 on my Fedora 29 system; I hope this is a valid test.

Comment 5 Jakub Jelen 2019-10-11 14:49:18 UTC
If I read right, the upstream issue is closed and Fedora already has the 1.1.33 package in all stable releases so I assume this is fixed.

Tested with current version in Fedora 30 and it looks fine:

$ xsltproc bug.xsl bug.xml
<?xml version="1.0"?>
___
$ echo $?
0
$ cat bug.xml
<foo/>