🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #49882

Re: perl filter crashing INND - why?

#49882
From: Mark W Modrall
Date: Tue, 16 Jan 2001 15:30
49 lines
2934 bytes
In article <ylg0ijesf2.fsf@windlord.stanford.edu>,
Russ Allbery  <rra@stanford.edu> wrote:
>Mark W Modrall <modrall@world.std.com> writes:
>
>> tried commenting swaps some more, and i found that it crashes upon
>> setting an amended variable into the %ENV array...  I found the core,
>> but it didn't have any symbols, so i wasn't able to make out much...
>
>> anyone familiar with perl and inn have any idea why setting an
>> environment variable would crash inn?
>
>That's very odd.  I'd try recompiling with -g to see if that gives you a
>binary with debugging symbols so that you can figure out what's crashing.
>
>INN does change its environment (setting TMPDIR), but it does that before
>it ever initializes the Perl interpretor.

	Actually, i found it was gdb that was touchy about the innd image;
if i used gdb <full image path from another directory>, it wouldn't show
the symbols...  If i switched directories to be in the news/bin directory
and did gdb innd news/spool/articles/core, then it would show me the
symbols...

	It was crashing in free, called out of Perl_my_setenv(), which
is part of the perl link library...  why it doesn't crash with perl
being run from the command line, i don't know...

	I tried to set the variables in my environment before launching
inn (and i used -d -f to run it in foreground, but i was surprised to
find the values gone when inn was running...

	I'm guessing it was because rc.news is a bourne shell script and
i'm running in bash...  the eval in rc.news launches a sh process that
doesn't inherit currently set environment variables...

	eventually i got it all running by simply putting full path
qualifications on everything in the script...  still curious about
the crash though...

	by the by, i'm using the perl filter to launch a java processor
because that's the language i found a mime processor in...  anyone know
of any good perl mime parsing and uudecoding packages?  might be
simpler not to run java stuff...

thanks
-mark


Technical Details
Message-ID: <G79HrI.51p@world.std.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.mbox.zip!supernews.google.com!sn-xit-03!supernews.com!cyclone-sf.pbi.net!206.141.192.28!cyclone0.chicago.il.ameritech.net!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.skycache.com!Cidera!portc03.blue.aol.com!uunet!dca.uu.net!nyc.uu.net!world!modrall
References: <G72nzA.Lpp@world.std.com> <G740D9.o1@world.std.com> <G77tHp.D6E@world.std.com> <ylg0ijesf2.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <G79HrI.51p@world.std.com>
Subject: Re: perl filter crashing INND - why?
Date: Tue, 16 Jan 2001 15:30:53 GMT
From: modrall@world.std.com (Mark W Modrall)
References: <G72nzA.Lpp@world.std.com> <G740D9.o1@world.std.com> <G77tHp.D6E@world.std.com> <ylg0ijesf2.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!supernews.google.com!sn-xit-03!supernews.com!cyclone-sf.pbi.net!206.141.192.28!cyclone0.chicago.il.ameritech.net!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.skycache.com!Cidera!portc03.blue.aol.com!uunet!dca.uu.net!nyc.uu.net!world!modrall
Newsgroups: news.software.nntp
Distribution: na
Organization: The World Public Access UNIX, Brookline, MA
Lines: 48