Important: Please read the Qt Code of Conduct -

Crash at QString13fromLocal8Bit

  • Hi ,

    i am porting my application from 3.0 to qt 4.8. on window porting to qt 4.8 works fine but on linux it shows segmentation fault at the start of the application [0x2b56a0fdaa49]
    prod/release/linux64/ [0x2b56a109cf2c]
    prod/release/linux64/ [0x2b56a1684fad]
    release/linux64/ [0x2b56a1685b72]
    16006D48 /usr/lib64/ [0x3916006d48]
    16811FFB /usr/lib64/ [0x3916811ffb]
    prod/release/linux64/ [0x2b56a10b2f08]
    release/linux64/ [0x2b56a110a04e]
    prod/release/linux64/ [0x2b56a10bb9af]
    prod/release/linux64/ [0x2b56a16069ff]
    prod/release/linux64/ [0x2b56a160d990]

    Please help me to solve this issue as i am stuck with it.


  • Lifetime Qt Champion


    Can you show the code that crashes ? And the content of the parameter to give to it ?

  • Hi,

    i have checked the initial argument to QApplication constructor and it shows no of argument 1 and argument is exe name that is going to launch.


  • Lifetime Qt Champion

    What does this string contain ? I mean literally.

    What locale are you using ?

  • solved , i have created the memory on heap for argument list.

    Thanks for yours support


  • Lifetime Qt Champion

    You're welcome !

    Glad you found out

    Since you have it working now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)

Log in to reply