[sf-perl] 100 levels deep in subroutine calls!

Loo, Peter # PHX Peter.Loo at source.wolterskluwer.com
Tue Jun 19 11:54:23 PDT 2007


What I have learned today is that Perl has a default recursive setting
of 100.  It turns out that someone had removed the Oracle path
definition file that the program needed and when it couldn't find the
file, it went to perform the email notification sub-routine.  The
problem is that the email notification sub-routine also require the
Oracle path to be set so it also calls this sub-routine that reads this
file to set the Oracle paths.  So the program quickly reached the
limitation of 100.  From this exercise I was able to identify a flaw in
the design of the notification sub-routine.

So back to my original problem of the core dump.  Haven't identified
this problem.

Thanks.
 
Peter

-----Original Message-----
From: Randal L. Schwartz [mailto:merlyn at stonehenge.com] 
Sent: Tuesday, June 19, 2007 10:48 AM
To: Loo, Peter # PHX
Cc: Josh Berkus; sanfrancisco-pm at pm.org
Subject: Re: [sf-perl] 100 levels deep in subroutine calls!

>>>>> "Loo," == Loo, Peter # PHX <Peter.Loo at source.wolterskluwer.com>
writes:

Loo,> Thank you all for your inputs.  I think from putting pieces
together, I Loo,> do see a light.  If I offended anyone, I sincerely
apologize.  I am Loo,> actually a very easy going person, however, my
written communication Loo,> might need refinement.  Your comments and
advises are well taken with Loo,> great appreciation.

I'd be much less interested in an apology and much more interested in a
disclosure of what you learned so that future readers of this thread
will also be able to follow your enlightenment.

How were you, in fact, recursing?  That'd be a good thing to disclose.

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777
0095 <merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl
training!


This E-mail message is for the sole use of the intended recipient(s) and
may contain confidential and privileged information.  Any unauthorized
review, use, disclosure or distribution is prohibited.  If you are not
the intended recipient, please contact the sender by reply E-mail, and
destroy all copies of the original message.


More information about the SanFrancisco-pm mailing list