[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain -->
- <!--x-date: Tue Apr 12 15:36:41 2005 -->
- <!--x-from-r13: psbjyre ng bhgcbfgfragvary.pbz (Quevfgbcure Tbjyre) -->
- <!--x-message-id: [email protected] -->
- <!--x-reference: [email protected] -->
- <!--x-reference: [email protected] -->
- <!--x-reference: [email protected] --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-subject: [ale] GDB problem on RH AS 3 -->
- <li><em>date</em>: Tue Apr 12 15:36:41 2005</li>
- <li><em>from</em>: cfowler at outpostsentinel.com (Christopher Fowler)</li>
- <li><em>in-reply-to</em>: <<a href="msg00268.html">[email protected]</a>></li>
- <li><em>references</em>: <<a href="msg00259.html">[email protected]</a>> <<a href="msg00261.html">[email protected]</a>> <<a href="msg00268.html">[email protected]</a>></li>
- <li><em>subject</em>: [ale] GDB problem on RH AS 3</li>
clone() is the system call to Linux to create a thread. I knew
that pthreads did this. My thought was that there was a reason
why pthreads was able to allow GDB to function and then a program
that just uses clone() does not.
Have you issued the GDB thread commands?
<a rel="nofollow" href="http://www.delorie.com/gnu/docs/gdb/gdb_25.html">http://www.delorie.com/gnu/docs/gdb/gdb_25.html</a>
On Tue, 2005-04-12 at 15:50, pras at cycloeastern.com wrote:
> You might be onto something here !!!
>
> #0 0x02c399d0 in clone () from /lib/tls/libc.so.6
> #1 0x002a68d7 in do_clone () from /lib/tls/libpthread.so.0
> #2 0x002a6526 in create_thread () from /lib/tls/libpthread.so.0
> #3 0x002a5f87 in pthread_create@@GLIBC_2.1 () from /lib/tls/libpthread.so.0
> #4 0x002a601c in pthread_create at GLIBC_2.0 () from /lib/tls/libpthread.so.0
> #5 0x002edf3a in VISThread::_create_thread () from /usr/BDP/lib/libvport_r.so
> #6 0x002ee0bc in VISThread::run () from /usr/BDP/lib/libvport_r.so
> #7 0x013f9588 in VISManager::cleanup () from /usr/BDP/lib/liborb_r.so
> #8 0x013fa063 in VISManager::sig_handler () from /usr/BDP/lib/liborb_r.so
> #9 0x013fa4a1 in VISThreadSignal::begin () from /usr/BDP/lib/liborb_r.so
> #10 0x002ec749 in VISThread::_start () from /usr/BDP/lib/libvport_r.so
> #11 0x002a5dec in start_thread () from /lib/tls/libpthread.so.0
> #12 0x02c39a2a in clone () from /lib/tls/libc.so.6
>
> Here is my stack.
>
> It appears as though pthreads use close as well ?
>
>
>
> On Tue, Apr 12, 2005 at 12:21:14PM -0400, Christopher Fowler wrote:
> > Are you using clone() to do threads. A friend and I had a similar
> > problem last week. However he just started his program and we
> > chose to use pthreads instead of clone() directly. When we did that
> > He was able to debug the threads. For some reason GDB would go stupid
> > when we just used clone(). We did not have time to figure out why.
> >
> >
> > On Tue, 2005-04-12 at 12:29, pras at cycloeastern.com wrote:
> > > All,
> > >
> > > I work for a company in that has started using Linux for one of its projects
> > > that has traditionally in the past been running on all other big iron *nixes.
> > >
> > > We just got our first build on RH Enterprise Linux AS release 3 (Taroon Update 4),
> > > and gdb attemptys fail miserably.
> > >
> > > Background info:
> > >
> > > The product is written in C/C++ and is compiled with gcc 3.2.3
> > > The gdb version is as follows:
> > > GNU gdb Red Hat Linux (6.1post-1.20040607.52rh)
> > >
> > > I am able to attach to a process and see the stack using backtrace or bt. frame command
> > > works and even break command works.
> > >
> > >
> > > When I try to do a 'cont', the server process which is supposed to execute continuously exists normally.
> > >
> > > This is what I see
> > >
> > > (gdb) cont
> > > Continuing.
> > > [New Thread -1245635664 (LWP 8226)]
> > > [Thread -1220756560 (LWP 7953) exited]
> > >
> > > Program exited normally.
> > > (gdb)
> > >
> > >
> > > Do you guys know what might be going wrong ?
> >
> > _______________________________________________
> > Ale mailing list
> > Ale at ale.org
> > <a rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale">http://www.ale.org/mailman/listinfo/ale</a>
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00259" href="msg00259.html">[ale] GDB problem on RH AS 3</a></strong>
<ul><li><em>From:</em> pras at cycloeastern.com (pras at cycloeastern.com)</li></ul></li>
<li><strong><a name="00261" href="msg00261.html">[ale] GDB problem on RH AS 3</a></strong>
<ul><li><em>From:</em> cfowler at outpostsentinel.com (Christopher Fowler)</li></ul></li>
<li><strong><a name="00268" href="msg00268.html">[ale] GDB problem on RH AS 3</a></strong>
<ul><li><em>From:</em> pras at cycloeastern.com (pras at cycloeastern.com)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00268.html">[ale] GDB problem on RH AS 3</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00270.html">[ale] mailto is not a registered protocol......HUH ?</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00268.html">[ale] GDB problem on RH AS 3</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00263.html">[ale] rackmount stuff</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00269"><strong>Date</strong></a></li>
<li><a href="threads.html#00269"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>