wired / colloquypush

Modules for irc clients and bouncers that add Push support to Colloquy Mobile
http://colloquy.mobi/
103 stars 31 forks source link

ZNC crashes as soon as I get disconnect from Colloquy #24

Open MuftiMan opened 13 years ago

MuftiMan commented 13 years ago

* glibc detected * znc: malloc(): memory corruption: 0x000000001fa98430 *** ======= Backtrace: ========= /lib/libc.so.6(+0x775b6)[0x2ab94b4c65b6] /lib/libc.so.6(+0x7b6d8)[0x2ab94b4ca6d8] /lib/libc.so.6(__libc_malloc+0x6e)[0x2ab94b4cb58e] /usr/lib/libstdc++.so.6(_Znwm+0x1d)[0x2ab94ad6b26d] /usr/lib/libstdc++.so.6(_ZNSs4_Rep9_S_createEmmRKSaIcE+0x59)[0x2ab94ad47d99] /usr/lib/libstdc++.so.6(_ZNSs4_Rep8_M_cloneERKSaIcEm+0x2b)[0x2ab94ad4876b] /usr/lib/libstdc++.so.6(_ZNSs7reserveEm+0x3c)[0x2ab94ad4929c] /usr/lib/libstdc++.so.6(_ZNSs6appendEPKcm+0x88)[0x2ab94ad494e8] znc(_ZN5Csock5WriteEPKcm+0x22)[0x4322f2] /home/lao113/.znc/modules/colloquy.so(_ZN7CDevice4PushERK7CStringS2_S2_bi+0x275)[0x2ab94e0f28d5] /home/lao113/.znc/modules/colloquy.so(_ZN12CColloquyMod4PushERK7CStringS2_S2_bi+0x5d5)[0x2ab94e0f42e5] /home/lao113/.znc/modules/colloquy.so(_ZN12CColloquyMod9OnChanMsgER5CNickR5CChanR7CString+0x43)[0x2ab94e0f4a93] znc(_ZN8CModules9OnChanMsgER5CNickR5CChanR7CString+0x10b)[0x4a083b] znc(ZN8CIRCSock9OnChanMsgER5CNickRK7CStringRS2+0x130)[0x46f530] znc(_ZN8CIRCSock8ReadLineERK7CString+0x5108)[0x478c38] znc(_ZN5Csock8PushBuffEPKcmb+0x111)[0x432e41] znc(_ZN14TSocketManagerI8CZNCSockE4LoopEv+0x1d5)[0x456365] znc(_ZN4CZNC4LoopEv+0x69)[0x451869] znc(main+0x99b)[0x4257fb] /lib/libc.so.6(__libc_start_main+0xfd)[0x2ab94b46dc4d] znc[0x424169] ======= Memory map: ========

kr0sis commented 13 years ago

I'm getting this same error with the plugin. It seems to happen after disconnection, but not immediately. If I say something that would trigger a push, or attempt to reconnect to znc, then it will trigger the crash.

It persists and crashes with this error on restart until I rm the colloquy .registry file, then things work again until I register a new device and disconnect/reconnect or restart the bnc, and then it happens again.

Using znc 0.098-1el5 with CentOS and the latest plugin download.

MuftiMan commented 13 years ago

I managed to fix this by doing a chown and chmod. If that still doesn't work, re-compile the plugin as the user that is going to be running the znc, i.e. not root - and it should work.

kr0sis commented 13 years ago

Thanks for the info, but that didn't seem to be the exact problem for me.

My problem came from downloading the ZNC source, realizing I didn't have all the pre-requisites to build it, then just installing the packaged version through yum. When I went to download the colloquy plugin, the source file ended up being downloaded into the ZNC source directory. This allowed it to compile without error, and produced the crashing plugin.

I then tried a fresh download to the ~/.znc/modules directory and built from there, which gave me errors about missing header files for openssl and c-ares. I installed those development libraries, rebuilt, and everything worked.

Issue resolved for me.