[gvd-users] Problem debugging multi-process program

Levi Segev gvd-users@lists.act-europe.fr
Tue, 9 Jul 2002 08:59:02 +0300


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C2270D.B99661F6
Content-Type: text/plain;
	charset="windows-1255"

Hi all,

I'm working on Linux Red Hat 7.2 with gcc version 2.96.

I'm trying to debug a multi-process (right now I managed to reduce it to two
processes only) program.

When I try to debug it with gvd, the child process (I'm using fork) seems to
crash somehow and dump core in it first line (print to screen!).

I also tried to skip debugging the child process, so I tried gdb. The child
process still did not run, but did not create a core.

Why does the child process never manages to run when I debug it?
Do I have to link a special library with it in order to be able to let it
run/debug it?

Thanks in advance,



Segev Levi 
MARS Open Platform Team Leader 
InCom Division, Comverse 
Tel: +972-3-7655497 
Fax: +972-3-6458923
mailto:Segev.Levi@comverse.com



------_=_NextPart_001_01C2270D.B99661F6
Content-Type: text/html;
	charset="windows-1255"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dwindows-1255">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2655.35">
<TITLE>Problem debugging multi-process program</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2 FACE=3D"Arial">Hi all,</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I'm working on Linux Red Hat 7.2 with =
gcc version 2.96.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I'm trying to debug a multi-process =
(right now I managed to reduce it to two processes only) =
program.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">When I try to debug it with gvd, the =
child process (I'm using fork) seems to crash somehow and dump core in =
it first line (print to screen!).</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I also tried to skip debugging the =
child process, so I tried gdb. The child process still did not run, but =
did not create a core.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Why does the child process never =
manages to run when I debug it?</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Do I have to link a special library =
with it in order to be able to let it run/debug it?</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Thanks in advance,</FONT>
</P>
<BR>
<BR>

<P><I><FONT COLOR=3D"#008080" SIZE=3D4 FACE=3D"Bookman Old Style">Segev =
Levi</FONT></I><FONT SIZE=3D4 FACE=3D"Times New Roman"> </FONT>
<BR><I><FONT COLOR=3D"#000080" SIZE=3D2 FACE=3D"Book Antiqua">MARS Open =
Platform Team Leader</FONT><FONT FACE=3D"Book Antiqua"></FONT></I>=20
<BR><FONT COLOR=3D"#000080" SIZE=3D2 FACE=3D"Book Antiqua">InCom =
Division,</FONT><FONT FACE=3D"Book Antiqua"> </FONT><FONT =
COLOR=3D"#000080" SIZE=3D2 FACE=3D"Book Antiqua">Comverse</FONT><FONT =
FACE=3D"Book Antiqua"></FONT>=20
<BR><FONT COLOR=3D"#000080" SIZE=3D2 FACE=3D"Book Antiqua">Tel: =
+972-3-7655497</FONT><FONT FACE=3D"Book Antiqua"></FONT>=20
<BR><FONT COLOR=3D"#000080" SIZE=3D2 FACE=3D"Book Antiqua">Fax: =
+972-3-6458923</FONT>
<BR><FONT COLOR=3D"#000080" SIZE=3D2 FACE=3D"Book Antiqua"><A =
HREF=3D"mailto:Segev.Levi@comverse.com">mailto:Segev.Levi@comverse.com</=
A></FONT>
</P>
<BR>

</BODY>
</HTML>
------_=_NextPart_001_01C2270D.B99661F6--