-
Notifications
You must be signed in to change notification settings - Fork 6.8k
'Segmentation fault' when using simple_bind operation #865
Comments
try update to newest version, make clean, make sure you have cuda enabled in config.mk, and make again |
@piiswrong I've updated the codes and installed again. However the problem is still there. If I try the complete 'simple_bind' example, there is no error. So I guess maybe there are some bugs of allocating or freeing memory. |
The backtrace of gdb: #0 __GI___libc_free (mem=0x746867696577) at malloc.c:2929 |
I think it should be closely related with #817 |
Ok now I get it. This is a harmless error. It's because mxnet exited before it's fully initialized. Do something after bind and you'll be fine, like start training/predicting or simply time.sleep(10) @tqchen this is the singleton destruction bug we talked about. Could you fix it or at least hide it? |
Hi, I've got a 'Segmentation fault' when I use simple_bind operation. At first, it occurs when I test my own created layers. Then I find that it occurs in others codes. I simply use the following code from simple_bind example.
Then the program may get 'Segmentation fault' at some tests and may be fine at another try. It's quite strange that the error comes out in random. When I change to use mx.cpu(), the program goes fine. However, in my own network, the error always comes out despite the devices.
The text was updated successfully, but these errors were encountered: