×

Discussion Board

Results 1 to 15 of 19

Hybrid View

  1. #1
    Registered User
    Join Date
    Sep 2008
    Location
    Vancouver, Canada
    Posts
    588

    signal exception 0 received: a data abort exception has occurred.....how to resolve?

    Hi all,

    I am doing simple file operations using RFile and RFsSession. Everything works fine on emulator but when i tried to do the same on device, it failed.

    I tried with device debugging and found out that when control comes to RFile declaration, data abort exception occurs and control steps into file s32file.inl pointing to the following:

    Code:
    /** Detaches the file from this stream buffer.
    
    The intermediate buffer's read and write marks are not changed, and the stream 
    positions are not changed. This means that the contents of the file should 
    not change while it is detached. 
    
    @see Attach()
    @see Reattach() */
    	{iFile=RFile();}  <---- control gets stuck in here and when try to stop the debugger given kern-exec 3
    inline void RFileBuf::Reattach(RFile& aFile)
    Don't know what is wrong with this because it happens on a simple line which says:

    Code:
    RFile file;
    I am first creating a file and closing it. Then i repeatedly write data to it and close again. Then i open it again and there it happens when i declare RFile object.

    Any idea anyone?

    Thanks

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,752

    Re: signal exception 0 received: a data abort exception has occurred.....how to resol

    When accessing a member variable (iFile) fails with KERN-EXEC 3, it often means that the method is invoked on a non-existing object (like a NULL pointer, or some totally random thing). Non-virtual methods are always present in the memory, the problems start when they try accessing something from the object.
    "RFile file;" creates a local variable, it does not need the object to exist.
    Note that "iFile=RFile();" will be a strange line even after fixing the problem. Assuming that iFile is declared as "RFile iFile;" in the header file, it does not need any further instantiation.

  3. #3
    Registered User
    Join Date
    Sep 2008
    Location
    Vancouver, Canada
    Posts
    588

    Re: signal exception 0 received: a data abort exception has occurred.....how to resol

    Ok but what do you suggest i should try doing to fix this. This is happening everytime. Is it a good idea to make RFile an instance of the class rather than local variable?

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

    Re: signal exception 0 received: a data abort exception has occurred.....how to resol

    the crash likely comes from something else, so do try checking the line again.

    Also do check the actual panic code: http://www.developer.nokia.com/Commu...ded_panic_code

  5. #5
    Registered User
    Join Date
    Sep 2008
    Location
    Vancouver, Canada
    Posts
    588

    Re: signal exception 0 received: a data abort exception has occurred.....how to resol

    I hope so because this doesn't seem to make any sense. I already tried that and extended panic code as i told in thread is KERN-EXEC 3 but how do i find the exact place where the panic is coming from except device debugging?

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

    Re: signal exception 0 received: a data abort exception has occurred.....how to resol

    in general, you would not get Kern-Exec 3 with R-Class objects, unless something not-so-usual goes wrong in there. One reason would be stack-overrun, which you could fix by increasing the default stack.

    Anyway, I would strongly suggest that you do re-check which line of code is giving this particular panic.

Similar Threads

  1. Replies: 1
    Last Post: 2011-12-22, 13:57
  2. Suspended: Signal 'Exception 0' received. Description: A data abort exception occured
    By amit04.kumar in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2010-10-12, 12:57
  3. Replies: 6
    Last Post: 2010-06-16, 09:21
  4. Replies: 4
    Last Post: 2009-12-11, 09:43

Posting Permissions

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