Artifacts Associated With Ticket 553320ffffffffff
Ticket change [a00a3fe0eb] (rid 96737) by msofer on 2002-05-07 15:45:02:
- assignee initialized to: "vincentdarley"
- cmimetype initialized to: "text/plain"
- comment initialized to:
The HEAD produces a segfault on linux (RH7.2) in test filename-11.48. Incomplete fix? A detail: (line 1275) test for existence of file named $horribleglobname before renaming: when a first run does not complete, a second one fails on the "rename" complaining that the file already exists.
- foundin initialized to: "None"
- priority initialized to: "8"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "msofer"
- subsystem initialized to: "None"
- title initialized to: "segfault in tests/fileName.test"
- type initialized to: "Bug"
Ticket change [37f2c7103b] (rid 112123) by vincentdarley on 2002-05-07 23:01:48:
- icomment:
Logged In: YES user_id=32170 Since this particular test works fine for me, I'm going to need some more information to go on, like a stack trace or whatever.... I'll fix line 1275, and a potential problem in test 16.16 on Windows, but I can't do much about your segfault yet.
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
- icomment:
Ticket change [e51817942c] (rid 88076) by msofer on 2002-05-07 23:46:58:
- icomment:
File Added - 22665: BackTrace Logged In: YES user_id=148712 The segfault disappears when compiling with symbols. Enclosing a backtrace without symbols; will still try to get more info with MEM_DEBUG on.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Add attachment "BackTrace" [56601c4774] (rid 94304) by msofer on 2002-05-07 23:46:58.
Ticket change [863424cf96] (rid 131460) by msofer on 2002-05-07 23:55:53:
- icomment:
Logged In: YES user_id=148712 With MEM_DEBUG on, no segfault but memory corruption in the same test: [mig@mini unix]$ ./tcltest ../tests/fileName.test ==== filename-11.48 Tcl_GlobCmd FAILED ==== Contents of test case: list [catch {glob -types abcde -dir foo -join * *} msg] $msg ---- Result was: 1 {bad argument to "-types": abcde} ---- Result should have been (exact matching): °aaaaaaaaaaaaaaaaaaa ==== filename-11.48 FAILED fileName.test: Total 380 Passed 326 Skipped 53 Failed 1 Number of tests skipped for each constraint: 18 macOnly 7 nonPortable 28 pcOnly - login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [be7a11271d] (rid 102079) by nobody on 2002-05-08 00:06:20:
- icomment:
Logged In: NO Around line 1791, change the comment and code that follows to this: /* * Error cases. We re-get the interpreter's result, * just to be sure it hasn't changed, and we reset * the 'join' flag to zero, since we haven't yet * made use of it. */ badTypesArg: resultPtr = Tcl_GetObjResult(interp); Tcl_AppendToObj(resultPtr, "bad argument to \"-types\": ", -1); Tcl_AppendObjToObj(resultPtr, look); result = TCL_ERROR; join = 0; goto endOfGlob; badMacTypesArg: resultPtr = Tcl_GetObjResult(interp); Tcl_AppendToObj(resultPtr, "only one MacOS type or creator argument" " to \"-types\" allowed", -1); result = TCL_ERROR; join = 0; goto endOfGlob; that might fix the problem. I can't see anything else which could be wrong.
- login: "nobody"
- mimetype: "text/plain"
- username: "nobody"
- icomment:
Add attachment "553320.patch" [39d40b5272] (rid 112457) by msofer on 2002-05-08 00:57:16.
Ticket change [223c638206] (rid 130710) by msofer on 2002-05-08 00:57:16:
- icomment:
File Added - 22669: 553320.patch Logged In: YES user_id=148712 That fixed the segfault; test suite A_OK now. I enclose this as a patch - or should I rather commit it?
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [13e6c2eea5] (rid 124298) by vincentdarley on 2002-05-08 01:05:07:
- closedate changed to: "2002-05-07T18:05:07"
- closer changed to: "vincentdarley"
- icomment:
Logged In: YES user_id=32170 Thanks for the quick testing. I've committed the fix, and the test change you suggest.
- login: "vincentdarley"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "vincentdarley"