Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rcsdiff aborts with "Illegal instruction: 4" #18593

Closed
5 tasks done
permezel opened this issue Sep 27, 2017 · 3 comments
Closed
5 tasks done

rcsdiff aborts with "Illegal instruction: 4" #18593

permezel opened this issue Sep 27, 2017 · 3 comments

Comments

@permezel
Copy link

Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.

Please always follow these steps:

$ brew info rcs
rcs: stable 5.9.4 (bottled)
GNU revision control system
https://www.gnu.org/software/rcs/
/usr/local/Cellar/rcs/5.9.4 (27 files, 732.2KB) *
Built from source on 2017-09-27 at 12:53:49
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/rcs.rb

  • Ran brew update and retried your prior step?

$ brew update
Updated 1 tap (homebrew/core).
==> Updated Formulae
snakemake
$ brew update
Already up-to-date.
$ brew reinstall rcs
==> Reinstalling rcs
==> Downloading https://homebrew.bintray.com/bottles/rcs-5.9.4.high_sierra.bottle.1.tar.gz
Already downloaded: /Users/nimda/Library/Caches/Homebrew/rcs-5.9.4.high_sierra.bottle.1.tar.gz
==> Pouring rcs-5.9.4.high_sierra.bottle.1.tar.gz
🍺 /usr/local/Cellar/rcs/5.9.4: 27 files, 732.2KB
$ rcsdiff
Illegal instruction: 4

  • Ran brew doctor, fixed all issues and retried your prior step?

$ brew doctor
Your system is ready to brew.
$ brew update; brew update
Already up-to-date.
Already up-to-date.
$ brew reinstall rcs
==> Reinstalling rcs
==> Downloading https://homebrew.bintray.com/bottles/rcs-5.9.4.high_sierra.bottle.1.tar.gz
Already downloaded: /Users/nimda/Library/Caches/Homebrew/rcs-5.9.4.high_sierra.bottle.1.tar.gz
==> Pouring rcs-5.9.4.high_sierra.bottle.1.tar.gz
🍺 /usr/local/Cellar/rcs/5.9.4: 27 files, 732.2KB
$ rcsdiff
Illegal instruction: 4

  • Ran brew gist-logs <formula> (where <formula> is the name of the formula that failed) and included the output link?

$ brew gist-logs rcs
https://gist.github.com/db926459d7f197fd78270d64dfa93dd9

  • If brew gist-logs didn't work: ran brew config and brew doctor and included their output with your issue?

To help us debug your issue please explain:

  • What you were trying to do (and why)

Trying to run rcsdiff against a file. That fails. rcsdiff fails with zero args in the same way. Other rcs-based functions can be made to fail similarly.

  • What happened (include command output)

% rcsdiff ts
Illegal instruction: 4

  • What you expected to happen

I expected the programme to function correctly, not field an illegal instruction trap.

  • Step-by-step reproduction instructions (by running brew install commands)

It appears that there is some change in the underlying system library implementation.

$ lldb /usr/local/Cellar/rcs/5.9.4/bin/rcs
(lldb) target create "/usr/local/Cellar/rcs/5.9.4/bin/rcs"
Current executable set to '/usr/local/Cellar/rcs/5.9.4/bin/rcs' (x86_64).
(lldb) run rcsdiff
Process 27057 launched: '/usr/local/Cellar/rcs/5.9.4/bin/rcs' (x86_64)
Process 27057 stopped

  • thread Update libsodium to 1.0.9 #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
    frame #0: 0x00007fff53919a23 libsystem_c.dylib__vfprintf + 16437 libsystem_c.dylib__vfprintf:
    -> 0x7fff53919a23 <+16437>: ud2
    0x7fff53919a25 <+16439>: nopl (%rax)
    0x7fff53919a28 <+16442>: retq
    Target 0: (rcs) stopped.
    (lldb) bt
  • thread Update libsodium to 1.0.9 #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
    • frame #0: 0x00007fff53919a23 libsystem_c.dylib__vfprintf + 16437 frame #1: 0x00007fff5393e0a9 libsystem_c.dylib__v2printf + 473
      frame mpw: use secure urls #2: 0x00007fff539234c7 libsystem_c.dylib_vsnprintf + 415 frame #3: 0x00007fff53923524 libsystem_c.dylibvsnprintf_l + 41
      frame libtomcrypt: boneyard. #4: 0x00007fff539144ec libsystem_c.dylibsnprintf + 180 frame #5: 0x000000010001bf20 rcsvasnprintf + 3084
      frame erlang: unixodbc isn't needed. #6: 0x0000000100019e5c rcsobstack_vprintf + 101 frame #7: 0x000000010000b9c2 rcsaccf + 136
      frame Add .github templates in homebrew-core #8: 0x000000010000f889 rcsfind_peer_prog + 164 frame #9: 0x00000001000081c4 rcsrcsdiff_main + 1524
      frame libsodium 1.0.9 #10: 0x000000010000ad69 rcsmain + 760 frame #11: 0x00007fff53882145 libdyld.dylibstart + 1
      frame libguess 1.2 (new formula) #12: 0x00007fff53882145 libdyld.dylib`start + 1
      (lldb)

Formula additions or changes

To get formulae added or changed in Homebrew please file a Pull Request
We will close issues requesting formulae changes.

@ilovezfs
Copy link
Contributor

This is now fixed if you brew update.

@ilovezfs
Copy link
Contributor

And brew upgrade of course.

@permezel
Copy link
Author

permezel commented Sep 27, 2017 via email

@Homebrew Homebrew locked and limited conversation to collaborators May 4, 2018
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