fork(),exeve() and waitpid() in gtk-application?



hi,

is it allowed to use fork(), execve() and waitpid() inside
a gtk application? i allways get segmention faults in the
parent process if execve() in the child failed .. hmm.. any
ideas? known bugs?

until now i wasn't be able to debug the problem, using the
core file gdb says (which doesn't help me ..):

Core was generated by `./xap'.
Program terminated with signal 6, Aborted.
Reading symbols from /usr/local/X11/lib/libgtk-1.2.so.0...done.
[..]
(gdb) where
#0  0x40185df1 in __kill () from /lib/libc.so.6
#1  0x40185a2d in raise () from /lib/libc.so.6
#2  0x40275c4e in g_log () from /usr/local/X11/lib/libglib-1.2.so.0
#3  0x4013fb29 in gdk_x_io_error () from /usr/local/X11/lib/libgdk-1.2.so.0
#4  0x402c579d in _XIOError () from /usr/X11R6/lib/libX11.so.6
#5  0x402c354d in _XRead () from /usr/X11R6/lib/libX11.so.6
#6  0x402c3ea3 in _XReply () from /usr/X11R6/lib/libX11.so.6
#7  0x402bffa1 in XSync () from /usr/X11R6/lib/libX11.so.6
#8  0x402a9a29 in XCloseDisplay () from /usr/X11R6/lib/libX11.so.6
#9  0x4013fa77 in gdk_exit_func () from /usr/local/X11/lib/libgdk-1.2.so.0
#10 0x40188315 in exit () from /lib/libc.so.6
Cannot access memory at address 0x7f.
(gdb) 

cu
 rasca
-- 
 /#- Internet eMail: thron@gmx.de, FidoNet: 2:2410/304.5@fido -#\
<-#- Internet WWWeb: http://home.pages.de/~rasca/ -------------#->
 \#- please do NOT quote these lines or other useless stuff! --#/



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