473,796 Members | 2,476 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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!7c 573b28()
KERNEL32.DLL!7c 573b50()
boost_thread-vc71-mt-gd-1_31d.dll!boost ::detail::condi tion_impl::do_w ait()
Line 198 + 0xf C++
Sniper.exe!boos t::condition::d o_wait<boost::m utex>() 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 1538
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*********@ho tmail.com> wrote in message
news:es******** ******@TK2MSFTN GP11.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!7c 573b28()
KERNEL32.DLL!7c 573b50()
boost_thread-vc71-mt-gd-1_31d.dll!boost ::detail::condi tion_impl::do_w ait()
Line 198 + 0xf C++
Sniper.exe!boos t::condition::d o_wait<boost::m utex>() 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::conditio n 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*********@ho tmail.com> wrote in message
news:es******** ******@TK2MSFTN GP11.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*********@ho tmail.com> wrote in message
news:eU******** ******@TK2MSFTN GP11.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::conditio n 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*********@ho tmail.com> wrote in message
news:es******** ******@TK2MSFTN GP11.phx.gbl...

Nov 17 '05 #4

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

Similar topics

3
6306
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 I installed Sharepoint Services I got the error and had to reboot and then everything was fine. I get it sometime when running aspx pages. It's very odd. Usually, I can just remove the application and readd it from the properties menu in the IIS...
3
2370
by: Vinodh Kumar P | last post by:
What is call stack? I am sorry if its perceived as an off topic.
5
3178
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 (similar to dbx "where" command"). I am working with IBM compiler and AIX but any other OS/compiler solution would be interesting as well. To answer the inevitable question why I want this, I am writing a simple profiler for my library....
3
4952
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 longjmp().Only via using asm? It is strange that I have searched the google groups and FAQs of this group and "googled" the internet but find none useful info. Thanks for any reply!
1
4786
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 ThreadPool.QueueUserWorkItem) When I try to walk the stack from a location that has been called via QueueUserWorkItem, the stack stops at the point where the thread was launched. Is there a way to walk back further into the parent thread's stack (at the time...
24
6592
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 the stack pointer should go upwards when there are "push" operations, and stack pointer should go downards when there are "pop" operations?? If this is the case, the address should go upwards (increasing) or downards (decreasing) then? i.e....
0
5417
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 well-known example is the use of CallWindowProc to call a function gotten via LoadLibrary/GetProcAddress. For example, I've seen code similar to the following which can register/unregister a COM DLL where the path to the DLL is known only at runtime -- in...
1
3110
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
9389
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 System.Collections;
0
9683
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9529
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10231
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10013
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6792
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5443
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5576
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4119
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3733
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.