Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-23
02:09 • Ticket [218218ffff] libtcl.so crashes but libtcl.a works(linux)!! Narrowed down ... artifact: 47f35d3f24 user: dgp
2000-10-26
08:16 • Closed ticket [218218ffff]. artifact: 37f3ffd49d user: welch
00:54 • New ticket [218218ffff]. artifact: 5d9577a659 user: nobody

libtcl.so crashes but libtcl.a works(linux)!! Narrowed down

Closed / Works For Me218218ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:54:38
OriginalBugID: 2569 Bug
Version: 8.1.1
SubmitDate: '1999-08-18'
LastModified: '1999-11-10'
Severity: CRIT
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
OS: Linux-Red Hat
Machine: Other
FixedDate: '2000-10-25'
ClosedDate: '1999-11-10'


Name:
General Sisyphus

ObservedBehavior:
I had tcl8.0 installed on linux2.2.9.  The installation  only has
    libtcl.so (no libtcl.a) and my simplest tcl program was crashing!!
    (program is where I use tclAppInit.c to 
    just add my own commands and say "hello world"). 
    
    I installed source for tcl8.1.1 and first compiled into a libtcl.so.
    with debug feature on. Still same problem. Gdb shows that it crashed in
    file tclEnv.c at line  99. 
    environ is zero so environ[0] segfaults. environ, as you kow, is set by
    shell before running exec. I then compiled tcl into libtcl.a with debug
    on and ran the same 
    program.  It doesn't crash but environ is still 0 at line 99 in file
    tclEnv.a!!!! 
    
    Any ideas? 
    
    Am I totally off track?



It's possible that this was cross-configured and 'make distclean'
was not done before the compile on Linux.  This works with shared
libs for our RedHat system, so it isn't reproducible. 
-- 11/10/1999 hobbs
welch Closed ticket [218218ffff]. [History diff]2000-10-26 08:16:58
dgp Ticket [218218ffff]: 4 changes [History diff]2001-04-23 02:09:48
Log in (anonymous is fine) to add a comment.