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

OS-X: Illegal instruction: 4 #76

Open
rolkar opened this issue Aug 21, 2015 · 3 comments
Open

OS-X: Illegal instruction: 4 #76

rolkar opened this issue Aug 21, 2015 · 3 comments

Comments

@rolkar
Copy link
Contributor

rolkar commented Aug 21, 2015

Got this mail:

Hello,
Many thanks for providing this tool!
I have limited knowledge of command line...
Trying to use x3f_extract on OS X 10.7.5. Is this why I receive "Illegal instruction: 4" when trying to
execute "x3f_extract -tiff test.x3f"?
Thanks for help with this.
Regards,
Sean Lanyi
California, USA

I answered this:

Searching, I found this
http://stackoverflow.com/questions/14268887/what-is-the-illegal-instruction-4-error-and-why-does-mmacosx-version-min-10
So, it seems we have compiled the code with a too new compiler, or ... you are running a too old OS-X.
Whichever way you want to see it :)

@erikrk
Copy link
Contributor

erikrk commented Aug 21, 2015

SIGILL can occur for different reasons. In essence, it comes down to two different categories.

  1. The code generated by the compiler is incompatible with the CPU.
  2. Jumping to a memory location which contains something else than code.

This seems to be difficult to debug without more information and/or the possibility to test/reproduce.

@rolkar
Copy link
Contributor Author

rolkar commented Aug 22, 2015

The problem described in the link matches quite well the actual situation.

It is also quite easy to check. Just recompile the executable with the
suggested switch
and send the executable to the guy that had problems.

What is more problematic is if we shall fix this or not. Or if we
shall assume people upgrades their OS instead. Is it a good idea
to compile with switches generating old code? How can we know
how old the code have to be?

/Roland

On 2015-08-22 01:28, Erik Karlsson wrote:

SIGILL can occur for different reasons. In essence, it comes down to
two different categories.

  1. The code generated by the compiler is incompatible with the CPU.
  2. Jumping to a memory location which contains something else than code.

This seems to be difficult to debug without more information and/or
the possibility to test/reproduce.


Reply to this email directly or view it on GitHub
#76 (comment).

@erikrk
Copy link
Contributor

erikrk commented Aug 22, 2015

The code is already being compiled with -mmacosx-version-min=10.7 and he
is using 10.7.5, so it should in principle work.

On sáb, 2015-08-22 at 01:52 -0700, Roland Karlsson wrote:

The problem described in the link matches quite well the actual
situation.

It is also quite easy to check. Just recompile the executable with
the
suggested switch
and send the executable to the guy that had problems.

What is more problematic is if we shall fix this or not. Or if we
shall assume people upgrades their OS instead. Is it a good idea
to compile with switches generating old code? How can we know
how old the code have to be?

/Roland

On 2015-08-22 01:28, Erik Karlsson wrote:

SIGILL can occur for different reasons. In essence, it comes down
to
two different categories.

  1. The code generated by the compiler is incompatible with the CPU.
  2. Jumping to a memory location which contains something else than
    code.

This seems to be difficult to debug without more information and/or
the possibility to test/reproduce.


Reply to this email directly or view it on GitHub
#76 (comment).


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants