πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #80061

Re: inn-2.4.5 core dumps at startup after upgrade to perl 5.8.9

#80061
From: Michael Grimm
Date: Wed, 21 Jan 2009 19:30
57 lines
3427 bytes
Julien Γ‰LIE <iulius@nom-de-mon-site.com.invalid> wrote:

>> Recently, I did upgrade Perl to 5.8.9 (FBSD port upgrade), and did
>> re-compile inn (libperl.so at different location).
>
> Could you please try to apply these two patches to lib/perl.c?
>
>     http://inn.eyrie.org/trac/changeset/7938/branches/2.4/lib/perl.c?format=diff&new=7938
>     http://inn.eyrie.org/trac/changeset/7940/branches/2.4/lib/perl.c?format=diff&new=7940

Good news! Your patches did the trick:

| Jan 21 20:12:02 <news.warn> test.invalid innd: SERVER perl filtering enabled
| Jan 21 20:12:02 <news.notice> test.invalid innd: SERVER starting

| test> telnet localhost 119
| Trying 127.0.0.1...
| Connected to localhost.
| Escape character is '^]'.
| 200 test.invalid InterNetNews NNRP server INN 2.4.5 ready (posting ok).

Here's the combined patch for those who want to apply:

#v+
--- inn-2.4.5/lib/perl.c	2008-06-29 19:56:57.000000000 +0200
+++ inn-2.4.5-1/lib/perl.c	2009-01-21 19:36:03.000000000 +0100
@@ -110,14 +110,18 @@
     if (PerlCode == NULL) {
         /* Perl waits on standard input if not called with '-e'. */
         int argc = 3;
-        const char *argv[] = { "innd", "-e", "0", NULL };
-        char *env[]  = { NULL };
+        const char *argv_innd[] = { "innd", "-e", "0", NULL };
+        char **argv = (char **)argv_innd; /* Cast required by Perl 5.10. */
+        char **env  = { NULL };
 #ifdef PERL_SYS_INIT3
         PERL_SYS_INIT3(&argc, &argv, &env);
 #endif
         PerlCode = perl_alloc();
         perl_construct(PerlCode);
-        perl_parse(PerlCode, xs_init, argc, (char **)argv, env) ;
+#ifdef PERL_EXIT_DESTRUCT_END
+        PL_exit_flags |= PERL_EXIT_DESTRUCT_END;
+#endif
+        perl_parse(PerlCode, xs_init, argc, argv, env) ;
     }
     
     if (startupfile != NULL && filterfile != NULL) {
#v-

Thank you very much. I'll let the FreeBSD port maintainer know about
that fix. 

Regards,
Michael
-- 
to let
Technical Details
Message-ID: <gl7t4u$1j0k$1@odo.in-berlin.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!volia.net!news2.volia.net!feed-A.news.volia.net!news.adamant.net!info.elvisti.kiev.ua!news1.lucky.net!carrier.kiev.ua!news.uar.net!news.nask.pl!news.nask.org.pl!news.germany.com!xlned.com!feeder1.xlned.com!newsfeed.freenet.de!hirsch.in-berlin.de!odo.in-berlin.de!not-for-mail
References: <gl45dm$t3o$1@odo.in-berlin.de> <gl7nha$6t1$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <gl7t4u$1j0k$1@odo.in-berlin.de>
Subject: Re: inn-2.4.5 core dumps at startup after upgrade to perl 5.8.9
Date: Wed, 21 Jan 2009 19:30:38 +0000
From: Michael Grimm <trashcan@odo.in-berlin.de>
References: <gl45dm$t3o$1@odo.in-berlin.de> <gl7nha$6t1$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!volia.net!news2.volia.net!feed-A.news.volia.net!news.adamant.net!info.elvisti.kiev.ua!news1.lucky.net!carrier.kiev.ua!news.uar.net!news.nask.pl!news.nask.org.pl!news.germany.com!xlned.com!feeder1.xlned.com!newsfeed.freenet.de!hirsch.in-berlin.de!odo.in-berlin.de!not-for-mail
Newsgroups: news.software.nntp
Organization: ATK - Alternative Tierklinik links der Einfalt
Lines: 57
NNTP-Posting-Host: odo.in-berlin.de
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: odo.in-berlin.de 1232566238 52244 217.197.85.28 (21 Jan 2009 19:30:38
 GMT)
X-Complaints-To: abuse@odo.in-berlin.de
NNTP-Posting-Date: Wed, 21 Jan 2009 19:30:38 +0000 (UTC)
Cancel-Lock: sha1:kVgUlQOggJZucoEX/rKGYYMEoYU=
User-Agent: slrn/0.9.9p1/mm/ao (Darwin)
Mail-Copies-To: nobody
X-Original-Bytes: 3158