Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Problem with exec and Object Store

Closed / Fixed217878ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:45:17
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
welch Closed ticket [217878ffff]. [History diff]2000-10-26 08:09:10
dgp Ticket [217878ffff]: 3 changes [History diff]2001-04-13 23:41:59
Log in (anonymous is fine) to add a comment.