Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8f2df3a27d2fd4edc1613a7bac459a4273a5ea77
Ticket: 1079286fffffffffffffffffffffffffffffffff
Installing time zone data appears to hang
User & Date: davidw on 2004-12-05 17:26:54
Changes

  1. assignee changed to: "nobody"
  2. icomment:
    Logged In: YES 
    user_id=240
    
    Hrm.  No, the problem appears to be that Tcl scripts simply
    do not exit properly:
    
    @ashland [~/workshop/tcl/unix] $ make shell SCRIPT=./hello.tcl 
    LD_LIBRARY_PATH=`pwd`:; export LD_LIBRARY_PATH; \
    TCL_LIBRARY="/home/davidw/workshop/tcl/library"; export
    TCL_LIBRARY; \
    ./tclsh ./hello.tcl
    hello
    
    Where hello.tcl is just 'puts hello'.
    
    I think it's a threading issue... I managed to strace it:
    
    write(1, "hello\r\n", 7)                = 7
    fcntl64(2, F_GETFL)                     = 0x2 (flags O_RDWR)
    fcntl64(2, F_SETFL, O_RDWR)             = 0
    fcntl64(2, F_GETFL)                     = 0x2 (flags O_RDWR)
    fcntl64(0, F_GETFL)                     = 0x2 (flags O_RDWR)
    fcntl64(0, F_SETFL, O_RDWR)             = 0
    fcntl64(0, F_GETFL)                     = 0x2 (flags O_RDWR)
    fcntl64(1, F_GETFL)                     = 0x2 (flags O_RDWR)
    fcntl64(1, F_SETFL, O_RDWR)             = 0
    fcntl64(1, F_GETFL)                     = 0x2 (flags O_RDWR)
    write(6, "q", 1)                        = 1
    close(6)                                = 0
    rt_sigprocmask(SIG_SETMASK, NULL, [RTMIN], 8) = 0
    rt_sigsuspend([]
    
    
    
    
  3. login: "davidw"
  4. mimetype: "text/plain"
  5. subsystem changed to: "49. Threading"
  6. username: "davidw"