API for call stack traceback?

I don't mean to diss the use of debuggers like dbx, but there are times when other tools would suit a problem better.
Is there a routine I can call from a C++ program to print a current call stack traceback in the current thread?

Is there way how to get debug information from program compiled with -g? I mean source file and line. I use printstack, but source file and line could be more comfotable :).

Similar Messages

  • Interpreting a call stack traceback

    I am trying to diagnose a segv crash in our application but All I have to go on is a call stack traceback that was harvested at the time of the crash. This is workshop 4.0 vintage running on Solaris 2.6. The application was built with level 2 optimisation.
    one line of the traceback follows:
    00098de8 CSax_ExchApi::WriteData(CEis_OutMsgContext*)(88f1e4, 539878, 894750, 3a5e8c, 1, 5ae118) + 114
    My questions are:
    1. What does the + 114 signify?
    2. Is it correct that the 1st arg shown (88f1e4) is the value of the this ptr?
    3. Is it correct that the 2nd arg shown (539878) is the value of the parameter?
    4. Do the values of the rest of the args have any significance?
    Thanks

    one line of the traceback follows:
    00098de8
    CSax_ExchApi::WriteData(CEis_OutMsgContext*)(88f1e4,
    539878, 894750, 3a5e8c, 1, 5ae118) + 114
    My questions are:
    1. What does the + 114 signify?The program counter was 114 bytes past the beginning of the named function. The traceback looks for the nearest defined symbol before the location. If the problem is in a non-global function, the address might not be inside the named function. Example:
    int foo(){ return 0; } // global tiny function
    static int bar() // non-global function
    // crash in here someplace
    The traceback will show a reference to foo + some offset, because bar is not a known symbol.
    Now, the odd thing here is that on SPARC, instructions are on 4-byte boundaries, and 114 is not a multiple of 4. The problem might be a jump to a non-aligned address, which will cause a fault and crash. An invalid jump is normally the result of using a bad pointer. The use of the bad pointer could be far-removed from when and where the crash occurred.
    2. Is it correct that the 1st arg shown (88f1e4) is
    the value of the this ptr?Yes.
    3. Is it correct that the 2nd arg shown (539878) is the value of the parameter?Yes, if the parameter size is 32 bits.
    4. Do the values of the rest of the args have any significance?Without debug data, the traceback arbitrarily shows the first few values on the stack, but cannot interpret them. You need to compare the values shown to the actual source code to make sense out of them.

  • Q. re interpreting the call stack traceback

    I am trying to diagnose a segv crash in our application but All I have to go on is a call stack traceback that was harvested at the time of the crash. This is workshop 4.0 vintage running on Solaris 2.6. The application was built with level 2 optimisation.
    one line of the traceback follows:
    00098de8 CSax_ExchApi::WriteData(CEis_OutMsgContext*)(88f1e4, 539878, 894750, 3a5e8c, 1, 5ae118) + 114
    My questions are:
    1. What does the + 114 signify?
    2. Is it correct that the 1st arg shown (88f1e4) is the value of the this ptr?
    3. Is it correct that the 2nd arg shown (539878) is the value of the parameter?
    4. Do the values of the rest of the args have any significance?
    Thanks

    Apologies all for the mis-post. This belongs in the C++ forum

  • Api for call blocking in j2me

    hi, any api for call blockin in j2me? Can we use jsr-253 now for this task?

    exactly.
    You read this part of that link? "
    Depending on your wireless service provider and the wireless network that your BlackBerry® device is connected to, this feature might not be supported."
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • API for Call Manager Backup

    Hello All,
    Is there any API available to take the back up from Cisco Call Manager (ranging from the version of 4.0 up to 7.0). My aim is to develop an application either in .NET or Java to take the back up from the call manager and restore the same.
    I could get some information on Cisco Back up utilities. But for the automation purpose I am looking for using API in application so that it can be triggered at the desired time automatically.
    Thanks and regards,
    Ram

    Hi Ram,
    You may want to post this question under "IP Telephony" community. This is where call manager questions are posted.
    thanks,
    Hitesh

  • ABAP API for MDM work flow

    Hi SDN,
    I need some information related to ABAP API for MDM workflow. I did search in SDN and I found one solution in a thered posted on Jul-2008.
    ABAP API - MDM Workflow execute
    My dought is: Do we have any ABAP API for call MDM work flow. Please provide me the solution ASAP. Apprciate for your immediate response.
    Regards,
    Kumar.

    Hi LAKSHMAN ,
    To answer your question specifically
    Using ABAP api you cannot call MDM workflows as of mdm 5.5 there are no functions specific to calling MDM workflows in ABAP.If you want to implement workflows on ABAP side you need to go for SAP ECC workflows which is a different topic than MDM>
    To call MDM workflows over the Java stack ie WAS (SAP portal),You have 2 ways
    - UWL
    - Guided Procedures.
    - UWL is a way of calling MDM workflows on EP.Wherein the workflow design will be done in MDM and it will only be called in portal using appropiate connections and configurations.
    You can refer the below links to know more on them:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/771f1a61-0e01-0010-daa9-93a52905da09 (uwl)
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a3461636-0301-0010-3787-978f5ac8bd45 (UWL config)
    - GP is a way where by you need to design the entire workflow on SAP portal the logic can be pertaining to MDM but the design is completely on portal using webdynpros and api.
    You can refer the below links to know more on them:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/92811997-0d01-0010-9584-f7d535177831  (Guided procedures)
    Enterprise Master Data Management   (EP Guided)
    To know more on ABAP api and its provider classes you can refer the below:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/601ddb01-e5c8-2910-d981-b190b51fca44  (abap api webinar)
    Re: Abap api error (Abap api provider classes Forum)
    Hope It Helped
    Thanks & Regards
    Simona Pinto

  • Call stack limitation (recursive limit) for Flash Lite

    What is the call stack limitation for Flash Lite?

    Thanks for the input
    I thought I had it figured out, but I still see an occasional crash.  I put my save to flash function in a vi of its own and it runs fine.  I use the standard "write to binary file.vi"  The problem seems to be when other loops are running in parallel.  If my diagram has any timed loop structures, then it crashes.  So I removed all of my timed loops and slowed down/simplified all of the other loops.  This helped a lot.  While it used to crash about every 5th time now it will run about 50 on average but still crashes about once a day.  I am rewriting my vis to run sequentially in a single loop so that they arbitrate with each other manually (so much for real-time)  I will see if that works, but in the meantime..
    I can try the upgrade to 3.3.0 if you think that will help, but do I also have to upgrade anything else in my design environment (ie can I leave the rest of labview alone and just update the cRIO)?  If the upgrade has trouble I need to be able to revert back to where I am now.  I can't afford to begin a large upgrade which will take me down for a while.  I had a lot of trouble installing all of the Labview environment the first time, so I don't want to start something that I will regret.
    Nathan

  • How to use d2kwutil for calling win-api programs in form 6i

    I WANT TO USE d2kwutil for calling win-api programs in form 6i.
    PLEASE GIVE ME IT'S SOLUTION.

    D2kwutil comes with a Demo Form WAPIDEMO - you can run this to see every function demonstrated. You can even run a function using the demo form and copy the syntax required directly into your own form -------------------------
    yes in have got that WAPIDEMO from web and run successfully but
    i can not do those codes in my owdn form.Because i do not get those apis like
    win_app_session in form 6i.
    Again i could not understand how that form runs without connecting to database.
    Please describe the solution.

  • Call of API for IBase contains errors

    Dear All,
    We are using solution manager 4 with SP13.When i try to create a Ibase through Initiate Data transfer for ibase,i gives the following error.
    Call of API for IBase contains errors
    Message no. CRM_IB050
    Diagnosis
    No import data was entered for one of the function modules (APIs) for Installed Base Management. Therefore, the function cannot be executed.
    System Response
    The system terminates processing.
    Procedure
    If the APIs are called in customer-specific programs, check the call for the APIs and change the call accordingly.
    Please help to proceed,
    Regards,
    Avinash.

    Good day,
    Had the same error and solved it by doing the following;
    Go to t/code DNO_CUST01 and double click on SFL1 and make sure "number range" is 01 and "action profile" is SLFN0001_STANDARD_DNO.
    Your number range interval in t/code CRMC_NR_RA_SERVICE should be consistant with NR details in t/code DNO_NOTIF (check note: 498984 to set it up)
    Good luck.
    Cheers
    Anthony Cunha

  • Call of API for IBase contains errors Message no. CRM_IB050

    Call of API for IBase contains errors
    Message no. CRM_IB050
    Diagnosis
    No import data was entered for one of the function modules (APIs) for Installed Base Management. Therefore, the function cannot be executed.
    System Response
    The system terminates processing.
    Procedure
    If the APIs are called in customer-specific programs, check the call for the APIs and change the call accordingly.
    Can anyone help me in the above issue.
    Regards,
    Mirza Kaleemulla Baig

    Hi Sai,
    This is too late to reply this post, but to let everyone know about the issue I am posting here.
    Start new UI session and put breakpoint at BUPR_EMPLO_DELETE and check parameter IV_X_SAVE everytime, till you get the error message. The parameter IV_X_SAVE should be same/consistent (either ' ' or 'X') in whole Logical Unit of Work. It should not change in between.
    I faced the same kind of problem and found that standard was passing IV_X_SAVE = ' ' and in our custom code we were passing IV_X_SAVE = 'X'. I changed it to IV_X_SAVE = ' ' and my problem got resolved.
    You can try the same. Please post the alternate solution if you find it.
    Best Regards,
    Rahul Koshti

  • RangeError: Maximum call stack size exceeded

    Dear all,
    we are executing and EDGE project in a Samsung SmartTV.  In more powerful models (more memory and cpu) the execution is correct. but in some old TV models we receive the following  message:
    File:   file://c/........../EDGE_006/edge_includes/edge.2.0.1.min.js
    Line No:  135
    Error Detail: RangeError: Maximum call stack size exceeded.
    It seems that this happens depending on the complexity of the EDGE project, as for some simple projects it works.
    we would like to adjust our EDGE project for this less powerful models modifiying animations and simplifying complexity, but we dont know where to start (which animations to remove, etc.)
    Or if there are some parameters in the edge API to adjust in order to increase performance in low memory browsers.
    Thank you in advance,
    Luis

    sunil-online wrote:
    > I am calling an external DLL and running it in the UI thread. How much
    > stack space is available when they are on separate threads or on the
    > UI thread?
    >
    > The problem is that I am getting seemingly random crashes while
    > running this VI and after I quit labview after stopping and uninit-ing
    > my DLL.
    Unless you know this DLL is using exceedingly lots of stack (at least
    several dozens of MB) for whatever obscure reasons it is very unlikely
    that running out of stack space is causing your problem. More likely
    either the DLL does something nasty to a data pointer passed in to it or
    you made an error in setting up the call to the DLL.
    For instace if the DLL expects strings or array pointers to be passed in
    they need to
    be allocated by the caller (here LabVIEW) and you need to
    tell LabVIEW to do that in the diagram code.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • API for logging in a function

    Hi,
    is there or will there be a standard API for logging information in a function.
    When a function is executed I would like to store different information e. g. debugging information. So if a function fails, I can see how far the function executed. Of course, I can store such data on my own referencing the actid. But I don4t want to write code for a feature that is already implemented.
    Thanks!
    Regards,
    Christian

    The standard workflow PL/SQL interface includes exception handling, this is the call to the wf_core.context API. This API has about 10 parameters you can use to include useful debugging information, and this will be put on the error stack and visible through the Workflow Monitor or the error notification if you registered a workflow to manage the function activity errors.
    Hi,
    is there or will there be a standard API for logging information in a function.
    When a function is executed I would like to store different information e. g. debugging information. So if a function fails, I can see how far the function executed. Of course, I can store such data on my own referencing the actid. But I don4t want to write code for a feature that is already implemented.
    Thanks!
    Regards,
    Christian

  • Invalid TLS index used for current stack trace.

    Post Author: KBenjamin
    CA Forum: Older Products
    In Visual Basic 6.0, when I run this line of code to create an instance of CR 8.5: Global G_objCRApplication As CRAXDRT.Application
    I get this error: Invalid TLS index used for current stack trace.
    How do I fix this?

    Hello Don,
    Crystal Reports 8.5 was retired long before Vista was released.  Mixing in other CRPE versions wouldn't be supported to work in your application.  Business Objects SAP won't go back and update earlier versions of Crystal Reports (like CR8.5) for Vista support.
    CR XI R2 with later service packs is supported on Vista, however using direct API calls (e.g. PEOpenEngine) was retired after CR9.  It is unlikely that you'll be able to upgrade your application to CRXIR2 without a major rewrite to move to the Report Designer Component (RDC).
    Note that CR2008 doesn't ship with the RDC.  The recommended upgrade path is to move to the .NET platform.
    Sincerely,
    Dan Kelleher

  • Api for operations in Java2D

    Hello friends.
    I am using Java2D to realize a small application that worked with geometric figures.
    And I am looking for an api or something, which help me to realize the following operations: I calculate of angles between straight lines, to know if two straight lines are parallel or perpendicular, etc.
    Thank you.

    The standard workflow PL/SQL interface includes exception handling, this is the call to the wf_core.context API. This API has about 10 parameters you can use to include useful debugging information, and this will be put on the error stack and visible through the Workflow Monitor or the error notification if you registered a workflow to manage the function activity errors.
    Hi,
    is there or will there be a standard API for logging information in a function.
    When a function is executed I would like to store different information e. g. debugging information. So if a function fails, I can see how far the function executed. Of course, I can store such data on my own referencing the actid. But I don4t want to write code for a feature that is already implemented.
    Thanks!
    Regards,
    Christian

  • How can i pass array as argument in magento api method calling using sudzc API in iphone Native APP

    0down votefavorite
    I am implementing magento standard api method in native iphone app. I use webservice generated by sudzc. To call method I use:
    [service call:self action:@selector(callHandler:) sessionId:@" " resourcePath:@" " args:@""];
    When I used methods e.g. cart.info or product.info in which I have to pass one parameter; it gives valid response. But when I used method e.g. cart_product.add in which I have to pass an argument as value of array it gives error
    SQLSTATE[42000]: Syntax error or access violation:
        1064 You have an error in your SQL syntax;
        check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
    I have tested in SOAP UI also. There also it gives me same error. But same method works in PHP file. Even I tried by creating same soap request which I created using JavaScript but still it doesn't work.
    Can anyone help me to pass array as a parameter using sudzc api to call magento web services?

    There is an error in your SQL.

