[Solved] Problem with the debugger... Signal name: SIGSEGV - Signal meaning: Segmentation Fault



  • Greetings.

    I have little time on this forum and I am learning to use Qt and its various tools, particularly'm now learning to use the debugger.

    I am working with Qt SDK version 1.2.1 to download at http://qt.nokia.com/downloads (offline installer) on Windows 7.

    My first test was a simple program in C (only C language without Qt) and the debugger worked.

    Then try to debug the example shown in the debug section in QtCreator tutorial (textFinder). However I emerged the following error:

    "The bottom stopped Because It received a signal from the Operating System.

    Signal name: SIGSEGV
    Signal meaning: Segmentation fault "

    I do not understand is owed.

    Thanks in advance who can give me some help on this problem.

    Before posting my question, I did a search on the forum and even some other user have posted this same or similar problem, the answers or solutions I have not clarified anything. Of course, is possible that my search has missed some publication where the solution appears, if so I apologize in advance to anyone who has wasted his time because of me, and I would appreciate to give me the link the solution and tell me or explain how to remove or close this discussion / topic of the Forum (to avoid inportunar so someone else).

    note:
    I must say that the example program 'textFinder' I had done some time ago (guiding me through the tutorial where it appears) and working properly.


  • Moderators

    A SEGFAULT means that the operating system has stopped your application because you were accessing memory that does not belong to your application.

    This usually happens when accessing a pointer that was not initialized or was set to 0.



  • I understand. However, this is a small example program (textFinder) that is in Qt Creator manual, in the section "Creating a Qt widget based application".

    Someone told me it could be due to the antivirus program, but not if it's true. Thought I'd ask on this forum about that statement before uninstalling my antivirus program (which incidentally is the COMODO Internet Security)


  • Moderators

    [quote author="isaacenrique" date="1345411554"]
    I understand. However, this is a small example program (textFinder) that is in Qt Creator manual, in the section "Creating a Qt widget based application".

    Someone told me it could be due to the antivirus program, but not if it's true. Thought I'd ask on this forum about that statement before uninstalling my antivirus program (which incidentally is the COMODO Internet Security)[/quote]

    It is not necessary to uninstall your antivirus program. With a comm issue you might have to tune a bit the antivirus program for opening ports and stuff.
    The worst thing happened to me in the last 2 years was that Norton Internet decided that my programs are potential dangerous when searching files on my hard disk. It took me a moment to understand why the debugger did not find the executable it just had compiled and linked. After a couple of attempts I have finally steered my attention to the notification window popping up.

    However, as Tobias already stated:
    [quote author="Tobias Hunger" date="1345360031"]A SEGFAULT means that the operating system has stopped your application because you were accessing memory that does not belong to your application.

    This usually happens when accessing a pointer that was not initialized or was set to 0.[/quote]
    Did you change something to the example program? There most likely the location where something is wrong.
    Try a fresh copy of the unchanged example code first. This should not crash. Then start to do your changes.



  • Uninstall my antivirus program and replace it with another. Also redid the application 'textFinder' from scratch.

    Although I think the problem was due to the virus, may no longer overlook something in my first application deployment. However, the problem is now resolved and I was able to debug applications.

    Thank you all.



  • Please could someone explain how to label this thread / discussion as 'solved'.

    Thanks again


  • Moderators

    Go to your first post. On the right (below your name), click "edit", and then put the word "[Solved]" in your title. :)


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.