Calling of this_program in __INIT causes C stack overflow.
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1426
Reported by @grubba
From: Alexander Demenshin <aldem-pike@aldem.net>
To: pike-bugs@roxen.com
Date: Tue, 27 Mar 2001 13:29:36 +0200
Subject: Another problem (stack overflow etc.: pike -e 'mixed p =
this_program();')
Hello,
So, subject says it all :) Problem also exists (though messages are
different) when I try to run:
#! /usr/local/bin/pike
mixed p = this_program();
int main(int argc, array(string) argv) { }
If call to this_program() is from inside of any function everything
is OK, if outside - "C stack overflow".
/Al