🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
2 messages
2 total messages Started by Quentin Fennessy Tue, 31 Aug 1999 00:00
slrn core dumps on HP-UX 10.20
#51305
Author: Quentin Fennessy
Date: Tue, 31 Aug 1999 00:00
62 lines
3294 bytes
(I've posted this to news.software.readers and cc'ed davis@space.mit.edu)

I recently installed slrn 0.9.5.7 in our corporate toolbox.
I have working versions for Linux (RH6), Solaris 2.5.1, SunOS 4 and AIX 4.
I built the same version of slrn on HP-UX 10.20 and did not see
any compilation errors. (I used egcs 1.1.2)

But when I run slrn 0.9.5.7 on HP-UX 10.20 the slrn process dies
and dumps core. This happens as soon as I type <SPC> to change
from the first (newsgroups) screen to the article-listing screen.
I am able to invoke slrn help or manipulate the list of newsgroups
without problem.

slrn dies in slrn_case_strncmp with args of 

  slrn_case_strncmp("", "Xref: ", 6);

The first string argument is of length 0, but slrn_case_strncmp()
is invoked with n=6. This may be the problem.

This version of slrn was built with 

		gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)

Here is the session with error messages and gdb output:

Selecting news.announce.newusers ...
Pid 12585 received a SIGSEGV for stack growth failure.
Possible causes: insufficient memory or swap space,
or stack size exceeded maxssiz.

Program received signal SIGSEGV, Segmentation fault.
slrn_case_strncmp (a=0x7b029ffd "", b=0x109d4 "Xref: ", n=6) at
/tool/pandora-src/slrn/slrn-0.9.5.7-hppa10/src/util.c:156
156             cha = UPPER_CASE(b[diff]);
(gdb) bt
#0  slrn_case_strncmp (a=0x7b029ffd "", b=0x109d4 "Xref: ", n=6) 
    at /tool/pandora-src/slrn/slrn-0.9.5.7-hppa10/src/util.c:156
#1  0x3ccbc in parse_xover_line (buf=0x7b029ffd "", xov=0x7b03a878) 
    at /tool/pandora-src/slrn/slrn-0.9.5.7-hppa10/src/xover.c:608
#2  0x3ce24 in slrn_read_xover (xov=0x7b03a878) 
    at /tool/pandora-src/slrn/slrn-0.9.5.7-hppa10/src/xover.c:650
#3  0x1d1c0 in get_headers (min=4280, max=4296, totalp=0x7b03a7c8) 
    at /tool/pandora-src/slrn/slrn-0.9.5.7-hppa10/src/art.c:5681
#4  0x1fd30 in slrn_select_article_mode (g=0x10b8, all=17, score=0) 
    at /tool/pandora-src/slrn/slrn-0.9.5.7-hppa10/src/art.c:7560
#5  0x23040 in slrn_group_select_group () 
    at /tool/pandora-src/slrn/slrn-0.9.5.7-hppa10/src/group.c:847
#6  0x23f74 in select_group_cmd () 
    at /tool/pandora-src/slrn/slrn-0.9.5.7-hppa10/src/group.c:1392
#7  0x389dc in slrn_do_keymap_key (map=0x4001d048) 
    at /tool/pandora-src/slrn/slrn-0.9.5.7-hppa10/src/slrn.c:1587
#8  0x38c8c in main (argc=1073759304, argv=0x4001c448) 
    at /tool/pandora-src/slrn/slrn-0.9.5.7-hppa10/src/slrn.c:1692


-- 
Quentin Fennessy			AMD, Austin Texas



Re: slrn core dumps on HP-UX 10.20
#51315
Author: Quentin Fennessy
Date: Tue, 31 Aug 1999 00:00
24 lines
1633 bytes
In article <slrn7so0f2.k6u.quentin@labodega.amd.com>, Quentin  Fennessy wrote:
>
>I recently installed slrn 0.9.5.7 in our corporate toolbox.
>I have working versions for Linux (RH6), Solaris 2.5.1, SunOS 4 and AIX 4.
>I built the same version of slrn on HP-UX 10.20 and did not see
>any compilation errors. (I used egcs 1.1.2)
>
>But when I run slrn 0.9.5.7 on HP-UX 10.20 the slrn process dies
>and dumps core. This happens as soon as I type <SPC> to change
>from the first (newsgroups) screen to the article-listing screen.
>I am able to invoke slrn help or manipulate the list of newsgroups
>without problem.

John Davis helped solve this one. Turns out that
src/util.c was miscompiled by egcs 1.1.2 when using -O2 optimization.
Once I recompiled src/util.c with just -g slrn 0.9.5.7 worked
fine for me.

-- 
Quentin Fennessy			AMD, Austin Texas



Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads