Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-03
07:46 • Ticket [217990ffff] dumps core if stdout or stderr is not open ass soon as you o... artifact: 7f64766092 user: dgp
2000-10-26
08:12 • Deleted ticket [217990ffff]. artifact: 84bc742af4 user: welch
00:51 • New ticket [217990ffff]. artifact: 14569cee9a user: nobody

dumps core if stdout or stderr is not open ass soon as you o

Deleted217990ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:51:44
OriginalBugID: 564 Bug
Version: 8.0p2
SubmitDate: '1998-04-15'
LastModified: '1998-11-20'
Severity: SER
Status: Closed
Submitter: hershey
ChangedBy: rjohnson
OS: All
OSVersion: NA
Machine: NA
FixedDate: '2000-10-25'
FixedInVersion: NA
ClosedDate: '1998-11-20'


>Date: 09 Apr 1998 17:19 EDT
>Sender: "Dave Mielke" <[email protected]>
>To: [email protected]
>From: "Dave Mielke" <[email protected]>
>Subject: TCL 8.0p2 core dump.
>X-MIME-Autoconverted: from quoted-printable to 8bit by pop.scriptics.com
id TAA10867
>
>Hi:
> 
>TCL 8.0p2 core dumps if it is invoked with standard output and/or
>standard error not open as soon as you open a file. For example, from
>the Bourne Shell:
> 
>    main> cat tcltest
>    #!/usr/local/bin/tclsh
>    set f [open .profile r]
> 
>    main> tcltest >&- 2>&-
>    Bus error(coredump)
> 
>This problem is more than just theoretical. We invoke a number of TCL
>scripts from "/etc/inittab", and, at least on HP-UX, such processes are
>started up with all 3 standard I/O streams closed.
> 
>This problem occurs on our HP-UX (9.05 and 10.20) machines at work, as
>well as on my Linux (kernel 2.0.32) machine at home. HP-UX reports it
>as a "bus error", whereas Linux reports it as a "segmentation fault".
>In the end, they both are probably one and the same thing.
> 
>Thanks.
>--
>Dave Mielke     | home: 1-613-726-0014 | Nortel Technologies   | dept: 7H65
>856 Grenon Ave. | work: 1-613-765-4671 | P.O. Box 3511, Stn. C | mail:
stop 274
>Ottawa, Ontario | fax:  1-613-763-9727 | Ottawa, Ontario       | locn:
5E.1.L19
>Canada  K2B 6G3 | e-mail: [email protected] | Canada  K1Y 4H7       | esn:
39-54671
> 



I can't recreate this problem.   I tried exactly what was shown about and could not get a core dump.  The code also looks like it is written to handle it.  Therefor, I'm closing the bug.  11/20/1998 15:38 - rjohnson -
welch Deleted ticket [217990ffff]. [History diff]2000-10-26 08:12:10
dgp Ticket [217990ffff]: 3 changes [History diff]2001-04-03 07:46:56
Log in (anonymous is fine) to add a comment.