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


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/
(gdb) where
#0  0x40185df1 in __kill () from /lib/
#1  0x40185a2d in raise () from /lib/
#2  0x40275c4e in g_log () from /usr/local/X11/lib/
#3  0x4013fb29 in gdk_x_io_error () from /usr/local/X11/lib/
#4  0x402c579d in _XIOError () from /usr/X11R6/lib/
#5  0x402c354d in _XRead () from /usr/X11R6/lib/
#6  0x402c3ea3 in _XReply () from /usr/X11R6/lib/
#7  0x402bffa1 in XSync () from /usr/X11R6/lib/
#8  0x402a9a29 in XCloseDisplay () from /usr/X11R6/lib/
#9  0x4013fa77 in gdk_exit_func () from /usr/local/X11/lib/
#10 0x40188315 in exit () from /lib/
Cannot access memory at address 0x7f.

 /#- Internet eMail:, FidoNet: 2:2410/304.5@fido -#\
<-#- Internet WWWeb: -------------#->
 \#- please do NOT quote these lines or other useless stuff! --#/

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