Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5a03dedd165f960b8c482066e459784bfab01b07d611ba413a8a92b756373989
Ticket: 81cb2b674f2a83a0f0936f41ae8d678ce24edcb8
zlib-9.3 hangs on netbsd
User & Date: emiliano on 2019-05-04 20:32:39
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    Starting from check-in f51188e3058a46f0 (core-8-branch) test zlib-9.3 hangs on
    NetBSD 8.0, both i386 and amd64. Quick inspection shows that it happens when
    the script executes the [update] command.
    The test was copied and slightly modified to catch the hanging command in
    a file named "sock.tcl". Here is an interactive session:
    
    emiliano@cabernet:~/src/tcl/unix$ echo "source sock.tcl" | make shell 
    Warning: tclStubInit.c may be out of date.
    Developers may want to run "make genstubs" to regenerate.
    This warning can be safely ignored, do not report as a bug!
    LD_LIBRARY_PATH=`pwd`:  TCLLIBPATH="/home/emiliano/src/tcl/unix/pkgs"  TCL_LIBRARY="/home/emiliano/src/tcl/library" ./tclsh 
    berfore update
    entering server callback
    leaving server callback
    ^C
    -- hit ctrl-c after 10 seconds --
    emiliano@cabernet:~/src/tcl/unix$ cat sock.tcl 
        package require tcltest
        set srv [socket -myaddr localhost -server {apply {{c a p} {
            puts "entering server callback"
            chan configure $c -translation binary -buffering none -blocking 0
            puts -nonewline $c [string repeat a 81920]
            close $c
            puts "leaving server callback"
        }}} 0]
        set file [tcltest::makeFile {} test.gz]
        lassign [chan configure $srv -sockname] addr name port
        set sin [socket localhost $port]
        chan configure $sin -translation binary
        puts "berfore update"
        update
        puts "after update"
        set fout [open $file wb]
        after 1000 {set ::total timeout}
        puts here
        fcopy $sin $fout -command {apply {{c {e {}}} {
            set ::total [expr {$e eq {} ? $c : $e}]
        }}}
        vwait ::total
        after cancel {set ::total timeout}
        close $sin; close $fout
        puts [list read $::total size [file size $file]]
        close $srv
        tcltest::removeFile $file
    emiliano@cabernet:~/src/tcl/unix$
    
    Besides the hang, I failed to see why this test is in zlib,test since there's nothing related to compression on this code. I think it should be moved to socket.test
    
  5. foundin changed to: "8.7"
  6. is_private changed to: "0"
  7. login: "emiliano"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "885ae311f5fce05c2a8d9c31d2d2a1b5638ca9df"
  10. resolution changed to: "None"
  11. severity changed to: "Severe"
  12. status changed to: "Open"
  13. submitter changed to: "emiliano"
  14. subsystem changed to: "25. Channel System"
  15. title changed to: "zlib-9.3 hangs on netbsd"
  16. type changed to: "Bug"