Overview
Artifact ID: | 542bfb6a09d9a0ec1c126d5d63015ba7b02fea77b3474acfe43d1d4efac5d269 |
---|---|
Ticket: | ba68d1e9484a3a92449fdaab4c377b534842c0e0
Errors that occur when using interp eval do not give relevant line number and filename locations |
User & Date: | sebres 2025-03-06 16:26:18 |
Changes
- closer changed to: "nobody"
- icomment:
Hmm, pity that I did not check the safe.test, but seeing @dgp amend [b756080dc6f8cd05], the whole fix looks a bit weird to me now, because there is no line 59 in code of interp eval (basically the evaluating scripts are single-line scripts). If I do debug-logging from Tcl_TransferResult, it does that 3 times during test safe-10.4.1, for instance: ``` ******** 04128CA8 ==> 014058B0 : 1 - can't use package in a safe interpreter: no Safepkg1_SafeInit procedure while executing "load {} Safepkg1 x" ******** 014058B0 ==> 04128CA8 : 59 - load of binary library for package Safepkg1 failed: can't use package in a safe interpreter: no Safepkg1_SafeInit procedure ******** 04128CA8 ==> 014058B0 : 1 - load of binary library for package Safepkg1 failed: can't use package in a safe interpreter: no Safepkg1_SafeInit procedure ("interp eval" body line 59) invoked from within "load {} Safepkg1 x" ``` (where only middle has errorLine = 59, probably some old value that did not reset in-between)... Anyway, this doesn't look correct to me. I'll fix it soon.
- login: "sebres"
- mimetype: "text/x-markdown"
- status changed to: "Open"