Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2008-12-03
01:26 • Ticket [2371600fff] IO test failures status still Closed with 4 other change... artifact: f59e55ccd1 user: andreas_kupries
2008-12-02
04:48 • Closed ticket [2371600fff]. artifact: 6713a70742 user: dgp
04:27 • Ticket [2371600fff]: 4 changes artifact: 2324e98f5d user: dgp
00:33 • Ticket [2371600fff]: 4 changes artifact: f270b5a9d5 user: ferrieux
00:15 • Ticket [2371600fff]: 4 changes artifact: 83063f3113 user: andreas_kupries
00:10 • Ticket [2371600fff]: 4 changes artifact: bc4177c714 user: ferrieux
2008-12-01
23:21 • Ticket [2371600fff]: 4 changes artifact: 6842085b8d user: ferrieux
22:05 • Ticket [2371600fff]: 4 changes artifact: c997d40a97 user: dgp
22:03 • Ticket [2371600fff]: 4 changes artifact: e4b2111ee3 user: dgp
15:02 • New ticket [2371600fff]. artifact: 5663b582c9 user: dgp

IO test failures

Closed / Fixed2371600fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 18 years ago
Descriptionplain2008-12-01 15:02:20
Really testing the tip of
the core-8-4-branch, where the
recent IO Finalization commits
have apparently broken a few
tests very seriously.  Here's the
first:
dgpplain2008-12-01 22:03:46
Stupid SF interface.

as I was saying...

io.test
*** glibc detected *** /home/dgp/cvs/tcl8.4/unix/tcltest: corrupted double-linked list: 0x095bb1e8 ***
======= Backtrace: =========
/lib/libc.so.6[0xbf5999]
/lib/libc.so.6(cfree+0x90)[0xbf9070]
/home/dgp/cvs/tcl8.4/unix/tcltest(TclpFree+0x1d)[0x80e1b7d]
/home/dgp/cvs/tcl8.4/unix/tcltest(Tcl_Free+0x1d)[0x80695fd]
/home/dgp/cvs/tcl8.4/unix/tcltest[0x809cfc9]
/home/dgp/cvs/tcl8.4/unix/tcltest[0x809f9ad]
/home/dgp/cvs/tcl8.4/unix/tcltest(Tcl_Close+0xed)[0x809f6ed]
/home/dgp/cvs/tcl8.4/unix/tcltest(TclFinalizeIOSubsystem+0xf5)[0x80a3c05]
/home/dgp/cvs/tcl8.4/unix/tcltest(Tcl_FinalizeThread+0x70)[0x8089670]
/home/dgp/cvs/tcl8.4/unix/tcltest(Tcl_Finalize+0x94)[0x80897b4]
/home/dgp/cvs/tcl8.4/unix/tcltest(Tcl_Exit+0x17)[0x8089b37]
/home/dgp/cvs/tcl8.4/unix/tcltest(Tcl_ExitObjCmd+0x86)[0x806c0d6]
/home/dgp/cvs/tcl8.4/unix/tcltest(TclEvalObjvInternal+0x333)[0x8064613]
/home/dgp/cvs/tcl8.4/unix/tcltest(Tcl_EvalEx+0x437)[0x8064bd7]
/home/dgp/cvs/tcl8.4/unix/tcltest(Tcl_Eval+0x3c)[0x8064edc]
/home/dgp/cvs/tcl8.4/unix/tcltest(Tcl_Main+0x3bf)[0x80afa6f]
/home/dgp/cvs/tcl8.4/unix/tcltest(main+0x3f)[0x805467f]
/lib/libc.so.6(__libc_start_main+0xdc)[0xba2dec]
/home/dgp/cvs/tcl8.4/unix/tcltest[0x80544a1]
======= Memory map: ========
00ab3000-00acd000 r-xp 00000000 fd:00 4423718    /lib/ld-2.5.so
00acd000-00ace000 r-xp 00019000 fd:00 4423718    /lib/ld-2.5.so
00ace000-00acf000 rwxp 0001a000 fd:00 4423718    /lib/ld-2.5.so
00ad5000-00afa000 r-xp 00000000 fd:00 4423900    /lib/libm-2.5.so
00afa000-00afb000 r-xp 00024000 fd:00 4423900    /lib/libm-2.5.so
00afb000-00afc000 rwxp 00025000 fd:00 4423900    /lib/libm-2.5.so
00afe000-00b00000 r-xp 00000000 fd:00 4423898    /lib/libdl-2.5.so
00b00000-00b01000 r-xp 00001000 fd:00 4423898    /lib/libdl-2.5.so
00b01000-00b02000 rwxp 00002000 fd:00 4423898    /lib/libdl-2.5.so
00b74000-00b7f000 r-xp 00000000 fd:00 4423909    /lib/libgcc_s-4.1.2-20080102.so.1
00b7f000-00b80000 rwxp 0000a000 fd:00 4423909    /lib/libgcc_s-4.1.2-20080102.so.1
00b8d000-00cca000 r-xp 00000000 fd:00 4423720    /lib/libc-2.5.so
00cca000-00ccc000 r-xp 0013c000 fd:00 4423720    /lib/libc-2.5.so
00ccc000-00ccd000 rwxp 0013e000 fd:00 4423720    /lib/libc-2.5.so
00ccd000-00cd0000 rwxp 00ccd000 00:00 0
08048000-080f7000 r-xp 00000000 00:1b 4219608438  /home/dgp/cvs/tcl8.4/unix/tcltest
080f7000-080fc000 rwxp 000af000 00:1b 4219608438  /home/dgp/cvs/tcl8.4/unix/tcltest
080fc000-080fd000 rwxp 080fc000 00:00 0
095ad000-095ce000 rwxp 095ad000 00:00 0
40000000-40001000 r-xp 40000000 00:00 0          [vdso]
40001000-40002000 rw-p 40001000 00:00 0
40030000-40031000 rw-p 40030000 00:00 0
40031000-40231000 r--p 00000000 fd:00 3123235    /usr/lib/locale/locale-archive
40300000-40321000 rw-p 40300000 00:00 0
40321000-40400000 ---p 40321000 00:00 0
bfd6b000-bfd81000 rw-p bfd6b000 00:00 0          [stack]

