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

Hausmann Simon Simon.Hausmann at digia.com
Tue May 27 07:59:19 CEST 2014


You're right, Gatis ran into the same issue. Seems arm jit specific, he made a nice js only test case. (see 39289)


Simon

  Opprinnelig melding
Fra: Zoltán Balogh
Sendt: 07:50 tirsdag 27. mai 2014
Til: development at qt-project.org
Emne: [Development] split() and replace() methods SEGFAULT


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
_______________________________________________
Development mailing list
Development at qt-project.org
http://lists.qt-project.org/mailman/listinfo/development



More information about the Development mailing list