Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

grace exiting with SIGSYS after brew update/upgrade #27840

Closed
tricaric opened this issue Mar 25, 2014 · 6 comments
Closed

grace exiting with SIGSYS after brew update/upgrade #27840

tricaric opened this issue Mar 25, 2014 · 6 comments

Comments

@tricaric
Copy link

Short version: is it possible that changes in gd from version 2.1.0 to 2.1.0_1 cause SIGSYS in grace.

I recently updated/upgraded brew, and noticed that xmgrace (from grace formula) did not work any longer because it was trying to link to older libpng15.15.dylib (formula libpng), which had been updated to v16. So I reinstalled grace from brew, and this time it ran but exited immediately with SIGSYS.

Could not find a fix of the problem so I restored a local backup from Mar 20, 2014, and all was working fine. So tried to isolate the issue, and "brew outdated" reports:

gd (2.1.0 < 2.1.0_1)
gdal (1.10.1 < 1.10.1_1)
ghostscript (9.07, 9.10 < 9.10_1)
libpng (1.5.17, 1.5.18 < 1.6.10)
s-lang (2.2.4 < 2.2.4_1)
ssh-copy-id (6.3p1, 6.4p1, 6.5p1 < 6.6p1)

The relevant ones here are gd and libpng.

brew upgrade gd
==> Upgrading 1 outdated package, with result:
gd 2.1.0_1
==> Upgrading gd
==> Installing gd dependency: libpng
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/libpng-1.6.10.mavericks.bottle.tar.gz
Already downloaded: /Library/Caches/Homebrew/libpng-1.6.10.mavericks.bottle.tar.gz
==> Pouring libpng-1.6.10.mavericks.bottle.tar.gz
🍺 /usr/local/Cellar/libpng/1.6.10: 17 files, 1.3M
==> Installing gd
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/gd-2.1.0_1.mavericks.bottle.tar.gz
Already downloaded: /Library/Caches/Homebrew/gd-2.1.0_1.mavericks.bottle.tar.gz
==> Pouring gd-2.1.0_1.mavericks.bottle.tar.gz
🍺 /usr/local/Cellar/gd/2.1.0_1: 32 files, 1.1M

but after this, xmgrace is broken again: starts and gives SIGSYS right away.

So I would say that something in
gd (2.1.0 < 2.1.0_1)
libpng (1.5.17, 1.5.18 < 1.6.10)

I am now forcing libpng 1.5.17 as before upgrade, but cannot force gd 2.1.0 (where's the formula for that?) I can try that if you help me to. What changed in gd between 2.1.0 and 2.1.0_1 ?

Thanks

@jacknagel
Copy link
Contributor

The _1 in 2.1.0_1 is the formula's revision number, which was bumped to deal with the libpng 1.5 -> 1.6 transition. Otherwise 2.1.0 and 2.1.0_1 are the same.

@tricaric
Copy link
Author

OK then it is a libpng issue I think, can anyone replicate the issue?

@jacknagel
Copy link
Contributor

I can reproduce. It doesn't seem to be related to libpng, but rather the most recent clang. If I add ENV.O1 to the formula (i.e. reduce the optimization level from -Os to -O1, then xmgrace launches successfully.

@tricaric
Copy link
Author

OK that's great, if you can update the formula I can double-check this. As long as I have a running version I don't really care if it is not optimised. Thanks a lot!

@jacknagel
Copy link
Contributor

OK, brew update and try again.

@tricaric
Copy link
Author

Confirmed, update and reinstall fixes the issue! Thanks a lot!!

ehershey pushed a commit to ehershey/homebrew that referenced this issue Apr 4, 2014
yeled pushed a commit to yeled/homebrew that referenced this issue Mar 10, 2015
@Homebrew Homebrew locked and limited conversation to collaborators Feb 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants