×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    May 2006
    Location
    Germany
    Posts
    598

    Exclamation Leave causes KERN-EXEC 27 on target device

    Hi,

    I'm porting a Symbian C++ application to S60 3rd edition and it works just fine on the emulator. Yet I'm having puzzling problems while running on Nokia 3250 or N91.

    I'm getting KERN-EXEC 27 whenever it leaves. If nothing is on the clean-up stack between the leave and the TRAP where the execution should resume then it just panics KERN-EXEC 27. If something was on the clean-up stack, destructors get called as one would expects then it panics KERN-EXEC 27. In other words it never resumes the execution from the latest TRAP in the call-stack instead it just panics with KERN-EXEC 27.

    So my application is broken since as Symbian application do I don't want to terminate my program upon the first leave but rather trap and handle the error.

    Now KERN-EXEC 27 is described as : This panic is raised when an executive call is made with an invalid call number. which does not tell me much.

    I'm using the GCCE compiler. I'll keep trying to find the cause of that problem. Do you think it could help to use RVCT compiler and ARMV5?

    Cheers,
    S.

  2. #2
    Registered User
    Join Date
    May 2006
    Location
    Germany
    Posts
    598

    Re: Leave causes KERN-EXEC 27 on target device

    Even leaving from the CMyAppDocument::CreateAppUiL() using User::Leave(KErrGeneral) causes the KERN-EXEC 27?!? So it does not seem to be related to the state of the clean-up stack.

  3. #3
    Registered User
    Join Date
    May 2006
    Location
    Germany
    Posts
    598

    Re: Leave causes KERN-EXEC 27 on target device

    Now I just noticed that I'm getting the following warning from arm-none-symbianelf-ld when building the EXE:
    "section .data lma 0x400000 overlaps previous sections"
    I wonder what that is?

  4. #4
    Registered User
    Join Date
    May 2006
    Location
    Germany
    Posts
    598

    Re: Leave causes KERN-EXEC 27 on target device

    This might be the solution I'm looking for .

  5. #5
    Registered User
    Join Date
    May 2006
    Location
    Germany
    Posts
    598

    Re: Leave causes KERN-EXEC 27 on target device

    That's right it fixes my KERN-EXEC 27 problem.

Similar Threads

  1. WLAN Connection from Emulator
    By capri07 in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2007-12-13, 05:13
  2. [newbie here] Link error
    By xitpu in forum Symbian
    Replies: 3
    Last Post: 2007-01-24, 16:53
  3. Bluetooth Security: What exactly is an untrusted device?
    By rahulmcs in forum Bluetooth Technology
    Replies: 1
    Last Post: 2005-12-02, 06:26
  4. why kern exec 3 on CopyFile?
    By flicker82 in forum Symbian
    Replies: 2
    Last Post: 2005-05-16, 02:25
  5. SIP sample 'Warship' working in a target device?
    By thakki in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2004-09-30, 13:36

Posting Permissions

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