Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2015-09-06
12:56 • Ticket [5d170b5ca5] checkin 9f8b7bea5344f1b0 broke netbsd's thread notifier<... artifact: c833b98f8d user: dkf
12:55 • Closed ticket [76d79516f1]: forking broken plus 5 other changes artifact: 73f9f247a4 user: dkf
2015-08-28
12:51 • Ticket [76d79516f1]: 3 changes artifact: 75a521bd77 user: jan.nijtmans
00:49 • Ticket [76d79516f1]: 3 changes artifact: e171f3b018 user: bch
00:38 • Ticket [76d79516f1]: 3 changes artifact: b8403eb749 user: bch
2015-08-27
23:48 • New ticket [76d79516f1]. artifact: 4376aa4c65 user: bch

forking broken

Closed / Duplicate76d79516f1338bf7478d7e907655bca055b95ec0Created 11 years agoUpdated 11 years ago
Descriptionplain2015-08-27 23:48:32
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"
Referenced by1
  • c833b98f8dTicket [5d170b5ca5] checkin 9f8b7bea5344f1b0 broke netbsd's thread notifier status still Open with 3 other changes ticket2015-09-06 12:56:18
bchplain2015-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.
bchplain2015-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.nijtmanswiki2015-08-28 12:51:58

Probably, this is a dup of [5d170b5ca5]: checkin 9f8b7bea5344f1b0 broke netbsd's thread notifier.

dkf Closed ticket [76d79516f1]. [History diff]2015-09-06 12:55:44
Log in (anonymous is fine) to add a comment.