Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2023-01-18
17:09 • Closed ticket [8f7fdea2df]: string-2.20.1 fails on big endian plus 5 other c... artifact: 5928fa283a user: jan.nijtmans
09:23 • Pending ticket [8f7fdea2df]. artifact: ff0fa5c908 user: jan.nijtmans
08:21 • Ticket [8f7fdea2df]: 4 changes artifact: 0d11f858da user: pooryorick
2023-01-17
12:14 • Closed ticket [8f7fdea2df]. artifact: 3c7b0ccb97 user: pooryorick
2023-01-16
23:05 • Ticket [8f7fdea2df]: 3 changes artifact: 91ff4a9b7f user: jan.nijtmans
2023-01-15
19:31 • Ticket [8f7fdea2df]: 4 changes artifact: 81332e4d39 user: pooryorick
19:26
Fix issue [8f7fdea2d], string-2.20.1 fails on big endian, and also fix issues in TclStringCmp when ... check-in: 9858a68816 user: pooryorick tags: core-8-6-branch
2023-01-12
15:22 • Ticket [8f7fdea2df] string-2.20.1 fails on big endian status still Open with... artifact: e1fc2b994f user: jan.nijtmans
13:49 • Add attachment tcl-string-compare.patch to ticket [8f7fdea2dfe5a295|8f7... artifact: f98c2f279d user: max
13:47 • New ticket [8f7fdea2df] string-2.20.1 fails on big endian. artifact: 781a8208b4 user: max

string-2.20.1 fails on big endian

Closed / Fixed8f7fdea2dfe5a2955cf729aa7c5a433f290d9112Created 4 years agoUpdated 4 years ago
Descriptionplain2023-01-12 13:47:36
We recently found that string-2.20.1 fails when building Tcl for SUSE Linux on big endian platforms like PPC, PPC64 and s390x.

It turned out that the failing test was new in 8.6.13, but bisecting the code revealed that the actual bug had been there since 2018: [1841bf54d1b3257e].

The actual bug was in an optimisation that gets used differently on big endian than on little endiean and that didn't handle the distinction between chars and bytes correctly in at least some cases.

As a workaround I removed the optimisation (will attach the patch), and will leave it up to others that are more familiar with the code than I am to decide if it should be left out or fixed.
jan.nijtmans Ticket [8f7fdea2df]: 3 changes [History diff]2023-01-12 15:22:46
pooryorickwiki2023-01-15 19:31:37

Fixed in [9858a68816f2053a]. Thanks for the report, and the help diagnosing and verifying the fix!

jan.nijtmanswiki2023-01-16 23:05:33

@pouryorick, Please, if you fix it in core-8-6-branch, propagate the fix to core-8-branch and trunk too. Only then, this ticket can be closed.

pooryorick Closed ticket [8f7fdea2df]. [History diff]2023-01-17 12:14:42
pooryorickplain2023-01-18 08:21:08
Isn't 8.6 was routinely merged up to core-8-branch, and core-8-branch routinely merged up to trunk?  If so, is it not sufficient then to fix an error on the lowest version to which the fix applies?  Is there developer documentation somewhere regarding such details?
jan.nijtmanswiki2023-01-18 09:23:25

See https://core.tcl-lang.org/tips/doc/trunk/tip/386.md ("Workflow" section).

The merge to higher branches is not done automatically, so if you fix a bug you should manually merge it up.

jan.nijtmanswiki2023-01-18 17:09:37

Fix now merged to core-8-branch and trunk, so the ticket can be closed.

Log in (anonymous is fine) to add a comment.

Attachments: