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 (core dumped) #8

Closed
lh14576 opened this issue Jul 5, 2018 · 13 comments
Closed

Segmentation fault (core dumped) #8

lh14576 opened this issue Jul 5, 2018 · 13 comments

Comments

@lh14576
Copy link

lh14576 commented Jul 5, 2018

Hi,

when trying to do a preflop match with deepstack I am getting a "Segmentation fault (core dumped)" error. It doesn't matter if I skip the bucket computation or not. Running on Ubuntu 18.04

Any hints on how to resolve this?

@happypepper
Copy link
Owner

This could be related to your lua version, since luaJIT will produce out of memory errors.

Are you using luaJIT or lua 5.2?

@lh14576
Copy link
Author

lh14576 commented Jul 6, 2018

pretty sure its lua 5.2. It says "Lua 5.2" when doing print(_VERSION). Also, it is counting all possible flop combinations up to 22100 before crashing with the segmentation fault.

@happypepper
Copy link
Owner

th may be using different version of lua than lua.
Are there more detailed error logs?
did you install torch using TORCH_LUA_VERSION=LUA52 ./install.sh?

@lh14576
Copy link
Author

lh14576 commented Jul 6, 2018

yeah, I installed as described in the readme. Also, I started th before using print(_VERSION) that should give me the lua used by torch right?

@happypepper
Copy link
Owner

Yea it should.
I think the problem is your machine doesn't have enough RAM. It runs fine on my macbook with 16 GB RAM.
I should add some system requirements to the readme.

@lorrp1
Copy link

lorrp1 commented Jul 8, 2018

i have setup everything but its very slow on my 1070 so im thinking of running it on google cloud; but how did you tested it versus "Slumbot 2017"?

@lh14576
Copy link
Author

lh14576 commented Jul 9, 2018

I increased RAM to 32GB but that didn't help. Still crashing with segmentation fault after counting flops.

@lh14576 lh14576 closed this as completed Jul 9, 2018
@lh14576 lh14576 reopened this Jul 9, 2018
@lorrp1
Copy link

lorrp1 commented Jul 9, 2018

try to install torch with lua 5.3 i could not run it on 5.2

@lh14576
Copy link
Author

lh14576 commented Jul 9, 2018

same with lua 5.3. Will try on ubuntu 16.04 and see if that helps.

@lh14576
Copy link
Author

lh14576 commented Jul 10, 2018

Thanks guys. Fresh install on Ubuntu 16.04 solved the issue.

@lh14576 lh14576 closed this as completed Jul 10, 2018
@ghost
Copy link

ghost commented Jul 10, 2018

@lh14576 the root cause is that 52 should be LUA52 in readme "TORCH_LUA_VERSION=52 ./install.sh". I encounter the same issue. I fixed it when I use LUA52.

hope helpful for you.

@godmoves
Copy link

I think this is an issue related to Ubuntu. I've tested on Ubuntu 18.04 many times and failed every time. But the same code running smoothly on Ubuntu 16.04. BTW, LuaJIT will not get segfault but will produce memory error.

@krunt
Copy link

krunt commented Feb 3, 2020

Encountered this too on 18.04.
Solved this by running in nvidia-docker 16.04, torch built from source
using https://github.com/nagadomi/cutorch.
actually copying this built torch to 18.04 and running - sigfault does not happen:)

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

5 participants