[Development] split() and replace() methods SEGFAULT

Zoltán Balogh zoltan.balogh at canonical.com
Tue May 27 07:49:50 CEST 2014


Hi,

During the Qt5.3 migration work we have been biten by a strange bug: 
https://bugreports.qt-project.org/browse/QTBUG-39255

The issue effect armhf platforms and confirmed on Android too.

example1:
import QtQuick 2.0
Item {Component.onCompleted: "bla".replace(/\w/g, function(a){ return 
a.toUpperCase() })}

example2:
Button {
function split_text() { var text_to_split = 'May the 4th be with U'; 
return text_to_split.split(/\s/g); }
onClicked:{ label.text = split_text()[0]; }
}

I suspect that it is a bug in the QV4.

Zoltan



More information about the Development mailing list