ohnx / minervabot

Modular IRC bot. The reincarnation of athenabot!
Apache License 2.0
2 stars 1 forks source link

pthread_close() doesn't appear to be working #15

Open ohnx opened 5 years ago

ohnx commented 5 years ago

There still appear to be errors. e.g.:

==17915== Invalid write of size 8
==17915==    at 0x40290C: threadpool_wrapper_deinit (threadpool.c:143)
==17915==    by 0x50456B9: start_thread (pthread_create.c:333)
==17915==  Address 0x585d120 is 16 bytes inside a block of size 128 free'd
==17915==    at 0x4C2EDEB: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17915==    by 0x40317E: threadpool_deinit (threadpool.c:283)
==17915==    by 0x403CA8: modules_deinit (modules.c:342)
==17915==    by 0x4052D3: main (main.c:78)
==17915==  Block was alloc'd at
==17915==    at 0x4C2FD5F: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17915==    by 0x4029F4: threadpool_queue_findspace (threadpool.c:162)
==17915==    by 0x402FAC: threadpool_queue_deinit (threadpool.c:250)
==17915==    by 0x403A0D: modules_unloadmod (modules.c:276)
==17915==    by 0x403BE5: modules_unloadall (modules.c:324)
==17915==    by 0x403C8F: modules_deinit (modules.c:340)
==17915==    by 0x4052D3: main (main.c:78)
==17915==