🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87787

Re: sigsegv from vsprintf in nntpswitch

#87787
From: Etian
Date: Sun, 11 Feb 2018 00:39
43 lines
2528 bytes
On 02/06/2018 12:57 PM, Etian wrote:
> On 02/06/2018 11:52 AM, Richard Tobin wrote:
>>
>> The most obvious way for that code to get a segmentation fault is if
>> client->vhost->Banner is too long.
>>
>> -- Richard
>>
> Thank you. So I loaded into gdb again with a break before writeclient to 
> check the variables it is being called with:
>      print client->vhost->Banner
> 
> And I got this:
>      Cannot access memory at address 0x100
> 
> So I think I'm missing defaults in the conf files required in the 
> commercial version that weren't required for the free version.
> 
> I hope this solves it.
> 
Solved!

For the benefit of anyone else trying to install this software and 
finding this thread, access.conf requires a vhost default stanza, like this:
vhost default
	Banner		news.you.com
	ReplaceBanner	1
	SSLKeyfile	/path/to/your/key with your certificate appended
	SSLCAList	/etc/ssl/certs/ca-certificates.crt
end

additional vhosts may be declared with additional IP addresses

vhost 123.456.789.012
	Banner		news.reseller.com
	SSLKeyfile	path to the key+certificate for that domain
end

It is a mighty fine nntp front-end that does authentication and 
bandwidth limiting, and combines multiple spools.  Thank you Tommy, 
wherever you are, and whatever you are photographing now.

Technical Details
Message-ID: <aa1b0$5a7f90be$6b486227$25579@news.sonic-news.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.(19219).mbox.7z!not-for-mail
References: <32b73$5a79e328$a6aa31a2$27781@news.sonic-news.com> <p5cq02$1r9r$2@macpro.inf.ed.ac.uk> <280c7$5a79fa8a$a6aa31a2$29446@news.sonic-news.com>

Show Full Headers
Complete Article Headers
Message-ID: <aa1b0$5a7f90be$6b486227$25579@news.sonic-news.com>
Subject: Re: sigsegv from vsprintf in nntpswitch
Date: Sat, 10 Feb 2018 18:39:23 -0600
From: Etian <54698212@sonic-news.com>
References: <32b73$5a79e328$a6aa31a2$27781@news.sonic-news.com> <p5cq02$1r9r$2@macpro.inf.ed.ac.uk> <280c7$5a79fa8a$a6aa31a2$29446@news.sonic-news.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.(19219).mbox.7z!not-for-mail
Newsgroups: news.software.nntp
X-Mozilla-News-Host: news://news.usenet.farm
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101
 Thunderbird/52.6.0
MIME-Version: 1.0
In-Reply-To: <280c7$5a79fa8a$a6aa31a2$29446@news.sonic-news.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-GB
Content-Transfer-Encoding: 8bit
X-Complaints-To: abuse@sonic-news.com
Organization: www.sonic-news.com
Lines: 41
NNTP-Posting-Date: Sat, 10 Feb 2018 16:39:26 -0800
X-Trace: aa1b05a7f90beceedc78225579
X-Received-Body-CRC: 2902469643
X-Received-Bytes: 2458