Skip to content
Tcl Source Code History Of Ticket 3093120
Login

History Of Ticket 3093120

Artifacts Associated With Ticket 3093120

  1. Ticket change [1784fde371] (rid 122508) by lvirden on 2010-10-22 17:21:05:

    1. assignee initialized to: "patthoyts"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Platform: SPARC SunOS 5.9
      Tcl cvs head, downloaded from activestate ftp site.
      ./configure --prefix=/projects/sprs_lwv/tcl86 --enable-shared --enable-symbols --enable-stubs --enable-threads
      
      $ make all test install
      
      :
      :
      
      http.test
      Running httpd in thread 3
      Test file error: child killed: segmentation violation
      
      
    4. foundin initialized to: "obsolete: 8.6b1.1"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "lvirden"
    10. subsystem initialized to: "29. http Package"
    11. title initialized to:
      cvs head for tcl8.6 segmentation violation during http.test
      
    12. type initialized to: "Bug"
  2. Ticket change [4ede4dcde6] (rid 125719) by dgp on 2010-10-27 00:24:22:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2010-10-26T17:24:22"
    3. closer changed to: "dgp"
    4. icomment:
      
      Which test triggers the segfault?
      
      
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. resolution changed to: "Works For Me"
    8. status changed to: "Pending"
    9. username: "dgp"
  3. Ticket change [adec05b7ba] (rid 101541) by lvirden on 2010-10-27 21:53:40:

    1. icomment:
      What you see there is what I see in the make test output. It is also what I see if I try to run just that one file.  I don't see anything in unix/README or tests/README about getting more verbose output from the test suite - iis there a flag needed?
      
      
    2. login: "lvirden"
    3. mimetype: "text/plain"
    4. status changed to: "Open"
    5. username: "lvirden"
  4. Ticket change [87503c27f2] (rid 131675) by ferrieux on 2010-10-27 22:48:39:

    1. icomment:
      To run just one test file *and* print the names of the individual tests as they are run:
      
         make test TESTFLAGS="-verbose t -f $name.test"
      
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  5. Ticket change [06e2e3a76a] (rid 89287) by lvirden on 2010-10-27 23:43:06:

    1. icomment:
      So, using
      make test TESTFLAGS="-verbose t -f $name.test"
      I see:
      Tests running in interp:  /vol/tclsrcsol/tcl86/tcl/unix/tcltest
      Tests located in:  /vol/tclsrcsol/tcl86/tcl/tests
      Tests running in:  /vol/tclsrcsol/tcl86/tcl/unix
      Temporary files stored in /vol/tclsrcsol/tcl86/tcl/unix
      Test files run in separate interpreters
      Running tests that match:  *
      Skipping test files that match:  l.*.test
      Only running test files that match:  http.test
      Tests began at Wed Oct 27 12:38:07 EDT 2010
      http.test
      Running httpd in thread 3
      ---- http-1.1 start
      ---- http-1.2 start
      ---- http-1.3 start
      ---- http-1.4 start
      ---- http-1.5 start
      ---- http-1.6 start
      ---- http-2.1 start
      ---- http-3.1 start
      ---- http-3.2 start
      ---- http-3.3 start
      ---- http-3.4 start
      ---- http-3.5 start
      ---- http-3.6 start
      ---- http-3.7 start
      ---- http-3.8 start
      ---- http-3.9 start
      ---- http-3.10 start
      ---- http-3.11 start
      ---- http-3.13 start
      ---- http-3.14 start
      ---- http-3.15 start
      ---- http-3.16 start
      ---- http-3.17 start
      ---- http-3.18 start
      ---- http-3.19 start
      ---- http-3.20 start
      ---- http-3.21 start
      ---- http-3.22 start
      ---- http-3.23 start
      ---- http-3.24 start
      ---- http-3.25 start
      ---- http-3.26 start
      ---- http-4.1 start
      ---- http-4.2 start
      ---- http-4.3 start
      ---- http-4.4 start
      ---- http-4.5 start
      ---- http-4.6 start
      ---- http-4.7 start
      ---- http-4.8 start
      ---- http-4.9 start
      ---- http-4.10 start
      ---- http-4.11 start
      ---- http-4.12 start
      ---- http-4.13 start
      ---- http-4.14 start
      ---- http-4.15 start
      Test file error: child killed: segmentation violation
      
      Tests ended at Wed Oct 27 12:38:10 EDT 2010
      all.tcl:        Total   0       Passed  0       Skipped 0       Failed  0
      Sourced 1 Test Files.
      
      Test files exiting with errors:  
      
        http.test
      
      
      So since I see tests AFTER http-4.15, it may be the issue.  While I don't believe we use a proxy server here, I do know there are firewalls, etc.
      
      I wouldn't think that a proxy should result in a segmentation error though.
      Here's the core dump stack trace:
      
      srv19 (133) $ dbx tcltest core
      For information about new features see `help changes'
      To remove this message, put `dbxenv suppress_startup_message 7.0' in your .dbxrc
      Reading tcltest
      core file header read successfully
      Reading ld.so.1
      Reading libtcl8.6.so
      Reading libdl.so.1
      Reading libsocket.so.1
      Reading libnsl.so.1
      Reading libpthread.so.1
      Reading libm.so.1
      Reading libc.so.1
      Reading libmp.so.2
      Reading libc_psr.so.1
      Reading libthread.so.1
      detected a multithreaded program
      t@1 (l@1) terminated by signal SEGV (no mapping at the fault address)
      0xff384880: freeaddrinfo+0x0004:        ld      [%i0 + 0x1c], %l1
      Current function is CreateClientSocket
        975       freeaddrinfo(addrlist);
      (dbx 1) where                                                         
      current thread: t@1
        [1] freeaddrinfo(0x0, 0xffbfda2c, 0x442660, 0x50, 0x0, 0xffbfda18), at 0xff384880
      =>[2] CreateClientSocket(interp = 0x84fb8, port = 80, host = 0x442660 "not_a_host.tcl.tk", myaddr = (nil), myport = 0, async = 1), line 975 in "tclUnixSock.c"
        [3] Tcl_OpenTcpClient(interp = 0x84fb8, port = 80, host = 0x442660 "not_a_host.tcl.tk", myaddr = (nil), myport = 0, async = 1), line 1040 in "tclUnixSock.c"
        [4] Tcl_SocketObjCmd(notUsed = (nil), interp = 0x84fb8, objc = 4, objv = 0x8c9bc), line 1606 in "tclIOCmd.c"
        [5] NRRunObjProc(data = 0x102174, interp = 0x84fb8, result = 0), line 4371 in "tclBasic.c"
        [6] TclNRRunCallbacks(interp = 0x84fb8, result = 0, rootPtr = (nil)), line 4318 in "tclBasic.c"
        [7] Tcl_EvalObjv(interp = 0x84fb8, objc = 13, objv = 0x8c0e0, flags = 2097152), line 4108 in "tclBasic.c"
        [8] TclEvalEx(interp = 0x84fb8, script = 0xdab40 "# Commands covered:  http::config, http::geturl, http::wait, http::reset\n#\n# This file contains a collection of tests for the http script library.\n# Sourcing this file into Tcl runs the tests and generates output for errors.\n# No output means no errors were found.\n#\n# Copyright (c) 1991-1993 The Regents of the University of California.\n# Copyright (c) 1994-1996 Sun Microsystems, Inc.\n# Copyright (c) 1998-2000 by Ajuba Solutions.\n#\n# See the file "license.terms" for information on usage and redistribution of" ..., numBytes = 19475, flags = 0, line = 518, clNextOuter = (nil), outerScript = 0xdab40 "# Commands covered:  http::config, http::geturl, http::wait, http::reset\n#\n# This file contains a collection of tests for the http script library.\n# Sourcing this file into Tcl runs the tests and generates output for errors.\n# No output means no errors were found.\n#\n# Copyright (c) 1991-1993 The Regents of the University of California.\n# Copyright (c) 1994-1996 Sun Microsystems, Inc.\n# Copyright (c) 1998-2000 by Ajuba Solutions.\n#\n# See the file "license.terms" for information on usage and redistribution of" ...), line 5222 in "tclBasic.c"
        [9] Tcl_EvalEx(interp = 0x84fb8, script = 0xdab40 "# Commands covered:  http::config, http::geturl, http::wait, http::reset\n#\n# This file contains a collection of tests for the http script library.\n# Sourcing this file into Tcl runs the tests and generates output for errors.\n# No output means no errors were found.\n#\n# Copyright (c) 1991-1993 The Regents of the University of California.\n# Copyright (c) 1994-1996 Sun Microsystems, Inc.\n# Copyright (c) 1998-2000 by Ajuba Solutions.\n#\n# See the file "license.terms" for information on usage and redistribution of" ..., numBytes = 19475, flags = 0), line 4878 in "tclBasic.c"
        [10] Tcl_FSEvalFileEx(interp = 0x84fb8, pathPtr = 0x8b588, encodingName = (nil)), line 1753 in "tclIOUtil.c"
        [11] Tcl_Main(argc = -1, argv = 0xffbfe424, appInitProc = 0x175c0 = &Tcl_AppInit(Tcl_Interp *interp)), line 399 in "tclMain.c"
        [12] main(argc = 36, argv = 0xffbfe394), line 80 in "tclAppInit.c"
      
      Platform is SunOS 5.9, compiled with Sun's c compiler, using Tcl 8.6 cvs head from today.
      Configured as
      ./configure --prefix=/projects/sprs_lwv/tcl86 --enable-shared --enable-symbols --enable-stubs --enable-threads
      
      
      
      
    2. login: "lvirden"
    3. mimetype: "text/plain"
    4. username: "lvirden"
  6. Ticket change [1f4fd87076] (rid 91129) by dgp on 2010-10-28 22:00:01:

    1. icomment:
      
      Please use the option "-match http-4.15" to 
      confirm it is exactly that test causing the segfault. 
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Ticket change [e2bcc9c53d] (rid 87682) by dgp on 2010-10-28 22:04:39:

    1. assignee changed to: "andreas_kupries"
    2. icomment:
      stack trace points into unix socket code
      
      so far I've heard of no one reproducing
      the report.
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. priority changed to: "7 High"
    6. subsystem changed to: "27. Channel Types"
    7. username: "dgp"
  8. Ticket change [e6285a143f] (rid 104250) by dgp on 2010-10-28 22:06:57:

    1. title changed to: "segfault in CreateClientSocket?"
  9. Ticket change [8e43b2cd39] (rid 120080) by dgp on 2010-10-28 22:35:47:

    1. icomment:
      
      Good news!  I located a Solaris system and
      reproduced the crash.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  10. Ticket change [70c955b17d] (rid 100550) by dgp on 2010-10-28 22:48:17:

    1. assignee changed to: "rmax"
    2. icomment:
      
      Looking likely the 2010-10-12 commit
      is to blame
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. priority changed to: "9 Immediate"
    6. resolution changed to: "None"
    7. username: "dgp"
  11. Ticket change [73c7a10177] (rid 105096) by dgp on 2010-10-28 23:06:13:

    1. icomment:
      
      problem appears to be that freeaddrinfo(NULL)
      is not tolerated by Solaris.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  12. Ticket change [47fc91414b] (rid 99805) by dgp on 2010-10-28 23:23:00:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2010-10-28T16:23:00"
    3. closer changed to: "dgp"
    4. icomment:
      
      
      allow_comments - 1
      
      
      The obvious NULL protection solves the crash.
      
      
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"
    9. username: "dgp"