Results 1 to 3 of 3

Thread: SegFault when using QString

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2016
    Posts
    1
    Qt products
    Qt5
    Platforms
    MacOS X Windows

    Default SegFault when using QString

    Hello,

    I'm receiving a SEGFAULT error in a few places in the QString library. This particular instance in using the .toStdString() call, but I also receive a segfault when using .split(QRegExp()). I've attached a screenshot of the debug output. I have this code working in a GUI application, and I'm in the process of creating a console program to perform the same function. The GUI app works perfectly, but for some reason the console throws a segfault error every time, at roughly the same time in the program. If I run in release mode, the executions roughly triple before the error occurs. Is there something I am doing wrong in the console application that would cause this problem?

    Because this error occurs in the QString code and not my own, I'm not sure if this is the proper venue for this question. If it should be moved to a bug report please let me know.

    Thanks!

    toStdStringError.jpg
    Attached Images Attached Images

Similar Threads

  1. Replies: 2
    Last Post: 11th August 2011, 15:42
  2. function returns QString, usage generates segfault
    By space_otter in forum General Programming
    Replies: 5
    Last Post: 8th March 2010, 15:54
  3. char* to QString. Segfault after delete []
    By TheRonin in forum Qt Programming
    Replies: 9
    Last Post: 19th June 2008, 13:20
  4. Replies: 4
    Last Post: 31st January 2008, 20:44
  5. Segfault
    By Dumbledore in forum Qt Programming
    Replies: 3
    Last Post: 12th November 2007, 07:31

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.