"Parent lost, cannot clone program." error in a complex Pike program
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=7664
Reported by Per Cederqvist email@example.com
I have a program (under NDA, so I cannot show it to you) that is 6244 lines long, consisting of 10 .pmod files and one .pike file. Actually, it includes even more Pike modules.
When run, it will after some time print this error message and exit:
Parent lost, cannot clone program.
There is also a backtrace.
I've been able to create a minimal testcase that reproduces my issue. This is a set of just 5 files, for a total of 54 lines. Admittedly, the test program looks strange with a lot of unused functions and methods; in the real program they are actually used and do useful things.
When I run the minimized and sanitized file, I get this output:
$ pike main.pike Parent lost, cannot clone program. State.pmod:8: /home/cederp/sanitized/State.read_file() main.pike:4: /main()->main() $
I'll attach a shar archive of my test programs. Unpack it in en empty directory.
This reproduces with a fresh Pike 8.0.182 compiled from source on Ubuntu 14.04. (It also reproduces on a modified Pike 7.8).