-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
trap invalid opcode .... in phalcon.so #13143
Comments
Upgraded to php 7.1.11 and phalcon 3.2.4, still same issue. |
Pin pointed the issue to the router.
|
I think the problem is that I compile the docker image with my Mac as docker host and then push the image to my local repository. My staging env pull the image from the repository and tries to run it. I'm not a c++ expert so can't really tell what's happening. But I do think it should be possible to build the image on a different docker host and push it to the repository to run in on different docker host. Please correct me if I'm wrong. |
Could you please provide the steps to reproduce? |
Hi guys, i've faced same issue, and finded out root cause of it :) it's caused by I've builded docker image on AMD based host, tested it on the build host - and all was ok, and then we deploy it to AWS (Intel Xeon based EC2 instance) and get this errors:
Then i tried to rebuild this docker image on Intel Xeon based host, deployed it to same EC2 instance - and issue was resolved :) |
@sergeyklay Looks like this resolve the issue. Thnx |
I think there is something more happening. When creating a phalcon docker build on my Mac (Intel Core i7) I'm unable to run this container on my server with Xeon processor. |
This topic could be related: https://forum.phalconphp.com/discussion/19297/502-bad-gateway-on-docker-nginx |
I think I've created a good example to show the issue. Backtrace
This works on my Mac
But fails on my vps (xeon).
Then do
Depending on the system you will get Illegal instruction (core dumped) If a core dumped occurred you can create a backtrace.
@sergeyklay please let me know if you need more info |
I've tested this on a few systems. On most systems it works. I now have 2 failing places. The VPS where it started with and an old Mac Pro from 2009 with an XEON cpu. |
After reading this I solved the issue. |
Documentation for build change. See phalcon/cphalcon#13143
This has been addressed |
I'm trying to run a phalcon docker build on coreOS using docker swarm.
My dockerfile is based from phalconphp/php:alpine-3-php7
Locally the image works fine (Mac).
I'm seeing the following errors:
The text was updated successfully, but these errors were encountered: