Results 1 to 3 of 3

Thread: generate core dump

  1. #1
    Join Date
    May 2010
    Qt products
    Unix/X11 Windows

    Default generate core dump


    I have a memory fault and segmentation fault in my program and i am clueless where the problem lies. How do i compile my qt src such that it will create core files which i can use to trace the problem? thanks.

  2. #2
    Join Date
    Jun 2010
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4
    Unix/X11 Windows

    Default Re: generate core dump


    I know that this wasn't the answer that you were looking for, but is it possible for you to use gdb as
    a debugging tool? If you open your application in gdb like so (from terminal)

    gdb MyApplication.

    and type;

    (gdb) run
    (gdb) bt

    You should be able to get a stack backtrace. Whenever I'm running into a nasty compilation error that's how I go about solving it. I suppose it's not really a QT specific solution, and it's platform specific, but it's possible on your setup I think that might be your easiest solution.

    If your problem has to do with the usage of gdb, could you be a little more specific in your post? I'm not sure how you're trying to run your application, like if you're using precompiled binaries, what platform you're using, what version of QT you're using, and other helpful info.
    Last edited by SneakyPeterson; 11th June 2010 at 10:14.

  3. #3
    Join Date
    Jan 2006
    Warsaw, Poland
    Thanked 5,012 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits

    Default Re: generate core dump

    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.

Similar Threads

  1. core dump qdevelop
    By jaxrpc in forum Newbie
    Replies: 0
    Last Post: 9th June 2010, 04:16
  2. QGraphicsScene core dump?
    By cookie1909 in forum Newbie
    Replies: 2
    Last Post: 25th April 2009, 07:06
  3. dump table and db
    By subratatamal in forum Qt Programming
    Replies: 1
    Last Post: 31st December 2008, 16:38
  4. core dump
    By DadaLee in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 16th September 2008, 10:05
  5. Replies: 5
    Last Post: 16th March 2007, 08:18


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.