Tcl Source Code

View Ticket
Login
Ticket UUID: 3065455
Title: Tcl Head, make install-tzdata crashes on second run
Type: Bug Version: None
Submitter: andreas_kupries Created on: 2010-09-13 18:35:08
Subsystem: 06. Time Measurement Assigned To: andreas_kupries
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2010-09-17 03:21:55
Resolution: Out of Date Closed By: andreas_kupries
    Closed on: 2010-09-16 20:21:55
Description:
When building the Tcl 8.6 HEAD I consistently get crashes during installation, on target "install-tzdata" to be more specified.
This actually happens not when I configure, build, link, and install, but on a second run when the build and link stages are skipped.
I am not sure if I am explaining this right.

Lets see, in more detail:

I am building, in this order
(a) tcl
(b) tk
(c) tcl.static
(d) tk.static
(c') tcl.static
(d') tk.static
(a') tcl
(b') tk

All the (x') builds reuse the directories of their corresponding (x) build. Which means that they run configure again, but they actually to not compile or link anything because the .obj/.dll/.lib files are all present and uptodate. They do run the install target however. The regular/static builds use different build directories for the object files and libs. They install into the same result directory hierarchy tough, i.e. the --prefix and --exec-prefix are the same.

It might be possible to leave Tk out of this, I mentioned it for completeness.
The builds which crash during execution of the 'install-tzdata' target are (c) and (a').
The attached log of the cash is for (a').
User Comments: andreas_kupries added on 2010-09-17 03:21:55:

allow_comments - 1

Closing. Not reproducible anymore when using the HEAD of today. Apparently a transient problem due to the -DUNICODE patch flux.

andreas_kupries added on 2010-09-16 22:25:02:
Ah. My bad. I forgot to mention: This is on Windows 64bit. The changes you propose are in the unix Makefile. The windows Makefile uses the just-build tclsh, not the native tclsh.

kennykb added on 2010-09-16 08:08:23:
WOMM.

It's definitely $(NATIVE_TCLSH) that's crashing, so I have two hypothesis:

(1) $(NATIVE_TCLSH) is incompatible with the Makefile settings of LD_LIBRARY_PATH and TCL_LIBRARY... and I don't think we're supposed to be setting them, so taking those lines out of install-msgs and install-tzdata looks right.

(2) $(NATIVE_TCLSH) is broken and crashing for some other reason.

Could you remove the two lines:

@@LD_LIBRARY_PATH_VAR@="`pwd`:$${@LD_LIBRARY_PATH_VAR@}"; export @LD_LIBRARY_PATH_VAR@; \
TCL_LIBRARY="${TCL_BUILDTIME_LIBRARY}"; export TCL_LIBRARY; \

from the install-msgs and install-tzdata rules in Makefile.in and retest?

andreas_kupries added on 2010-09-14 01:35:09:

File Added - 386544: tcl.log

Attachments: