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

在运行例子时 报错 Illegal instruction (core dumped), #6432

Closed
rongchuang opened this issue Dec 9, 2017 · 10 comments
Closed

在运行例子时 报错 Illegal instruction (core dumped), #6432

rongchuang opened this issue Dec 9, 2017 · 10 comments
Labels
User 用于标记用户问题

Comments

@rongchuang
Copy link

python housing.py

Illegal instruction (core dumped)

@dzhwinter dzhwinter added the User 用于标记用户问题 label Dec 10, 2017
@dzhwinter
Copy link
Contributor

请提供运行环境,报错堆栈信息。只提供core dumped无法帮你debug。

@rongchuang
Copy link
Author

ubantu 16.04 , python2.7.12, (pip install paddlepaddle 安装的)。
执行官网例子就报错(测试了下, 执行到paddle.init(use_gpu=False, trainer_count=1 这里就会报错)
谢谢

@rongchuang
Copy link
Author

root@rong-HP-EliteBook-8440p:/workspace# python housing.py
非法指令 (核心已转储)
root@rong-HP-EliteBook-8440p:
/workspace# ls
fit_a_line.tar housing.py
root@rong-HP-EliteBook-8440p:~/workspace#

@dzhwinter
Copy link
Contributor

使用全新的ubuntu16.04,系统自带python2.7.12,可正常运行,不能复现该问题。

python interpreter有问题。建议使用docker,或使用conda安装python

@dzhwinter
Copy link
Contributor

复现环境:
Linux e1aa480a6522 4.10.0-40-generic #44~16.04.1-Ubuntu
python 2.7.12

@rongchuang
Copy link
Author

docker also have the same :
root@rong-HP-EliteBook-8440p:~/workspace# docker run -it -v ~/workspace:/workspace paddlepaddle/paddle:latest /bin/bash
root@f46deba50f5f:/# cd workspace/
root@f46deba50f5f:/workspace# python housing.py
Illegal instruction (core dumped)
root@f46deba50f5f:/workspace#

@dzhwinter
Copy link
Contributor

docker run -it -v ~/workspace:/workspace /bin/bash
才会进入到docker环境,你的命令仍然在host上

@dzhwinter
Copy link
Contributor

另外,ilegal instruction是因为python编译二进制时候选项没设置错误,ubuntu16.04自带的python不会有这个问题(CI机器是16.04环境)。

@peterzhang2029
Copy link
Contributor

Closing due to low activity. Feel free to reopen it.

@bluebird138
Copy link

bluebird138 commented Feb 27, 2018

我这边新安装的Ubuntu也遇到以上的问题。
sudo apt-get install python-pip
pip install paddlepaddle
python housing.py
提示:非法指令 (核心已转储)
lenovoG460笔记本,Ubuntu 16.04.3 LTS, Python 2.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
User 用于标记用户问题
Projects
None yet
Development

No branches or pull requests

4 participants