473,657 Members | 2,300 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is there a way with Linux x86 to report a way the current stack trace for a thread?

Is there a way with Linux x86 to report a way the current stack trace
for a thread during runtime without a debugger? (I couldn't find
anything searching Google.)

For Windows this is possible. Here's an example of an application that
uses Window's stack tracing abilities:

http://www.codeproject.com/tools/visualleakdetector.asp

Many thanks!

- Kevin

Oct 20 '05 #1
4 1577
kevin.h...@moti oneng.com wrote:
Is there a way with Linux x86 to report a way the current stack trace
for a thread during runtime without a debugger? (I couldn't find
anything searching Google.)

For Windows this is possible. Here's an example of an application that
uses Window's stack tracing abilities:

http://www.codeproject.com/tools/visualleakdetector.asp

Many thanks!

- Kevin


This is off topic in this newsgroup, which is concerned with standard
C++ language issues. Try in a Linux programming forum. See this FAQ for
some specific suggestions:

http://www.parashift.com/c++-faq-lit...t.html#faq-5.9

Cheers! --M

Oct 20 '05 #2
ke********@moti oneng.com wrote:
Is there a way with Linux x86 to report a way the current stack trace
for a thread during runtime without a debugger? (I couldn't find
anything searching Google.)

For Windows this is possible. Here's an example of an application that
uses Window's stack tracing abilities:

http://www.codeproject.com/tools/visualleakdetector.asp

Many thanks!

- Kevin


I was able to write one in SCO ODT 2. Look at ptrace(2) or whatever the
equivalent in Linux is.

However, as mlimber pointed out, this is OT. Try gnu.g++.help
Oct 20 '05 #3
ke********@moti oneng.com wrote:
Is there a way with Linux x86 to [...]


You seem lost. You need 'comp.os.linux. development.*' hierarchy.
'comp.lang.c++' is about C++ _language_. When you have a C++ language
question, please come back and ask it.

V
Oct 20 '05 #4

ke********@moti oneng.com wrote:
Is there a way with Linux x86 to report a way the current stack trace
for a thread during runtime without a debugger? (I couldn't find
anything searching Google.)


You should ask in linux newsgroup then.
For a gcc there is void* __builtin_retur n_address(unsig ned level);
and void* __builtin_frame _address(unsign ed level);
with level 0 returning current function and frame address respectively.

Greetings, Bane.

Oct 20 '05 #5

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

Similar topics

1
4302
by: Adi | last post by:
A java program we have written crashes with IBM JDK 1.3.1 on linux. It works fine on other platforms(Solaris,HPUx). It gets a SIGSERV Signal 11 and crashes just after few minutes after starting up. THe program creates a good number of threads. Any suggestions most welcome. Have tried following setting LD_ASSUME_KERNEL=2.2.5 disabling JIT by passing -Djava.compiler=NONE
3
2813
by: Russ | last post by:
I have a page that uses crystal reports to generate reports from a SQl server database. As of a week ago everything was working fine, but now I am all of the sudden getting errors. To the best of my knowledge nothing was changed on the server. Here is the error: Error in File C:\DOCUME~1\WEBSERVER\ASPNET\Local Settings\Temp\temp_57908cf8-dba0-4327-b785-95de5cf6e523.rpt: Invalid export DLL or export format.
2
1395
by: Simon Abolnar | last post by:
I would like to ask, is it a way to deploy ASP.NET app with Crystal Report without using setup. I have problem with my VS.NET (Unrecoverable Build Error). I copied dll files to bin folder, but what else I need to do? Thanks for help! Simon
2
2437
by: jyothi rajanna | last post by:
Hi, We are trying to deploy an application that uses crystal.net(version 9.1) as a reporting tool. We created the Websetup.exe file using the MergeModule and ran the same in the production server(having the environment VS2003 framework,IIS6.0, Windows Server 2003). While running the same we are getting the following error: Please suggest us steps to deploy in the production server. Thanks and regards Alpee Jain
0
8411
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
8323
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
8838
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8739
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...
1
8513
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8613
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
4173
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
4329
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1969
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.