ghostscript crashes: complains about openjpeg

I have a bunch of scripts that make maps by using routines contained in the package Generic Mapping Tools (GMT). These normally create output as postscript files, which I then convert to pdf using ps2pdf, a script provided with Ghostscript.

I noticed that in my installation of Tumbleweed Ghostscript crashes complaining about openjpeg:

gs: error while loading shared libraries: libopenjp2.so.7: failed to map segment from shared object

However, openjpeg is installed and the libraries are found by other packages as ImageMagick. The scripts I use have not changed in the last week, and they worked with my previous Leap 15.1 installation a few weeks ago (unfortunately do not recall which version of ghostscript was used there).

I am trying to sort out if this problem could be due to something wrong in my installation, some solvable linkage problem, or something in Ghostscript (not at all unlikely!).

Is anyone experiencing this problem too?

Thanks.

Info:

# zypper if ghostscript
Loading repository data...
Reading installed packages...


Information for package ghostscript:
------------------------------------
Repository     : Main Repository (OSS)                             
Name           : ghostscript                                       
Version        : 9.27-6.1                                          
Arch           : x86_64                                            
Vendor         : openSUSE                                          
Installed Size : 44.3 MiB                                          
Installed      : Yes (automatically)                               
Status         : up-to-date                                        
Source package : ghostscript-9.27-6.1.src                          
Summary        : The Ghostscript interpreter for PostScript and PDF
# zypper if openjpeg2
Loading repository data...
Reading installed packages...


Information for package openjpeg2:
----------------------------------
Repository     : Main Repository (OSS)                    
Name           : openjpeg2                                
Version        : 2.3.1-2.2                                
Arch           : x86_64                                   
Vendor         : openSUSE                                 
Installed Size : 353.6 KiB                                
Installed      : Yes                                      
Status         : up-to-date                               
Source package : openjpeg2-2.3.1-2.2.src                  
Summary        : Opensource JPEG 2000 Codec Implementation

My feeling is that kind of error (map segment from shared object) is likely a coding issue.
Should probably submit a bug report,
And if this has ever worked for you in Tumbleweed to roll back.
Else,
I’d recommend installing Virtualbox, deploy a LEAP as a Guest to do your work.

TSU

Thank you for your answer. I now got and compiled the latest version (9.52) from source. No issues at all, gs works as usual.

May be it’s time for Tumbleweed to pick up this new version? How do I flag the dev team about this?