Bug 2328923 - Regina Rexx is broken on Fedora 41
Summary: Regina Rexx is broken on Fedora 41
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: regina-rexx
Version: 41
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Davide Cavalca
QA Contact:
URL: https://sourceforge.net/p/regina-rexx...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-11-26 12:35 UTC by Alex
Modified: 2024-12-28 02:58 UTC (History)
1 user (show)

Fixed In Version: regina-rexx-3.9.6-1.fc42 regina-rexx-3.9.6-1.fc41
Clone Of:
Environment:
Last Closed: 2024-12-26 09:52:50 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Alex 2024-11-26 12:35:04 UTC
Hello,

Regina Rexx is broken in the current Fedora 41 package and it has been broken since Fedora 40 from what I could determine.

It seems that something during the build process breaks the parser or token generator in the program.

I reference a Sourceforge discussion to show that the problem is not new and affects other users.

Please see "Steps to Reproduce" for more details.

Thanks in advance

Reproducible: Always

Steps to Reproduce:
1. Install Regina Rexx: dnf install -y regina-rexx
2. Run a test with stream: echo "say 1 stream('/etc/os-release', 'c', 'query exists')" | regina
Actual Results:  
     1 +++ say 1 stream('/etc/os-release', 'c', 'query exists')
Error 93 running "<stdin>", line 1: [Incorrect call to routine]
Error 93.1: [STREAM command QUERY must be followed by one of "DATETIME TIMESTAMP CREATETIME MODIFYTIME ACCESSTIME EXISTS HANDLE SIZE STREAMTYPE SEEK POSITION"; found "EXISST"]

Expected Results:  
1 /usr/lib/os-release

Please note the double "S" in "EXISST" on the "Actual Results".

The expected result is the output of running the test in Fedora 39.

I've also noticed that when compiling the official sources for Regina-Rexx-3.6, downloaded from Sourceforge, the problem appears on a check that runs during make. Compilation succeeds on Fedora 39 but fails on 41 and 40. This was tested using the official docker images.

Comment 1 Alex 2024-11-30 17:12:20 UTC
Hi,

I've figured out that the problem comes from the gcc optimizer set to -O3 by the configure script.

With -O2 optimization the binary works well and the result is as expected.

./configure
make CFLAGS="-m64 -O -g -O2 -Wall -fomit-frame-pointer -fno-strict-aliasing -Wno-char-subscripts"

The only change is -O2 instead of -O3 the rest of the flags are the ones set by the configure script.

I've used the latest sources from upstream not the version in the package but this should apply.

Thanks,
Alex

Comment 2 Davide Cavalca 2024-12-26 09:24:21 UTC
Thanks for the report. I put up https://src.fedoraproject.org/rpms/regina-rexx/pull-request/1 to update it to the latest version. On my local system it looks like it's using -O2, but I want to double check the results in the CI build as well.

Comment 3 Davide Cavalca 2024-12-26 09:32:52 UTC
Yeah looking at https://kojipkgs.fedoraproject.org//work/tasks/5757/127245757/build.log this is still using -O2 as expected. I'll get it merged and built later today, please test the update and provide feedback on it if you get a chance.

Comment 4 Fedora Update System 2024-12-26 09:48:57 UTC
FEDORA-2024-3b2b34b4d4 (regina-rexx-3.9.6-1.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-3b2b34b4d4

Comment 5 Fedora Update System 2024-12-26 09:50:04 UTC
FEDORA-2024-e68898dfcc (regina-rexx-3.9.6-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-e68898dfcc

Comment 6 Fedora Update System 2024-12-26 09:52:50 UTC
FEDORA-2024-3b2b34b4d4 (regina-rexx-3.9.6-1.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 7 Fedora Update System 2024-12-27 02:28:01 UTC
FEDORA-2024-e68898dfcc has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-e68898dfcc`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-e68898dfcc

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2024-12-28 02:58:16 UTC
FEDORA-2024-e68898dfcc (regina-rexx-3.9.6-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.


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