Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2021-11-16
16:34 • Closed ticket [d1bf3f53a6]: tip#511 proposed implementation plus 6 other cha... artifact: cd7be88153 user: jan.nijtmans
2021-08-20
21:20 • Ticket [d1bf3f53a6]: 3 changes artifact: 5575ec940a user: chw
08:40 • Ticket [d1bf3f53a6]: 3 changes artifact: 02b1b9365b user: chw
07:59 • Ticket [d1bf3f53a6]: 3 changes artifact: 6621af07dd user: jan.nijtmans
2021-08-18
22:26 • Ticket [d1bf3f53a6]: 3 changes artifact: a9ef322b64 user: chw
19:13 • Add attachment macos-tip511.diff to ticket [d1bf3f53a6e19c6b|d1bf3f53a6... artifact: f4f30de69f user: chw
19:13 • Ticket [d1bf3f53a6] tip#511 proposed implementation status still Open with 3... artifact: 3bf5a2534c user: chw
18:01 • Ticket [d1bf3f53a6]: 3 changes artifact: d99ccf8d44 user: chw
14:08 • Ticket [d1bf3f53a6]: 3 changes artifact: 83d9583c78 user: jan.nijtmans
2021-08-17
16:30 • Ticket [d1bf3f53a6]: 4 changes artifact: 0114a6bac5 user: jan.nijtmans
2021-08-05
19:59 • Add attachment tip511.diff5 to ticket [d1bf3f53a6] artifact: 8875bb0e15 user: chw
19:59 • Ticket [d1bf3f53a6] tip#511 proposed implementation status still Open with 3... artifact: 608ad12c64 user: chw
17:53 • Add attachment tip511.diff4 to ticket [d1bf3f53a6] artifact: 6e92f7bcc0 user: chw
17:52 • Ticket [d1bf3f53a6] tip#511 proposed implementation status still Open with 3... artifact: 528bac6891 user: chw
2021-08-04
22:24 • Add attachment tip511.diff3 to ticket [d1bf3f53a6] artifact: 4c280388a7 user: chw
22:24 • Ticket [d1bf3f53a6] tip#511 proposed implementation status still Open with 3... artifact: 2a1deb1c01 user: chw
22:12 • Add attachment tip511.diff2 to ticket [d1bf3f53a6] artifact: 0129dbff31 user: chw
22:12 • Ticket [d1bf3f53a6] tip#511 proposed implementation status still Open with 3... artifact: b0a40d48e4 user: chw
16:49 • Add attachment tip511.diff to ticket [d1bf3f53a6] artifact: 425eed73aa user: chw
16:49 • New ticket [d1bf3f53a6] tip#511 proposed implementation. artifact: 5170c44cf2 user: chw

tip#511 proposed implementation

Closed / Fixedd1bf3f53a6e19c6b068352dd25449e8a90eab580Created 5 years agoUpdated 5 years ago
Descriptionwiki2021-08-04 16:49:15
The attachment contains a diff against core-8-branch at [c8be6c32f12bd5f112654cdb4482ae3dc0f88110]
chwwiki2021-08-04 22:12:26

The second attachment (tip511.diff2) replaces the first and improves the code path for signal handlers not to use pthread_get_specific(), which according to the documentation available on the internet is not listed as a async-signal-safe function.

chwwiki2021-08-04 22:24:32

Forgot a function for the MacOSX version. This is now in tip511.diff3 which hopefully is the final candidate.

chwwiki2021-08-05 17:52:49

A missing if block in Tcl_AsyncInvoke is fixed in the attached tip511.diff4 plus the Async.3 man page is updated.

chwwiki2021-08-05 19:59:41

A typo is fixed in attachment tip511.diff5

jan.nijtmanswiki2021-08-17 16:30:19

There's a 'tip-511' implementation branch now, derived from tip511.diff5 with a few additional tweaks:

1) Adapted unix/configure.ac to autoconf-70, and re-generated unix/configure

2) Moved stub entry, preventing a conflict with TIP #568 (which will - hopefully - be voted on soon)

I didn't review it further, but will do that soon. Other people wanting to review the implementation, please go ahead! If nothing comes up the coming weeks, I'll be happy to sponsor this TIP.

jan.nijtmanswiki2021-08-18 14:08:06

MacOS Build on GITHUB failed: https://github.com/tcltk/tcl/runs/3358643773?check_suite_focus=true. Any idea what could be the reason?

Tests began at Wed Aug 18 07:43:24 UTC 2021
aaa_exit.test
Test file error: child killed: illegal instruction
append.test
Test file error: child killed: illegal instruction
....

chwwiki2021-08-18 18:01:22

Just a guess: there's a call to StartNotifierThread() at the end of AtForkChild() in order to have early signal handling proper. Maybe this is the culprit.

chwwiki2021-08-18 19:13:14

Please try the attached macos-tip511.diff (should fix the issue hopefully).

chwwiki2021-08-18 22:26:51

Musing over the latest patch: that problem is only manifest for use cases of the fork command in TclX. Not at all for the usual Tcl test cases, where in a subprocess something is immediately exec'ed. But anyway, since Tcl can be used as a toolbox/library forking should be fully supported.

jan.nijtmanswiki2021-08-20 07:59:50

MacOS Build on GITHUB succeeded now.

@chw, any more final tweaks you want to make? Is it ready now to be merged to core-8-branch?

chwwiki2021-08-20 08:40:54

Jan, when no more errors show up in the CI, yes please merge. I'm aware that it requires still more test cases in the tests directory and infrastructure for it in tclTest.c but let's go ahead anyways.

chwwiki2021-08-20 21:20:22

Fine. Now, that tip-511 almost went into production, let us hope that FlightAware will pick it up, somewhat. As stated earlier TclX will be the most prominent test case. And please FlightAware people, find ideas for patching on www.androwish.org

jan.nijtmanswiki2021-11-16 16:34:32

Implementation in 8.7 branch now: [1a6b389968]

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

Attachments: