in reply to Glib Errors on close
What are you doing in your program?
What modules are you using?
How is your perl configured?
How do you expect us to fix anything with almost no information?
It looks like you are having some errors at the C/XS level. There are tools for dealing with this such as gdb and valgrind.
But I'm just guessing here. It could also be that you are mixing eventloops or using threads with something that doesn't play nice with threads.