| Ticket UUID: | 76d79516f1338bf7478d7e907655bca055b95ec0 | ||
| Title: | forking broken | ||
| Type: | Bug | Created on: | 2015-08-27 23:48:32 |
| Submitter: | bch | Assigned to: | nobody |
| Subsystem: | 49. Threading | Severity: | Severe |
| Priority: | 5 Medium | Last modified: | 2015-09-06 12:55:44 |
| Status: | Closed | Closed by: | dkf |
| Resolution: | Duplicate | Closed on: | 2015-09-06 12:55:44 |
| Version: | 9f8b7bea53 | ||
| Description: | ||||
Using a tcl-driven forking build system, scripts that previously ran now consume 100% cpu without any apparent work happening. fossil bisected to [9f8b7bea53]. env: tclsh (--enable-symbols=all) NetBSD (-current) build system == "smake" | ||||
| User Comments: | ||||
bch added on 2015-08-28 00:38:14:
additionally: % parray tcl_platform tcl_platform(byteOrder) = littleEndian tcl_platform(machine) = amd64 tcl_platform(os) = NetBSD tcl_platform(osVersion) = 7.99.21 tcl_platform(pathSeparator) = : tcl_platform(platform) = unix tcl_platform(pointerSize) = 8 tcl_platform(threaded) = 1 tcl_platform(user) = bch tcl_platform(wordSize) = 8 ...and backing out the suspicious commit from [983b5afdc0] (fossil merge --backout ...) returns the affected script to expected behaviour. bch added on 2015-08-28 00:49:14:
and further (from a hung process w/ pure current tip-of-trunk):
(gdb) bt full
#0 0x00007f7ff623c51a in _sys___select50 () from /usr/lib/libc.so.12
No symbol table info available.
#1 0x00007f7ff6e073d6 in __select50 (nfds=<optimized out>, readfds=<optimized out>, writefds=<optimized out>,
exceptfds=<optimized out>, timeout=<optimized out>) at /usr/src/lib/libpthread/pthread_cancelstub.c:514
retval = <optimized out>
#2 0x00007f7ff77cf11c in NotifierThreadProc (clientData=0x0) at /home/bch/work/tcl/unix/tclUnixNotfy.c:1216
tsdPtr = 0x0
readableMask = {fds_bits = {8, 0, 0, 0, 0, 0, 0, 0}}
writableMask = {fds_bits = {0, 0, 0, 0, 0, 0, 0, 0}}
exceptionMask = {fds_bits = {0, 0, 0, 0, 0, 0, 0, 0}}
fds = {3, 4}
i = 0
numFdBits = 4
receivePipe = 3
found = 0
poll = {tv_sec = 0, tv_usec = 0}
timePtr = 0x0
buf = "\000"
#3 0x00007f7ff6e0aac4 in pthread__create_tramp (cookie=0x7f7ff7b2e000) at /usr/src/lib/libpthread/pthread.c:576
self = 0x7f7ff7b2e000
retval = <optimized out>
#4 0x00007f7ff62853b0 in ?? () from /usr/lib/libc.so.12
No symbol table info available.
Backtrace stopped: Cannot access memory at address 0x7f7ff6200000
(gdb)
jan.nijtmans added on 2015-08-28 12:51:58:
Probably, this is a dup of [5d170b5ca5]: checkin 9f8b7bea5344f1b0 broke netbsd's thread notifier. | ||||
