×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    14

    Segfault in unknown location

    Hi,

    I'm trying to locate a bug where my application segfaults in an unknown location.

    The call stack is useless as it only contains 2 lines that lead to disassembler instructions.

    The crash occurs after the slot-method which was called have been run.

    How can I make the call stack make sense and solve this problem?

    Best regards

  2. #2
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,988

    Re: Segfault in unknown location

    & what happens if you simply do not call the method(or try leaving the slot definition as blank & then call it), at least you will come to know if seg. fault is due to something wrong in the method.

  3. #3
    Super Contributor
    Join Date
    Mar 2008
    Posts
    1,481

    Re: Segfault in unknown location

    Can you try to put some log information around the suspected place like this and run.
    qDebug() << " Calling my slot" ;
    By this way you can see what was the last statement that was run and that helps you to check the code.

  4. #4
    Registered User
    Join Date
    Feb 2011
    Posts
    14

    Re: Segfault in unknown location

    Quote Originally Posted by mahbub_s60 View Post
    Can you try to put some log information around the suspected place like this and run.
    qDebug() << " Calling my slot" ;
    By this way you can see what was the last statement that was run and that helps you to check the code.
    I solved the problem using this approach. The actual problem was Qt doing it's own memory management, and I was too stupid to see that. Thank you for your answers!

    Best regards

Similar Threads

  1. Segfault when deploying on N900 from QtCreator 2.0.1
    By Grinchman in forum [Archived] Qt SDKs and Tools
    Replies: 2
    Last Post: 2010-11-16, 08:01
  2. error at unknown location
    By coonal in forum Mobile Java General
    Replies: 1
    Last Post: 2009-04-04, 15:31
  3. Error at unknown location
    By coonal in forum Symbian
    Replies: 1
    Last Post: 2009-04-04, 13:20
  4. undefined symbol, at unknown location
    By doesitmatter in forum Symbian
    Replies: 5
    Last Post: 2008-06-04, 19:43
  5. Segfault on DiscoveryAgent.searchServices()
    By Timmmm3d in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2007-11-29, 22:03

Posting Permissions

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