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

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.

  • 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 :).

  • Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.

    Hi,
    I am trying to run a long running process, by redirecting to the LongRunningView using the code below. But its throwing exception Can anyone please help
    string strCurrentUrl = SPUtility.OriginalServerRelativeRequestPath;
    strCurrentUrl = strCurrentUrl + "?ListName=" + strListName;
    ////Initiates the Excel Import
    if (ObjdtExcel != null && ObjdtExcel.Rows.Count > 0)
    ExcelImportJob objJob = new ExcelImportJob(strTabName, ObjdtExcel, strFileExt, SPContext.Current.Site.ID, SPContext.Current.Web.ID, strWorkflow, strListName);
    objJob.Title = "Excel Import Job";
    //// Redirect the user to another page when finished.
    objJob.RedirectWhenFinished = false;
    //// Specify if the user can cancel this.
    objJob.UserCanCancel = false;
    //// Specify the refresh rate of the job, here, the page polls every 5 seconds for completion.
    objJob.MillisecondsToWaitForFinish = 15000;
    //// Finally, start the job on a web.
    objJob.Start(SPContext.Current.Web);
    string strUrl = string.Format("{0}?JobId={1}&Source={2}", PROGRESS_PAGE_URL, objJob.JobId, strCurrentUrl);
    SPUtility.Redirect(strUrl, SPRedirectFlags.Default, HttpContext.Current);
    The exception being "Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack."
    Arjun Menon U.K

    Hi Arjun,
    Any update?
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • Getting the call stack up to a certain location.

    Dear friends,
    I am searching for a function or method that can give me
    the call stack(like in debug mode).
    If you know of a function that provides this information
    please let me know, its very urgent.
    Thanks in advance,
    Eitan Illuz.

    Hello Eli
    You may have a look at thread:
    [Get the name of a function module within a function module|Get the name of a function module within a function module;
    Sample coding to retrieve the calling function module:
    data:
      lt_callstack TYPE abap_callstack.
    CALL FUNCTION 'SYSTEM_CALLSTACK'
      IMPORTING
        callstack = lt_callstack.
    READ TABLE lt_callstack
      WITH KEY blocktype = 'FUNCTION'
        blockname = 'CRM_ORDER_COPY_SINGLE_OW'
      TRANSPORTING NO FIELDS.
    CHECK sy-subrc NE 0.
    Reference: [http://martins.de/call_stack_lesen.html]
    Regards
      Uwe

  • Accessing objects in the Call Stack

    Hi all,
    is there any way to access in your ABAP program, objects in the previous levels of the call stack (the way we can display them in the debugger using the (program)object syntax).
    Thanks,
    Z

    I got the solution.
    I tried out the (program)object syntax with different kinds of statements.
    The one with field-symbols works:
      ASSIGN ('(ZTESTPROGRAM)LS_OBJ') TO <fs>.
    Where ZTESTPROGRAM contains the object LS_OBJ

  • How to print the call stack of a thread?

    I would like to print out the call stack of a thread, something that looks like the output of pstack.
    From within the thread itself, I suppose I can fork1() to duplicate the thread and fork another process to run pstack on the duplicated thread.
    I would much rather use some api to print out the stack directly. Any pointer would be appreciated.

    Hi,
    The code below will do what you want.
    All that needs to be done is to call csprintstack() from within
    your application. Remember to link in the dynamic linking library,
    libdl.so, as dynamic library functions are used.
    Cheers.
    Jon Haslam<br>
    Developer Technical Support<br>
    Sun Microsystems<br>
    <pre>
    #include <ucontext.h>
    #include <sys/frame.h>
    #include <dlfcn.h>
    #include <setjmp.h>
    #include <sys/procfs_isa.h>
    #include <stdio.h>
    #if defined(sparc) || defined(__sparc)
    #define FRAME_PTR_REGISTER REG_SP
    #endif
    #if defined(i386) || defined(__i386)
    #define FRAME_PTR_REGISTER EBP
    #endif
    struct frame *
    csgetframeptr()
    ucontext_t u;
    (void) getcontext(&u);
    return (((struct frame *)
    u.uc_mcontext.gregs[FRAME_PTR_REGISTER])->fr_savfp);
    void
    cswalkstack(struct frame * fp, int (*operate_func)(void *, void *),
    void * usrarg)
    void * savpc;
    struct frame * savfp;
    while (fp &&
    (savpc = (void*)fp->fr_savpc) &&
    (*operate_func)(savpc, usrarg) == 0) {
    fp = fp->fr_savfp;
    static int
    csprintaddress(void pc, void usrarg)
    Dl_info info;
    char * func;
    char * lib;
    if(dladdr(pc, & info) == 0) {
    func = "??";
    lib = "??";
    else {
    lib = (char *) info.dli_fname;
    func = (char *) info.dli_sname;
    fprintf((FILE *) usrarg,
    "%s:%s+0x%x\n",
    lib,
    func,
    (unsigned int)pc - (unsigned int)info.dli_saddr);
    return(0);
    void
    csprintstack(FILE * f)
    cswalkstack(csgetframeptr(), csprintaddress, (void *) f);
    </pre>

  • Moving a method down the call stack

    This is partially a blazeds question as well, which I have already inquired about there.
    My situation is that I have a consumer.subscribe followed by the rpc, followed by the consumer expected to handle the results of the rpc.  What seems to be happening is a race condition between the subscribe and the rpc call - with the results being returned back before some of teh consumers have finished subscribing.  This is all being handled in one method.  For the most part, it needs to be encapsulated like this because we're using the parsley IoC container.  By creating a new context on a button click, it automatically instantiates and initalizes the consumers.  A retrievedataevent is then fired straight away.
    Is there anyway around this?  I noticed that if i create a Timer and set it to 1 millisecond, it somehow fixes itself.  Does timer somehow drop the current method down the callstack?  Or deprioritize it?
    Thanks in advance.  I'm banging my head against the wall here

    This is the way that Aperture works by design - you just need to get comfortable with album picks, every album can have a different album pick from the same stack, it will be the image that shows up at when the stack is closed.
    These may help
    [Aperture Organization|http://photo.rwboyer.com/2008/07/apple-aperture-21-organization>
    [Aperture Stacks and Albums|http://photo.rwboyer.com/2008/09/aperture-2-organization-tip-more-on-sta cks-and-albums>
    [Aperture Album picks and image versions|http://photo.rwboyer.com/2008/12/aperture-2-quick-tip-album-picks-and- image-versions>
    Maybe even this that explains how Aperture stacks work vs. Lightroom stacks
    [Aperture vs Lightroom stacks|http://photo.rwboyer.com/2008/10/aperture2-vs-lightroom2-stacks>
    RB

  • Retreiving Parameters From The Call Stack

    I'm trying to solve the following:
    I have a procedure:
    procedure widget1(parm1 in varchar2)
    which calls:
    procedure widget2;
    Is there any way that widget 2 can look at a call stack to find out the value of parm1 that was passed to widget 2? If so, how?
    Effectively, widget1 is a procedure invoked by oracle application server, and widget2 is a generic error handler that should log the function that was called and the values of the paramters that were provided. I can get the function off the FORMAT_CALL_STACK routine, but I don't know how/where to find the parameter values.

    Hi,
    You can use SY_CPROG -  caller in external procedures, bye using this u can get the progam name.
    Regards,
    kavitha.k

  • How to get the report name from the call stack

    Hi,
    I have a question about how to get the caller information dynamically in a function module.
    For example.
    ZGET_CALLER_INFORAMTION,
    get the caller name -- how ??
    Thanks in advance
    Best Regards,
    Johnney

    Hi,
    You can use SY_CPROG -  caller in external procedures, bye using this u can get the progam name.
    Regards,
    kavitha.k

  • The call stack contains only external code

    Suddenly my project has gone into a non-working state and it seems impossible to debug it. The last time this happened was related to a variable declared in a module that referenced a file location. This time I have no idea what is going on. I took a screenshot
    of the error, in hopes someone can help. 
    I'm using Visual Basic Express 2012
    Programming is mostly just a hobby for me :)

    "Are you using default form instances?"
    I have no idea what that means.
    Programming is mostly just a hobby for me :)

  • Call stack

    What is the best way to see call stack in JSP/servlet application?
    How can I see in which order classes and methods are called when I for example clik the button on web page?
    "The call stack is a list of classes and methods that have been called or
    executed in java application. The most current method is at
    the top of the stack. The element second from the top issued a call to
    execute the top-most method, and so on and so forth."

    I use Struts and JSTL.
    I would like to see how it works.
    All call stack from beginning (http request) to the end (jsp output).
    So, where to put this System.out?
    At the end in my jsp?
    In front/dispatch servlet?
    Where?
    How many thread was created if I have tags in jsp?
    How to output all of them?
    Again, I have ONE jsp page with tags and I would like to see call stack i.e. which classes and methods was called when I call this jsp - http request?

  • TelemetryClient.TrackException Does Not Include Method Name Or Call Stack (Windows Store App)

    We are attempting to use Application Insights (v0.12.0-build17386) for our Windows Store App.  When we use TelemetryClient.TrackException, no details appear in the azure portal.  The Failed Method is "Could Not Parse" and the Call Stack
    is empty. If we click on the "..." it gives more details but still no method name or call stack information to help us determine where the exception was thrown.  Is this by design, not implemented, or did we miss something obvious?  The
    code is very simple:
    public static void LogException(Exception exception)
    TelemetryClient telemetryClient = new TelemetryClient();
    telemetryClient.TrackException(exception);

    This is a known limitation of this version. It is in the backlog to fix. Note though that 0.13 is out already and fix should be included in the next version (0.14)
    Anastasia

  • To find the Calling Program of an sap script

    Hi All,
    Can any body please let me know how to find the calling program ( main program ) of an SAP Script Form.
    Thanks and Regards,
    Rupesh

    Hi,
    if it's possible to create the form online (no background job), this works:
    From SE71 (Form painter), use menu Utilities-->activate debugger.
    Then start the program creating the SAPscript form.
    As soon as form processing starts, you are inside the SAPscript debugger. At this point, enter /h in command line to activate ABAP debugger. Continue to get into abap debugging. In ABAP debugger, use button 'calls' to see the call stack. The program at the bottom is the starting point, this or one of the more upwards program triggers the form.
    Hope this helps.
    regards,
    C.

  • Reading from ABAP memory, not available in call stack

    Hi,
    I need to read a table from ABAP memory. It is not available from the call stack, so I can’t use the standard ‘assign’ approach. The internal table is listed under System areas -> Area ITABS-HEADS with the name \FUNCTION-POOL=MLSP\DATA=IY_ESLL[] 
    Is it even possible to read this table? Seems as though I have to access function-pool MLSP to find it.
    Regards,
    Damian

    Hi,
    The main program of this function pool is SAPLMLSP. If you in any of theses includes can add a small form that returns the content of internal table ( IY_ESLL[]  ) that should solve your problem.
    In the program that need the data, write something like :
    PERFORM Z_GET_MLSP_DATA(SAPLMLSP) using GT_ESLL.
    This form can be created within any sub-include within the SAPLMLSP.
    However, with a quick look at SAPLMLSP does not reveal any user modifiable includes, but I didn't check very carefully.
    If you are on ECC 6.0, there are plenty of enhancement spots, which could be used for this purpose.

Maybe you are looking for

  • The software required for comunicating with ipod is not installed correctly

    Hey I have recently had to reinstall windows xp on my laptop as the moder board crushed while the installation was done by a professional, since then everytime i plug my 30gb fifth generation ipod to synch with my Itunes library the following message

  • What Happened to Podcast Publisher in Mountain Lion?

    I can no longer find my Podcast Publisher in Mountain Lion, Like I am real upset about that. I paid 19.99 to LOSE an app I use? It is even listed as available on the site EXCEPT when you try to go to the description. Is it incorporated somewhere else

  • Aute Responder for Texts (instead of texting and driving)

    Am I the only one who thinks if Apple installed an Auto Reply mode for texts which would automatically reply to incoming text messages with "I'm driving, I'll respond to you in a bit" that less people would text and drive? There is an Airplane mode. 

  • How to add Headers/Images to flex app?

         Hi I have a flex application that I am currently trying to skin and wish to add a logo image into the application but the image doesnt show up when i load it

  • How do you make itunes not play wav files?

    I know how to make it play wav files but how do I remove it from the default player list? I want them to all play in Quicktime. I have done the right click, holt alt and press Always Open With... and also done the right click and specify it to open i