Please nominate your Qt Champions for 2021!

QLocalePrivate::longLongToString giving segmentation on Qt 4.8.1

  • I am trying to run qt examples from Qt 4.8.1 for mips.

    compilation no problem. But i am getting segmentaion when running any example.

    please help if any one has any idea.


  • Lifetime Qt Champion


    Can you try with the latest 4.8 ?

  • Actually, i cant, because, before compiling for MIPS, i need to apply some patches to qt sources which are not under my control.

    I tried adding some prints in the function to find out the problem, but the prints are coming continuously causing segmentation from instead of

    Is there any other way i can directly find out why and where it is failing.

    Thanks for any help.


  • Lifetime Qt Champion

    Do you mean the patches are out of your control or the sources ?

  • we got the qt with some board specific patches applied , so i cannot take some other version of Qt and just cross compile.

    I hope i am clear, please let me know if its in sufficient.

  • Lifetime Qt Champion

    It doesn't mean that they can't be applied also to a later version of Qt.

    Anyway, what is the exact error you are getting ?

  • The error is:
    Program received signal SIGSEGV, Segmentation fault.
    0x76390efc in ?? () from /usr/local/lib/
    (gdb) bt
    #0 0x76390efc in ?? () from /usr/local/lib/
    #1 0x763910ac in ?? () from /usr/local/lib/
    #2 0x763867c8 in QLocalePrivate::longLongToString(QChar, QChar, QChar, QChar, 4
    #3 0x76386aec in QLocalePrivate::longLongToString(long long, int, int, int, un4
    #4 0x763be328 in QString::arg(long long, int, int, QChar const&) const ()
    from /usr/local/lib/

  • Lifetime Qt Champion

    Also with a console application ?

  • not yet, i will give it a try.
    but i have a doubt , while compiling Qt i got a warning

    Project WARNING: Your mkspec is including 'common/g++.conf', but the mkspecs have been refactored
    To fix this include 'common/gcc-base-.conf and 'common/g++-.conf' instead

    I guess some thing is missing in the file name the correct name would be g++-<PLATFORM>.conf
    ( in the make file the value of PLATFORM is not extracted properly i guess )
    can i replace g++.conf with g++-unixconf and gcc-base-unix.conf?

    any idea , the segmentation coming because of this ?

  • Lifetime Qt Champion

    I don't know, but fixing it is a good idea

Log in to reply