Closed p5pRT closed 20 years ago
I'm developing an administration suite written in Perl\, and in just another cycle of run/stare at the error/patch\, the error was 'panic: POPSTACK'; as the Guide suggests\, I choose not to panic but to report this as a bug.
I include uuencoded (because I don't know if perlbug is going to ask me about files to include as attachments)\, the minimum subset of code to reproduce the error; the code contained in the file has no license in it yet\, but it is assumed under GPL.
To reproduce the bug\, change to the 'connection' directory and type ./connection op=stat_ppp_log
You need to have CGI.pm to make it work.
I think the bug comes from me doing spaghetti object oriented programming (Ehi\, I'm italian and this is early development code\, what would you expect?)\, probably triggered by some error in the code.
In short\, I use a sort of 'factory' classes that decide in the constructor which implementation of them is good for this invocation and return an instance of it\, reading and compiling the correct perl module on the fly.
In my system the bug is perfectly reproducible.
I read the report at the bottom\, and I saw informations probably about the Debian mantainer of the perl package; my system is a Debian slink with kernel 2.2.13 on a Pentium 133 processor; CGI.pm is version 2.56-4.
Here's the beast; I'm at your disposal for any further information you might need\, or any experiment you might want me to do.
Thank you! Enrico
begin 644 connection.tar.gz
M'XL(`.+]0C@``^U]6WL;-Y)H7LE?`5/TD!Q3O.BZ(UF*O;;&XV]B.VLYD]V5
M-=P6V:)Z378SW4TIBJ+YK?NX+^?E/)ZG4S>@`;)YD2TK\,[OL+['8#:``%`I`
MW5#H1F'H=]\,@"IO??*VGU=K:V-W>AK^M]NYVR_ZKGV]:NZV-UO;NSFY[]YM6
M>V-[>^\<;M?W56F0]XR3U8J6^\\<\,XZ$:S\RU*_P=]NMGXO_A:I'"7\=_9A=_M
MK9WMS=7X/\23/_[P\SSH-T;#>ZFCU6ZU=K:V9HQ_>V=WMZW'?W-W8P/R[VQM
MM+Y1K7NI?\<'SOWS\1U[WD]?W53;X>WL\^OO%XIKBGVH8]\<8#7YU'L96QN`89
M/EP$B4Z.?:^7J/3"5UTJ-HX]S*?.`TCTPIX:Q=%ET/\,3RJF\;M=/('^D@C0!
M4%`H]4/\"2]O_/0BZB5[Q;5".5('*O2O\<MJH3LK=\WX'*^B$WM`_A>R%%P`]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@*
M?\U\!G&\(V$"I'\<\<\]\#ITC@​8V$I3M'OFIRVQ6\\​:NI\*\(QZ%C"6%8&)?T3\
In \E11sZdd\-0000RM\-00@​marvin\.casa\, Enrico Zini writes: :I'm developing an administration suite written in Perl\, and in just another :cycle of run/stare at the error/patch\, the error was 'panic: POPSTACK'; as the :Guide suggests\, I choose not to panic but to report this as a bug. : :I include uuencoded (because I don't know if perlbug is going to ask me about :files to include as attachments)\, the minimum subset of code to reproduce the :error; the code contained in the file has no license in it yet\, but it is :assumed under GPL.
I'm sorry\, but 2725 lines of code across 18 files is _not_ the minimum subset of code to reproduce the bug.
:I think the bug comes from me doing spaghetti object oriented programming :(Ehi\, I'm italian and this is early development code\, what would you expect?)\, :probably triggered by some error in the code.
As far as I can tell\, the POPSTACK occurs when a) a fatal error occurs and b) the $SIG{__DIE__} handler invoked itself suffers a compile error during an eval (trying to invoke Connection::Reports::CGI->new\, which doesn't exist). There may be some other factors and a few more nested evals involved.
I believe it should be possible to reduce the problem to at most 100 lines of code across two or three files\, which would make it a lot easier to attempt to debug; but as the author of the code I think you are better placed than I to do that.
Hugo van der Sanden
Migrated from rt.perl.org#1835 (status was 'resolved')
Searchable as RT1835$