leezu opened a new issue #18314:
URL: https://github.com/apache/incubator-mxnet/issues/18314


   ## Description
   The following code shouldn't crash, but can reliably trigger segfault in 
ThreadedEngine. (No segfault with NaiveEngine).
   
   ```
   import gc
   gc.set_debug(gc.DEBUG_SAVEALL)
   import mxnet as mx
   net = mx.gluon.nn.Dense(10, in_units=10)
   net.initialize()
   del net
   print(gc.collect())
   for i, x in enumerate(gc.garbage):
       print(i, type(x), id(x), end=' ')
       try:
           print('\t', x)
       except Exception as e:
           print('failed', e)
   ```
   
   cc @eric-haibin-lin 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to