The proper solution is to set the target to maemo, the build to debug and press the debug button and get a nice stack trace which tells you where's that dangling pointer you missed I'm pretty sure you're not using anything that really requires sudo - it's just a coincidence that on your machine with sudo it fails in a way that makes it survive. Applications in general (regardless if they are Qt or not) do not need to put into sudo unless they really deal with system stuff.