Tcl Source Code

View Ticket
Login
Ticket UUID: 217878
Title: Problem with exec and Object Store
Type: Bug Created on: 2000-10-26 00:45:17
Submitter: nobody Assigned to: nobody
Subsystem: 26. Channel Transforms Severity:
Priority: 3 Low Last modified: 2001-04-13 23:41:59
Status: Closed Closed by: dgp
Resolution: Fixed Closed on: 2001-04-13 16:41:59
Version: final: 8.0.5
Description:
OriginalBugID: 2228 Bug
Version: 8.0.5
SubmitDate: '1999-06-15'
LastModified: '1999-09-20'
Severity: CRIT
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
RelatedBugIDs: 1312 942
OS: SunOS
Machine: Sparc
FixedDate: '2000-10-25'
ClosedDate: '1999-09-20'


Name:
Patricia Davey

ReproducibleScript:
We are using Object Store with TCL (UNIX/SUN). After returning from the
    exec function it appears the the signal handlers aren't restored
    properly. ObjectStore traps SEGV for handling their database access, and
    after the exec these are not trapped by ObjectStore any longer, so the
    entire program crashes with a SEGV violation.  Changing the vfork to
    fork in tclPipe.c solved the problem, so I know the fix, but I was told
    to report the problem to you. Is there a reason for using vfork instead
    of fork I noticed that vfork is still used in 8.1 and it is supposed to
    be thread-safe, but my documentation for vfork claims it is not thread
    safe.

ObservedBehavior:
All calls to ObjectStore functions are fine after initialization of the
    ObjectStore database until any exec command is executed. However after
    any exec, all ObjectStore function calls will fail.

DesiredBehavior:
The ObjectStore should trap the SEGV faults, but  will not after the
    exec command.

Patch:
Change vfork to fork in tclPipe.c

PatchFiles:
unix/tclPipe.c