473,407 Members | 2,326 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Viewing Call Stack?

I have a complex threading deadlock scenario that I've been able to
reproduce in the debugger. I hit break and look at the call stack which
should tell me what I need. Except I only get the very bottom of the
call stack:

KERNEL32.DLL!7c573b28()
KERNEL32.DLL!7c573b50()
boost_thread-vc71-mt-gd-1_31d.dll!boost::detail::condition_impl::do_wait()
Line 198 + 0xf C++
Sniper.exe!boost::condition::do_wait<boost::mutex> () Line 150 + 0xd C++

This is C++ (not Managed or .NET C++). I'm using Boost threads, Dev
Studio .NET 2003 (VC++ 7.1). Lack of a working call stack makes
debugging extremely difficult. Are there any ways to get it working?
Nov 17 '05 #1
3 1521
Hi,

That sounds like a pretty reasonable call stack for a thread that's not
doing very much. Have you had a look at the other threads? The debugger
toolbar has three drop downs - the middle one lists the threads you've got
running. Maybe some of the others will give you some ideas.

Steve

"Tommy Vercetti" <ve*********@hotmail.com> wrote in message
news:es**************@TK2MSFTNGP11.phx.gbl...
I have a complex threading deadlock scenario that I've been able to
reproduce in the debugger. I hit break and look at the call stack which
should tell me what I need. Except I only get the very bottom of the
call stack:

KERNEL32.DLL!7c573b28()
KERNEL32.DLL!7c573b50()
boost_thread-vc71-mt-gd-1_31d.dll!boost::detail::condition_impl::do_wait()
Line 198 + 0xf C++
Sniper.exe!boost::condition::do_wait<boost::mutex> () Line 150 + 0xd C++

This is C++ (not Managed or .NET C++). I'm using Boost threads, Dev
Studio .NET 2003 (VC++ 7.1). Lack of a working call stack makes
debugging extremely difficult. Are there any ways to get it working?

Nov 17 '05 #2
I guarantee you that there is more to the call stack. I didn't launch a
thread with an entry point of the boost::condition object. I know the
entry point function of that thread and it's not on that call stack.

Yes, I can switch to other threads. Some of them are stuck in the same
place and others are doing other tasks. It's hard to diagnose the
problem without seeing the important call stacks though.

Steve McLellan wrote:
Hi,

That sounds like a pretty reasonable call stack for a thread that's not
doing very much. Have you had a look at the other threads? The debugger
toolbar has three drop downs - the middle one lists the threads you've got
running. Maybe some of the others will give you some ideas.

Steve

"Tommy Vercetti" <ve*********@hotmail.com> wrote in message
news:es**************@TK2MSFTNGP11.phx.gbl...

Nov 17 '05 #3
One thing to try as a workaround is to stick some debug logging where you
think the problem is (before / during / after locked sections). Presumably
this is a one-off problem, and it may not be worth spending a long time
getting the debugger to behave. Otherwise, I don't know. Good luck with it.

Steve

"Tommy Vercetti" <ve*********@hotmail.com> wrote in message
news:eU**************@TK2MSFTNGP11.phx.gbl...
I guarantee you that there is more to the call stack. I didn't launch a
thread with an entry point of the boost::condition object. I know the
entry point function of that thread and it's not on that call stack.

Yes, I can switch to other threads. Some of them are stuck in the same
place and others are doing other tasks. It's hard to diagnose the
problem without seeing the important call stacks though.

Steve McLellan wrote:
Hi,

That sounds like a pretty reasonable call stack for a thread that's not
doing very much. Have you had a look at the other threads? The debugger
toolbar has three drop downs - the middle one lists the threads you've got running. Maybe some of the others will give you some ideas.

Steve

"Tommy Vercetti" <ve*********@hotmail.com> wrote in message
news:es**************@TK2MSFTNGP11.phx.gbl...

Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jas Shultz | last post by:
I'm using Win2K3 Enterprise edition with the latest .NET framework installed. I have this problem with getting "out of disk space" errors. It doesn't happen all the time but it does happen. When...
3
by: Vinodh Kumar P | last post by:
What is call stack? I am sorry if its perceived as an off topic.
5
by: Adrian | last post by:
Is there a way (understandably non-portable) to get the call stack from within a function? That is, assuming the application has been compiled with symbols, get the list of calling function names...
3
by: Cong Wang | last post by:
Hi,all! I found an interesting problem,it is that how to implement a C function which can be called once and return twice? Just like the POSIX function fork() or the library function...
1
by: Jason Coyne | last post by:
I am trying to use the StackTrace class to get my current stack trace for some logging. Everything is working fine, except when I am using threading (specifically WaitCallBack and...
24
by: John | last post by:
I know this is a very fundamental question. I am still quite confused if the program call stack stack should always grows upwards from the bottom, or the opposite, or doesn't matter?? That means...
0
by: Mike S | last post by:
I've seen examples of using the CallWindowProc Windows API function to call functions through their addresses in VB6 -- a clever workaround to emulate C-like function pointer semantics. A...
1
by: George2 | last post by:
Hello everyone, Such code segment is used to check whether function call or exception- handling mechanism runs out of memory first (written by Bjarne), void perverted() { try{
1
by: Magnus.Moraberg | last post by:
Hi, Is it a code practice for me to have writen the following Class? - using System; using System.Collections.Generic; using System.Text; using System.Windows.Forms; using...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.