I confirm you are right, i tested with a small program the first snippet in the 32bit Kubuntu and i haven't got the SegFault, i'm trying to imagine what should be the trouble, maybe in the multithreading i made.