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

Segmentation fault怎么调试 #9

Closed
skyang2009 opened this issue Feb 22, 2021 · 5 comments
Closed

Segmentation fault怎么调试 #9

skyang2009 opened this issue Feb 22, 2021 · 5 comments

Comments

@skyang2009
Copy link

root@iZ0jl3nc5j5s6c69yrpgreZ:~/wtpy-master/demos/datakit_fut# python3 runDT.py
/usr/local/lib/python3.8/dist-packages/wtpy/wrapper/linux/libWtDtPorter.so
<CDLL '/usr/local/lib/python3.8/dist-packages/wtpy/wrapper/linux/libWtDtPorter.so', handle 2859ef0 at 0x7fdd2b1cdd30>
Segmentation fault

C++和Python混在一起太难搞了,不知道哪里配的不对

@wondertrader
Copy link
Owner

跨语言是很麻烦,你可以尝试用python -m pdb runDT.py来调试,如果还有问题,请到wondertrader下面发一个issue,我来看看

@skyang2009
Copy link
Author

系统可以跑了,我是在mac下面写码然后同步到Ubuntu的服务器上编译和调试,经验一是Python用到的动态库尽量重新编译一下,二是所有代码和配置文件都要保存成gbk格式的。

image

@wondertrader
Copy link
Owner

系统可以跑了,我是在mac下面写码然后同步到Ubuntu的服务器上编译和调试,经验一是Python用到的动态库尽量重新编译一下,二是所有代码和配置文件都要保存成gbk格式的。

image

你是在什么操作系统?

@skyang2009
Copy link
Author

18.04LTS

@wondertrader
Copy link
Owner

18.04LTS

好的,已经解决就好了,这个问题后面会逐步完善的。issue我先关了

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

No branches or pull requests

2 participants