🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #10814

Re: Segfault Problem with latest version of NN

#10814
From: Aaron W. Hsu
Date: Fri, 16 Nov 2007 03:27
44 lines
3217 bytes
Matthias Apitz <guru@UnixArea.de> writes:

>Aaron W. Hsu <arcfide@net> writes:

>>While I can post alright from within NN itself, when I run the nnpost
>>program, I get a segfault in tputc(). Recompiling with debugging
>>results in there being an error in term.c line 1158. The GDB output
>>says that tputc(c=10) is causing the issue.

>>I am running on OpenBSD 4.2 here, and I'm hoping to be able to make a
>>port of the system and get NN supported on the OpenBSD platform. To do
>>that, I had to create a custom s-openbsd.h file. I have the config.h
>>and s-openbsd.h files available to anyone who is interested in them.
>>If anyone could help me out with this error, I would really appreciate
>>it. 

>Concerning your problem, about which version of 'nn' you're talking.
>I have nn-6.7.3 on FreeBSD 6.2 and there is no such code in
>term.c line 1158. Can you show a 'bt' of the crash?

I am using NN version 6.7.3. The following is a bt.

Program received signal SIGSEGV, Segmentation fault.
0x1c00eb25 in tputc (c=10) at term.c:1158
1158            if (auto_right_margin) {
(gdb) bt
#0  0x1c00eb25 in tputc (c=10) at term.c:1158
#1  0x1c00ea41 in tvprintf (fmt=0x3c005245 "%s\n", 
    ap=0xcfbc57d4 "@\2208\203$Z) at term.c:975
#2  0x1c00ea62 in tprintf (fmt=0x3c005245 "%s\n") at term.c:984
#3  0x1c01045c in vmsg (fmt=0x0, ap=0xa <Address 0xa out of bounds>)
    at term.c:2350
#4  0x1c01050e in msg (fmt=0x3c0022a0 "Connecting to NNTP server %s ...")
    at term.c:2370
#5  0x1c0089d6 in connect_server () at nntp.c:431
#6  0x1c0096e2 in nntp_fopen_list (cmd=0x3c001a49 "LIST") at nntp.c:1362
#7  0x1c0075be in readactfile () at db.c:1014
#8  0x1c0071ff in open_master (mode=0) at db.c:544
#9  0x1c00280c in main (argc=1, argv=0xcfbc5f78) at nn.c:921
(gdb) 
-- 
((name "Aaron Hsu")
 (email/xmpp "aaron.hsu@sacrificumdeo.net")
 (site "http://www.aaronhsu.com"))
Technical Details
Message-ID: <9J-dnYbl_Iuvk6DanZ2dnUVZ_ournZ2d@giganews.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.20140326.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail
References: <yI2dnbw2CocxQKbanZ2dnUVZ_vPinZ2d@giganews.com> <fhhgrv$6nu$1@rebelion.Sisis.de>

Show Full Headers
Complete Article Headers
Message-ID: <9J-dnYbl_Iuvk6DanZ2dnUVZ_ournZ2d@giganews.com>
Subject: Re: Segfault Problem with latest version of NN
Date: Thu, 15 Nov 2007 21:27:46 -0600
From: Aaron W. Hsu <arcfide@net>
References: <yI2dnbw2CocxQKbanZ2dnUVZ_vPinZ2d@giganews.com> <fhhgrv$6nu$1@rebelion.Sisis.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.20140326.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 15 Nov 2007 21:27:46 -0600
Newsgroups: news.software.nn
Keywords: Openbsd nn segfault nnpost
User-Agent: nn/6.7.3
Lines: 44
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-4rld2W3koFJsFzbAYwYyqKMjS3g2/M6xeSimVFYuxEYOHcNna7SrlUj9+LiUC3i4nGpmivxp7d4Fiqx!FEdBRy1+7F7hC9Q93el5H5YEl9YqPPZ0GhfSNtfQxvjteUeXT/+RGesXZMfZnyEzNNnp4S2pUw==
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint
 properly
X-Postfilter: 1.3.35