You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
New gs 10.01.0 from brew yields many subtle failures #7336
After doing brew update and brew upgrade I got gs 10.01.0 which seems to yield numerous tiny failures where lines are just processed and rendered slightly differently. So suddenly I have 85 failures on my hand that hours ago were fine. Hoping @GenericMappingTools/core can check to verify this. I guess 85 DVC updates are no big deal but this is kind of annoying.
Ghostscript […] has been found vulnerable to a critical-severity remote code execution flaw.
The flaw is tracked as CVE-2023-3664, having a CVSS v3 rating of 9.8, and impacts all versions of Ghostscript before 10.01.2, which is the latest available version released three weeks ago.
Thanks @seisman for the updates. Transparency is still not working on my MBpro Ventura.
I'm using the 6.4.0 version installed via brew. I've even linked gs10.2.0 with gmt and it still doesn't work.
Since gs 10.02.0 seems working well with GMT master branch, I think we can close the issue, although we still need to update the baseline images if necessary.
Activity
seisman commentedon Mar 23, 2023
Please note that our Linux CI is still using old gs versions. Thus, if we update the PS files, the Linux CI may break.
PaulWessel commentedon Mar 23, 2023
As a brew master, is there a command that takes me back to 10.00?
seisman commentedon Mar 24, 2023
There is no easy way to install old versions of a homebrew package, but you can try:
/opt/homebrew/Library/Taps/homebrew/homebrew-core/Formulaghostscript.rb(https://raw.githubusercontent.com/Homebrew/homebrew-core/7ef0570825ab93c0557c3561e66cfeb6b78686be/Formula/ghostscript.rb), which provides gs 10.0.0ghostscript.rbfile with the old onePaulWessel commentedon Mar 24, 2023
Step 4 redownloads 10.01 even though I had placed the previous there. Perhaps I don’t know how to “reinstall”
also, when you say you are using “old” gs, are vi talking 9.x?
joa-quim commentedon Mar 24, 2023
Don't remember how but one can tell brew to run a locally stored formula. So you'd run brew on formula after step 2.
PaulWessel commentedon Mar 25, 2023
Just to show some of the craziness happening once 10.01 got used (presumably also via gm). Look at this failing example 23:
Yes it still fails with what you think is not too much given the picture?
/opt/homebrew/bin/gm compare: image difference exceeds limit (0.0233046 > 0.003).
PaulWessel commentedon Mar 25, 2023
Was able to roll back to 10.00 so failures are back to normal.
seisman commentedon Mar 26, 2023
This looks pretty bad. Attached are ex023 PNG images generated by gs 9.54 and gs 10.01.
A significant change is that in the gs 10.01 version, the character "k" in the contour annotations is almost invisible.
However, the PDF version from gs 10.01 seems OK.
ex23.pdf
PaulWessel commentedon Mar 26, 2023
Yes, the PDF look fine - I wonder if this is a gm/gs issue since it makes no sense.
seisman commentedon Mar 26, 2023
It's a gs issue because gm is not used when converting ps to png.
KristofKoch commentedon Jul 13, 2023
Just a heads-up:
Source: Bleeping Computer: Critical RCE found in popular Ghostscript open-source PDF library
PaulWessel commentedon Jul 13, 2023
At summit we should build 10.01.2 and see if they have fixed the bugs affecting us.
joa-quim commentedon Jul 13, 2023
Don’t think they have. In that recent report of malfunction from Dan he was using 10.01.2
19 remaining items
remkos commentedon Sep 17, 2023
I created a PR for Ghostscript 10.02.0 on macports. It was accepted and merged yesterday, so macports users can get it easily now.
seisman commentedon Sep 18, 2023
FYI, conda and homebrew also updated their ghostscript to 10.02.0
ghomsi123 commentedon Sep 20, 2023
Thanks @seisman for the updates. Transparency is still not working on my MBpro Ventura.
I'm using the 6.4.0 version installed via brew. I've even linked gs10.2.0 with gmt and it still doesn't work.
joa-quim commentedon Sep 20, 2023
With GMT6.4 you need a gs version < 10 to have transparency.
ghomsi123 commentedon Sep 20, 2023
Thanks @joa-quim. Any ideas or process for downgrading gs version < 10?
joa-quim commentedon Sep 20, 2023
Homebrew can do it but I don't remember how (very occasional Mac user)
ghomsi123 commentedon Sep 20, 2023
Surely @seisman and @PaulWessel have tricks to find out!
seisman commentedon Sep 20, 2023
It's not easy to downgrade gs to <10, because many gs dependencies are too new to be compatible with gs 9.
I think it's much easier to install the GMT master branch instead. With homebrew, you just need to run
ghomsi123 commentedon Sep 20, 2023
Thanks @seisman. Is the master branch compatible with the current version of gs?
joa-quim commentedon Sep 20, 2023
Can that
--HEADbe limited to recent commits only to avoid having to download the ~1 GB repo?Yes.
seisman commentedon Sep 20, 2023
I believe it only downloads the latest commit using
git clone --depth=1.joa-quim commentedon Sep 20, 2023
Ah, that is good. We should probably advertise that in our installing instructions.
seisman commentedon Sep 20, 2023
We already did it https://github.com/GenericMappingTools/gmt/blob/master/INSTALL.md#install-via-homebrew
seisman commentedon Sep 24, 2023
Since gs 10.02.0 seems working well with GMT master branch, I think we can close the issue, although we still need to update the baseline images if necessary.