You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 12, 2019. It is now read-only.
Possible reasons:
When
1. a histogram child process uses some casa api (histogram1.cpp), e.g. ImageInterface.
2. parent CARTA process tries to use ImageInterface and casacore::RO_LatticeIterator to loop some data to make the rendered image. (ImageRenderService.cpp). The result rendered image is broken.
Since this histogram forked child process uses casacore's ImageInterface from its parent process without opening the file again, and if this ImageInterface uses something like, open(2), so the offset of file operation in the file descriptor in ImageInterface will by synchronized in these two process (read, write). So become not process-safe, like thread race condition.
when you use dup() or dup2() or fork() , the file table is shared by both of the file descriptors. so if you write something from one file descriptor , and again write something through other file descriptor , then it is appended not overwritten.
The text was updated successfully, but these errors were encountered:
At least it is reproducable on Mac.
Possible reasons:
When
1. a histogram child process uses some casa api (histogram1.cpp), e.g. ImageInterface.
2. parent CARTA process tries to use ImageInterface and casacore::RO_LatticeIterator to loop some data to make the rendered image. (ImageRenderService.cpp). The result rendered image is broken.
Since this histogram forked child process uses casacore's ImageInterface from its parent process without opening the file again, and if this ImageInterface uses something like, open(2), so the offset of file operation in the file descriptor in ImageInterface will by synchronized in these two process (read, write). So become not process-safe, like thread race condition.
ref:
https://stackoverflow.com/questions/5284062/two-file-descriptors-to-same-file
The text was updated successfully, but these errors were encountered: