Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2018-01-10
15:07 • Closed ticket [3408718fff]: TIP 389 segfault plus 6 other changes artifact: 6f04a90837 user: jan.nijtmans
15:01 • Ticket [3408718fff]: 3 changes artifact: a4660720f2 user: dgp
2015-05-08
20:45 • Ticket [3408718fff]: 3 changes artifact: 636e619e08 user: anonymous
20:42 • Add attachment stringreplace.tcl to ticket [3408718fffffffff|3408718fff... artifact: 80f2e2bac1 user: anonymous
20:41 • Add attachment patchfile to ticket [3408718fff] artifact: a9a20065e0 user: anonymous
2015-01-17
17:16 • Ticket [3408718fff] TIP 389 segfault status still Open with 3 other changes artifact: 7d676fb7e5 user: jan.nijtmans
11:46 • Add attachment patchfile to ticket [3408718fff] artifact: 0e2bff61cd user: anonymous
11:37 • Ticket [3408718fff] TIP 389 segfault status still Open with 3 other changes artifact: d978a41335 user: anonymous
2014-12-12
15:10 • Ticket [11ae2be95d] tip-389-impl branch: string range segfaults with code points... artifact: ebdac6e309 user: jan.nijtmans
2013-08-26
14:40 • Ticket [3408718fff] TIP 389 segfault status still Open with 6 other changes artifact: 000ba4e915 user: jan.nijtmans
2012-05-11
04:16 • Ticket [3408718fff]: 1 change artifact: 7bc4447910 user: ferrieux
04:16 • Ticket [3408718fff]: 4 changes artifact: 7ad030af4b user: ferrieux
2011-09-14
01:54 • Ticket [3408718fff]: 4 changes artifact: 858564e133 user: nijtmans
2011-09-13
15:21 • New ticket [3408718fff]. artifact: 3d6b39dc89 user: dgp

TIP 389 segfault

Closed / Fixed3408718fffffffffffffffffffffffffffffffffCreated 15 years agoUpdated 9 years ago
Descriptionplain2011-09-13 15:21:46
Looking over the tip-389-impl branch, I see:

% set u \U012345\U016789
ðメヘナðヨ゙ノ
% string range $u 0 0
make: *** [shell] Segmentation fault
nijtmansplain2011-09-14 01:54:56
Yes, I know, that's why tip-389 is not
ready to be released at all ;-)

The UTF-8 <-> unicode conversions still
don't take surrogates into account, when
the number of unicode characters is not
equal to the number of words in the
UCS representation ;-)
ferrieuxplain2012-05-11 04:16:09
Lowering prio as this is not mature enough, and the TIP is for 8.7, and not accepted yet anyway.
ferrieux Ticket [3408718fff]: 1 change [History diff]2012-05-11 04:16:35
jan.nijtmans Ticket [3408718fff]: 6 changes [History diff]2013-08-26 14:40:35
anonymousplain2015-01-17 11:37:50
I have a patch fixing this, are you interested?
jan.nijtmansplain2015-01-17 17:16:56
Yes, I'm interested in your patch.
anonymousplain2015-05-08 20:45:44
I added two additional files: a patchfile with more proposed fixes (my changes to StringRplcCmd don't work yet, but i solved it with the attached tcl file)
dgpplain2018-01-10 15:01:37
I don't see a segfault from this test case on today's tip-389 branch.

Maybe this can be closed?
jan.nijtmansplain2018-01-10 15:07:36
Yes, should be fixed now. Thanks!
Log in (anonymous is fine) to add a comment.