Maybe you are looking for

  • Help Installing Adobe Acrobat 9 Professional

    I had Adobe Acrobat 9 Professional on my computer prior to having to reload software due to virus problems.  I cannot find a place to download it.  I have the serial number and bought it legitimately.  Please advise. Thanks.

  • How to delete pictures in photo stream in iPhoto

    I have a whole bunch of pictures that I do not want to keep in photo stream in iPhoto on my macbook.  When I select the files I want to delete, it only gives me a quick "white" blank and does not respond.  Dragging the photos to the trash can does no

  • Conect 2010 MINI to older 30: cinema display'

    When using the MINI Display Port to HDMI & DVI adaptor, the MINI does not recognise the resolution of the 30" display.  Says it's about half of the true resolution. 1280 x 960 vs 2560 X 1600 How can I fix this?

  • Another Car Stereo Question.

    I know many of you guys still have problem connecting iphone to car stereo and there's no clear solution for this issue. But,i'm still posting the question about this. O.k. Here's thing. I've been connecting 2nd gen nano to Alpine Car stereo using Au

  • CUDA LAUNCH TIME OUT ERROR

    Hello I am facing problem while using GPU for large data computations. Basically, when I try to compute large amount of data using GPU, I get error message "Cuda error in file 'xxx.cu' in line 389 : the launch timed out and was terminated." Suspectin