Results 1 to 3 of 3

Thread: Program crashing when debbugging new Qt Quick 2 project

  1. #1
    Join Date
    Feb 2010
    Location
    Brazil
    Posts
    23
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Program crashing when debbugging new Qt Quick 2 project

    Hello,

    When I create a new Qt Quick 2 Application (Built-in elements) in Qt Creator 2.7.2 and try to run it in debug mode, it crashes and opens a popup giving this information:

    "The inferior stopped because it received a signal from the Operating System."
    "Signal name: SIGSEGV"
    "Signal meaning: Segmentation Fault"

    Qt Creator then shows a disassembler screen pointing to some Assembly instruction I don't understand:

    Function: ntdll!RtlpWaitForCriticalSection
    0x7c919ade <+0x0047> xchg %eax,%edi
    0x7c919adf <+0x0048> jl 0x7c919a6c <ntdll!DbgPrintReturnControlC+234>
    0x7c919ae1 <+0x004a> clc
    0x7c919ae2 <+0x004b> mov 0x10(%esi),%eax
    0x7c919ae5 <+0x004e> cmp %ebx,%eax
    0x7c919ae7 <+0x0050> mov %eax,-0x4(%ebp)
    0x7c919aea <+0x0053> je 0x7c919b8e <ntdll!RtlpUnWaitCriticalSection+47>
    0x7c919af0 <+0x0059> mov (%esi),%eax
    0x7c919af2 <+0x005b> incl 0x10(%eax)
    0x7c919af5 <+0x005e> mov -0x4(%ebp),%eax
    0x7c919af8 <+0x0061> and $0x1,%eax
    0x7c919afb <+0x0064> mov %eax,-0x18(%ebp)
    0x7c919afe <+0x0067> mov (%esi),%eax
    0x7c919b00 <+0x0069> incl 0x14(%eax)
    0x7c919b03 <+0x006c> testb $0x1,0x7ffe02f0
    0x7c919b0a <+0x0073> jne 0x7c943826 <ntdll!RtlDeleteElementGenericTableAvl+47245>
    0x7c919b10 <+0x0079> cmp %ebx,-0x18(%ebp)
    0x7c919b13 <+0x007c> push %edi
    0x7c919b14 <+0x007d> push %ebx
    0x7c919b15 <+0x007e> jne 0x7c932ee9 <ntdll!RtlDeregisterWaitEx+729>
    0x7c919b1b <+0x0084> pushl -0x4(%ebp)
    0x7c919b1e <+0x0087> call 0x7c90df4e <ntdll!ZwWaitForSingleObject>
    0x7c919b23 <+0x008c> cmp $0x102,%eax
    0x7c919b28 <+0x0091> je 0x7c9438b1 <ntdll!RtlDeleteElementGenericTableAvl+47384>
    0x7c919b2e <+0x0097> cmp %ebx,%eax
    0x7c919b30 <+0x0099> jl 0x7c94396e <ntdll!RtlDeleteElementGenericTableAvl+47573>
    0x7c919b36 <+0x009f> cmp %bl,0xb(%ebp)
    0x7c919b39 <+0x00a2> pop %edi
    0x7c919b3a <+0x00a3> je 0x7c919b54 <ntdll!RtlpWaitForCriticalSection+189>
    0x7c919b3c <+0x00a5> mov %fs:0x18,%eax
    0x7c919b42 <+0x00ab> mov 0x24(%eax),%eax
    0x7c919b45 <+0x00ae> mov %eax,0xc(%esi)
    0x7c919b48 <+0x00b1> mov %fs:0x18,%eax
    0x7c919b4e <+0x00b7> mov %ebx,0xf84(%eax)
    0x7c919b54 <+0x00bd> pop %esi
    0x7c919b55 <+0x00be> pop %ebx


    I have not changed the code, everything is as it was when the project was created.
    What could be the problem?

  2. #2
    Join Date
    Jul 2013
    Posts
    15
    Thanks
    1
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Program crashing when debbugging new Qt Quick 2 project

    Imagine that, the debugger has bugs ... At this moment I cannot find the post that answers this fully including a link to the patch commit.

    Do some searching, it'll show up.

    Run it outside the debugger.

    -Enjoy
    fh : )_~

  3. #3
    Join Date
    Feb 2010
    Location
    Brazil
    Posts
    23
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Program crashing when debbugging new Qt Quick 2 project

    Wow, really? I thought I did something wrong with the installation or something. How can I analyze my code with breakpoints if the debugger won't work, though?

Similar Threads

  1. Qt Creator Xcode Project Crashing Xcode
    By cpsmusic in forum Qt Tools
    Replies: 0
    Last Post: 31st July 2012, 14:07
  2. Replies: 0
    Last Post: 10th May 2012, 18:50
  3. Replies: 3
    Last Post: 27th October 2011, 12:29
  4. Crashing without debug mode- No crashing with gdb debugger
    By sujan.dasmahapatra in forum Qt Programming
    Replies: 1
    Last Post: 7th February 2011, 11:27
  5. program crashing randomly code -1073741819
    By feraudyh in forum General Programming
    Replies: 6
    Last Post: 21st September 2010, 17:07

Tags for this Thread

Bookmarks

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.