×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Aug 2010
    Posts
    347

    KERN EXEC 0 Panic: Clueless

    Hello,

    I am trying to find the root cause of a KERN EXEC 0 panic in my app at the time of normal exit, i.e., after the Exit option is selected from the menu. when run the code in debug mode, I cannot see anything erroneous in the code.

    I have a class SIPClient which has two private members:

    class SIPClient
    {
    private:
    CSIP* pSIP;
    CSIPConnection* pSIPConnection;
    }

    In the ConsturctL() method of the class, I allocate memory for both these private members.

    Subsequently, both the pointers are deleted in the destructor.

    And upon selecting the Exit option, I get the Error prompt indicating a call to User::Panic() and KERN EXEC 0 error.

    In the debug run, I see that the last instruction selected in the application code on the call stack is after the following statement in the destructor code:

    if (pSIPConnection)
    {
    delete pSIPConnection;
    }
    And the arrow marker points to the closing brace in the if statement, which I have highlighted.

    I checked all the address on the stack at that point and all of them are valid addresses.
    I checked the documentation and the reason mentioned for the KERN EXEC 0 error does not apply in my case, as far as I can see it.
    I am not sure what is causing this KERN EXEC 0 error.

    Any suggestions would be appreciated.

    TIA
    Vin

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: KERN EXEC 0 Panic: Clueless

    KERN EXEC 0 would indicate a bad handle, thus check your R-Class usage.

  3. #3
    Regular Contributor
    Join Date
    Aug 2010
    Posts
    347

    Re: KERN EXEC 0 Panic: Clueless

    Quote Originally Posted by symbianyucca View Post
    KERN EXEC 0 would indicate a bad handle, thus check your R-Class usage.
    I have scanned the entire code. Basically this is what I do to create a CSIP object and a CSIPConnection object:
    void SIPClient::ConstructL()
    {
    TUint32 DefaultIAPID = DefaultIAPIDL();
    pSIP = CSIP::NewL(rUid, rIF);
    pSIPConnection = CSIPConnection::NewL(*pSIP, DefaultIAPID, rConnectionIF);
    }

    And then I delete the objects in my destructor:
    SIPClient::~SIPClient()
    {
    delete pSIP;
    delete pSIPConnection;
    }

    Strangely, there is no error for deletion of PSIP. But the KERN EXEC 0 error occurs for the deletion of pSIPConnection object.
    I also get the following warning at the console, just before the panic:

    102.720 *PlatSec* WARNING - Capability check would have failed - A Message (function number=0x0000002e) from Thread SeamlessMobilityClient[efbd5bff]0001::SeamlessMobilityClient, sent to Server SipServer, was checked by Thread SipServer.EXE[101f5d36]0001::SipServer and was found to be missing the capabilities: NetworkServices . Additional diagnostic message: Checked by CPolicyServer::RunL

    Any suggestions would be appreciated.

    TIA
    Vin

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: KERN EXEC 0 Panic: Clueless

    You could maybe try:

    Code:
    SIPClient::~SIPClient()
    {
    delete pSIPConnection;
    delete pSIP;
    
    }
    just a wild guess, the pSip there is defined as a handle to the SIP server , so if you delete it before deleting the thing that uses it, I having an assumption that it could be the bad handle..

  5. #5
    Regular Contributor
    Join Date
    Aug 2010
    Posts
    347

    Re: KERN EXEC 0 Panic: Clueless

    Quote Originally Posted by symbianyucca View Post
    You could maybe try:

    Code:
    SIPClient::~SIPClient()
    {
    delete pSIPConnection;
    delete pSIP;
    
    }
    just a wild guess, the pSip there is defined as a handle to the SIP server , so if you delete it before deleting the thing that uses it, I having an assumption that it could be the bad handle..
    Thanks for that. Yes, I changed the order of deletion and that resolved the issue.
    Vin

  6. #6
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: KERN EXEC 0 Panic: Clueless

    I guess saturdays are good for wild guesses then, good to hear that it helped.

Similar Threads

  1. KERN EXEC 3 PANIC
    By s.baalajee in forum Symbian
    Replies: 5
    Last Post: 2010-04-12, 14:47
  2. kern exec 3 panic
    By ganeshs87 in forum Symbian
    Replies: 7
    Last Post: 2010-03-11, 07:43
  3. getting panic KERN - EXEC 3
    By rohitnegi in forum Symbian User Interface
    Replies: 2
    Last Post: 2010-02-22, 11:01
  4. KERN-EXEC Panic
    By nair.shanker in forum Symbian
    Replies: 6
    Last Post: 2008-10-15, 11:58
  5. Panic KERN-EXEC 3
    By Rajmittal in forum Bluetooth Technology
    Replies: 2
    Last Post: 2008-07-28, 13:12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×