==== io-34.8 Tcl_Seek on pipes: not supported FAILED
==== Contents of test case:

    set f1 [open "|[list [interpreter]]" r+]
    set x [list [catch {seek $f1 0 current} msg] $msg]
    close $f1
    regsub {".*":} $x {"":} x
    string tolower $x

---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: child killed: SIGABRT
    while executing
"close $f1"
    ("uplevel" body line 4)
    invoked from within
"uplevel 1 $script"
---- errorCode: CHILDKILLED 20964 SIGABRT SIGABRT
==== io-34.8 FAILED

*** glibc detected *** /home/dgp/cvs/tcl8.4/unix/tcltest: corrupted double-linked list: 0x0868b1e8 ***
======= Backtrace: =========
/lib/libc.so.6[0xbf5999]
/lib/libc.so.6(cfree+0x90)[0xbf9070]
/home/dgp/cvs/tcl8.4/unix/tcltest(TclpFree+0x1d)[0x80e1b7d]
/home/dgp/cvs/tcl8.4/unix/tcltest(Tcl_Free+0x1d)[0x80695fd]
/home/dgp/cvs/tcl8.4/unix/tcltest[0x809cfc9]
/home/dgp/cvs/tcl8.4/unix/tcltest[0x809f9ad]
/home/dgp/cvs/tcl8.4/unix/tcltest(Tcl_Close+0xed)[0x809f6ed]
/home/dgp/cvs/tcl8.4/unix/tcltest(TclFinalizeIOSubsystem+0xf5)[0x80a3c05]
/home/dgp/cvs/tcl8.4/unix/tcltest(Tcl_FinalizeThread+0x70)[0x8089670]
/home/dgp/cvs/tcl8.4/unix/tcltest(Tcl_Finalize+0x94)[0x80897b4]
/home/dgp/cvs/tcl8.4/unix/tcltest(Tcl_Exit+0x17)[0x8089b37]
/home/dgp/cvs/tcl8.4/unix/tcltest(Tcl_ExitObjCmd+0x86)[0x806c0d6]
/home/dgp/cvs/tcl8.4/unix/tcltest(TclEvalObjvInternal+0x333)[0x8064613]
/home/dgp/cvs/tcl8.4/unix/tcltest(Tcl_EvalEx+0x437)[0x8064bd7]
/home/dgp/cvs/tcl8.4/unix/tcltest(Tcl_Eval+0x3c)[0x8064edc]
/home/dgp/cvs/tcl8.4/unix/tcltest(Tcl_Main+0x3bf)[0x80afa6f]
/home/dgp/cvs/tcl8.4/unix/tcltest(main+0x3f)[0x805467f]
/lib/libc.so.6(__libc_start_main+0xdc)[0xba2dec]
/home/dgp/cvs/tcl8.4/unix/tcltest[0x80544a1]
======= Memory map: ========
00ab3000-00acd000 r-xp 00000000 fd:00 4423718    /lib/ld-2.5.so
00acd000-00ace000 r-xp 00019000 fd:00 4423718    /lib/ld-2.5.so
00ace000-00acf000 rwxp 0001a000 fd:00 4423718    /lib/ld-2.5.so
00ad5000-00afa000 r-xp 00000000 fd:00 4423900    /lib/libm-2.5.so
00afa000-00afb000 r-xp 00024000 fd:00 4423900    /lib/libm-2.5.so
00afb000-00afc000 rwxp 00025000 fd:00 4423900    /lib/libm-2.5.so
00afe000-00b00000 r-xp 00000000 fd:00 4423898    /lib/libdl-2.5.so
00b00000-00b01000 r-xp 00001000 fd:00 4423898    /lib/libdl-2.5.so
00b01000-00b02000 rwxp 00002000 fd:00 4423898    /lib/libdl-2.5.so
00b74000-00b7f000 r-xp 00000000 fd:00 4423909    /lib/libgcc_s-4.1.2-20080102.so.1
00b7f000-00b80000 rwxp 0000a000 fd:00 4423909    /lib/libgcc_s-4.1.2-20080102.so.1
00b8d000-00cca000 r-xp 00000000 fd:00 4423720    /lib/libc-2.5.so
00cca000-00ccc000 r-xp 0013c000 fd:00 4423720    /lib/libc-2.5.so
00ccc000-00ccd000 rwxp 0013e000 fd:00 4423720    /lib/libc-2.5.so
00ccd000-00cd0000 rwxp 00ccd000 00:00 0
08048000-080f7000 r-xp 00000000 00:1b 4219608438  /home/dgp/cvs/tcl8.4/unix/tcltest
080f7000-080fc000 rwxp 000af000 00:1b 4219608438  /home/dgp/cvs/tcl8.4/unix/tcltest
080fc000-080fd000 rwxp 080fc000 00:00 0
0867d000-0869e000 rwxp 0867d000 00:00 0
40000000-40001000 r-xp 40000000 00:00 0          [vdso]
40001000-40002000 rw-p 40001000 00:00 0
40030000-40031000 rw-p 40030000 00:00 0
40031000-40231000 r--p 00000000 fd:00 3123235    /usr/lib/locale/locale-archive
40300000-40321000 rw-p 40300000 00:00 0
40321000-40400000 ---p 40321000 00:00 0
bf9bb000-bf9d1000 rw-p bf9bb000 00:00 0          [stack]

