#2574 FileName test fails on NetBSD 1.6.1

obsolete: 8.5a0
closed-fixed
5
2004-01-15
2004-01-15
No

fileName.test
Test file error: child killed: segmentation violation
fileSystem.test

==== filesystem-1.33 link normalisation: link near
filesystem root FAILED
==== Contents of test case:

testsetplatform windows
file normalize C:/../bar

---- Result was:
/home/steveo/steveo/projects/cvsstuff/tcl/unix/C:/bar
---- Result should have been (exact matching):
C:/bar

Discussion

  • Don Porter

    Don Porter - 2004-01-15

    Logged In: YES
    user_id=80530

    Can you use the -verbose option
    to determine which test in
    fileName.test is causing
    the segfault?

     
  • Kevin B KENNY

    Kevin B KENNY - 2004-01-15

    Logged In: YES
    user_id=99768

    Steve says it's filename-11.36, and the stack trace is:
    #0 0x48104e3b in Tcl_GetIntFromObj (interp=0x0,
    objPtr=0x0, intPtr=0xbfbfb100)
    at ./../generic/tclObj.c:1810
    #1 0x4811385e in TclUpdateReturnInfo (iPtr=0x8067000)
    at ./../generic/tclProc.c:1429
    #2 0x481135b2 in ProcessProcResultCode (interp=0x8067000,
    procName=0x80cb990 "MatchingOption", nameLen=14,
    returnCode=2)
    at ./../generic/tclProc.c:1295
    #3 0x48113229 in TclObjInterpProc (clientData=0x80d95e0,
    interp=0x8067000,
    objc=2, objv=0x806901c) at ./../generic/tclProc.c:1087
    #4 0x4809a609 in TclEvalObjvInternal (interp=0x8067000,
    objc=2,
    objv=0x806901c, command=0x0, length=0, flags=0)
    at ./../generic/tclBasic.c:3143
    #5 0x480d07b5 in TclExecuteByteCode (interp=0x8067000,
    codePtr=0x80f0c00)
    at ./../generic/tclExecute.c:1537
    #6 0x480cf2c1 in TclCompEvalObj (interp=0x8067000,
    objPtr=0x80ce4e0)
    at ./../generic/tclExecute.c:1005
    #7 0x481131f4 in TclObjInterpProc (clientData=0x80d9680,
    interp=0x8067000,
    objc=2, objv=0x806900c) at ./../generic/tclProc.c:1080
    #8 0x4809a609 in TclEvalObjvInternal (interp=0x8067000,
    objc=2,
    objv=0x806900c, command=0x0, length=0, flags=0)
    at ./../generic/tclBasic.c:3143
    #9 0x480d07b5 in TclExecuteByteCode (interp=0x8067000,
    codePtr=0x8102000)
    at ./../generic/tclExecute.c:1537
    ---Type <return> to continue, or q <return> to quit---
    #10 0x480cf2c1 in TclCompEvalObj (interp=0x8067000,
    objPtr=0x80ce240)
    at ./../generic/tclExecute.c:1005
    #11 0x481131f4 in TclObjInterpProc (clientData=0x80e1620,
    interp=0x8067000,
    objc=1, objv=0x8069008) at ./../generic/tclProc.c:1080
    #12 0x4809a609 in TclEvalObjvInternal (interp=0x8067000,
    objc=1,
    objv=0x8069008, command=0x0, length=0, flags=0)
    at ./../generic/tclBasic.c:3143
    #13 0x480d07b5 in TclExecuteByteCode (interp=0x8067000,
    codePtr=0x80f9000)
    at ./../generic/tclExecute.c:1537
    #14 0x480cf2c1 in TclCompEvalObj (interp=0x8067000,
    objPtr=0x80c44b0)
    at ./../generic/tclExecute.c:1005
    #15 0x481131f4 in TclObjInterpProc (clientData=0x80e5f40,
    interp=0x8067000,
    objc=5, objv=0xbfbfcfb0) at ./../generic/tclProc.c:1080
    #16 0x480fdf29 in InvokeImportedCmd (clientData=0x80908d0,
    interp=0x8067000,
    objc=5, objv=0xbfbfcfb0) at ./../generic/tclNamesp.c:1638
    #17 0x4809a609 in TclEvalObjvInternal (interp=0x8067000,
    objc=5,
    objv=0xbfbfcfb0,
    command=0x80ae2be "test filename-11.36 {Tcl_GlobCmd}
    {\n list [catch {glob -tails *} msg] $msg\n} {1
    {\"-tails\" must be used with either \"-directory\" or
    \"-path\"}}\ntest filename-11.37 {Tcl_GlobCmd} {\n list
    [catch {glo"...,
    length=144, flags=0) at ./../generic/tclBasic.c:3143
    #18 0x4809b234 in Tcl_EvalEx (interp=0x8067000,
    script=0x80a2000 "# This file tests the filename
    manipulation routines.\n#\n---Type <return> to continue, or
    q <return> to quit---
    # This file contains a collection of tests for one or more
    of the Tcl\n# built-in commands. Sourcing this file into
    Tcl runs the tests and\n# gen"...,
    numBytes=68507, flags=0) at ./../generic/tclBasic.c:3638
    #19 0x480f531c in Tcl_FSEvalFileEx (interp=0x8067000,
    pathPtr=0x8066090,
    encodingName=0x0) at ./../generic/tclIOUtil.c:1566
    #20 0x480fbd72 in Tcl_Main (argc=35, argv=0xbfbfd438,
    appInitProc=0x804c9c0 <Tcl_AppInit>) at
    ./../generic/tclMain.c:380
    #21 0x804c9b0 in main (argc=36, argv=0xbfbfd434) at
    ./../unix/tclAppInit.c:90
    #22 0x804c790 in ___start ()

     
  • Don Porter

    Don Porter - 2004-01-15

    Logged In: YES
    user_id=80530

    I suspect this testing is
    not on the up to date HEAD.
    The current ChangeLog includes
    an entry:

    * generic/tclFileName.c (Tcl_GlobObjCmd): Latest
    changes to
    management of the interp result by
    Tcl_GetIndexFromObj() exposed
    improper interp result management in the [glob]
    command procedure.
    Corrected by adopting the
    Tcl_SetObjResult(Tcl_NewStringObj) pattern.
    This stopped a segfault in test filename-11.36.

    which I think is a record of fixing this bug.

     
  • Kevin B KENNY

    Kevin B KENNY - 2004-01-15
    • status: open --> closed-fixed
     
  • Kevin B KENNY

    Kevin B KENNY - 2004-01-15

    Logged In: YES
    user_id=99768

    dkf fixed this one with a commit on 13 January, see log
    for Bug 875395.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks