glib + fork + exit = segmentation fault




hi!

I get a strange segmentation fault. here is some info stackk from gdb

(gdb) info stack
#0  0x401e8ab4 in _int_free () from /lib/libc.so.6
#1  0x401e785c in free () from /lib/libc.so.6
#2  0x401dd59b in vasprintf () from /lib/libc.so.6
#3  0x4005a9a0 in g_strdup_vprintf () from /usr/lib/libglib-2.0.so.0
#4  0x40050514 in g_print () from /usr/lib/libglib-2.0.so.0
#5  0x080493b0 in mainloop_quit () at mainloop.c:36

In my glib application I use two processes, the child process is created
with fork. when the child process calls exit(1) main process gets
segmentation fault. I was trying with _exit(1) but no difference.

please help

greetengs
hubert



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]