==== io-34.16 Tcl_tell on pipe: always -1 FAILED
==== Contents of test case:

    set f1 [open "|[list [interpreter]]" r+]
    set c [tell $f1]
    close $f1
    set c

---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: child killed: SIGABRT
    while executing
"close $f1"
    ("uplevel" body line 4)
    invoked from within
"uplevel 1 $script"
---- errorCode: CHILDKILLED 20965 SIGABRT SIGABRT
==== io-34.16 FAILED


similar problems in main.test as well.
dgpplain2008-12-01 22:05:05
FWIW, if this isn't very quick
and simple to resolve, I recommend
we simply revert, and let Tcl 8.4.20
live with whatever bug this patch
was meant to fix.
ferrieuxplain2008-12-01 23:21:47
Indeed it is far from trivial.
I reopened 2270477 to account for this fact.
Please Don or Andreas, do the revert on 8.[456].

Now to wash my shame :-P
ferrieuxplain2008-12-02 00:10:50
OK, see 2270477 for a better patch.
I have not yet got a chance to test it under Windows, but I'm rather confident.
It might be an interesting alternative to pure reversion ;-)
andreas_kupriesplain2008-12-02 00:15:17
I can certainly revert ... Ah, I see a new patch was done. 

The interesting thing is that I ran the test suite here (linux) after applying the patch and had no errors at all. For all branches. I am guessing that you (Don) are either on a different platform, or copiled the core with different settings than I did.

Which also means that right I am not a good place to check the new patch. I will not know if my error-less state is because the new patch fixed anything or because whatever else.

Don, can you please try Alexandre's new patch and report if that fixes the issue for you ?
ferrieuxplain2008-12-02 00:33:40
FWIW, on my x86 CentOS4.6 it did crash reliably exactly as Don reported, so the lates patch does improve things. But please test too ;-)
dgpplain2008-12-02 04:27:34
In my testing, Tcl 8.5.5+ and Tcl 8.6a4 
are not broken.

Only 8.4.19+ has crashes in the test suite.
dgpplain2008-12-02 04:48:15
Committed fix for 8.4.20.

Left other branches untouched,
since they Work For Me.

Maintainers are free to do what
they like there.
andreas_kupriesplain2008-12-03 01:26:05
Applied the new patch to the other branches as well.
Log in (anonymous is fine) to add a comment.