NNTPC: FTP problems, and nntpcache-1.0.6 on SparcLinux...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  Okay, I'm new here, so give me a moment's peace first... ;-)

  Two issue, but I managed to get nntpcache...

  1) ftp on 'suburbia.net' doesn't echo back anything if I try 'ls' or 'dir'
- I managed to guess the filename I was looking for, and when I tried 'get
nntpcache-1.0.6.tar.gz' it succeeded, but I was unable to do a 'ls' and get
a result anywhere...

  2) I'm trying to run nntpcache on a Sparc running SparcLinux.  I was able
to compile nntpcache with little/no difficulty, but after doing so, it would
crash with a SEGV while setting up the mmap.  Compiling identical source on
my Intel machine had no problems, but do to resource utilization, I can't
run nntpcache on it - I need to run it on my Sparc system.  Am I doing
something wrong, or is there something wrong with my SparcLinux system, or
is there a bug?  My system is an SUN SparcStation IPC with 12 megs of memory
(Yes, I know it's pathetic ;-) and is running RedHat Sparc/Linux 4.1.1
(Vandy, Jr.)

  Quoth my syslog: 
May 1 22:26:32 shark nntpcached[7464]: waiting for connections on
DEFAULT:119...
May  1 22:26:33 shark nntpcached[7464]: nntpcache.c:529:Bad file number:
mmap() attach to cache.mmap failed (probably corrupted...removing it and
trying again)
May  1 22:26:33 shark nntpcached[7464]: nntpcache.c:511:Bad file number:
re-creating cache.mmap
May  1 22:26:33 shark nntpcached[7464]: nntpcache.c:95:Bad file number:
SIGSEGV!

  At this point, it dies.  I've tried tracking down a bug in the code, but
my C experience is not the best - I have traced it to the specific line
that appears to be generating the SEGV...

  In file 'mmalloc/attach.c' (A standard GNU library?) Line numbers and
commentary provided.  ;-)

145: if ((mbase = mdp -> morecore (mdp, sizeof (mtemp) + initial_size)) != NULL)
146:   {
** Execution gets to this point okay...
147:     memcpy (mbase, mdp, sizeof (mtemp));
** nntpcached dies with a SIGSEGV before getting to this point...
148:     mdp = (struct mdesc *) mbase;
149:     mdp -> morecore (mdp, -initial_size);
150:    }

  Thanks lots!  Any help would be greatly appreciated.

      ___   ----------------------------------------------------------
     ' ) `\      Chirik  [The Squirrel]  --|--  chirik@castlefur.com
      /'  |_./<   Chirik's Homepage is still under construction :-(
     |   /'-.\`|
     `\ |/~\/>"   A squirrel's home is really a nutcracker's suite!
       `\\_<_  --[ Ascii by mustel ]----------------------------------
                  


[Index of Archives]     [Yosemite]     [Yosemite Campsites]     [Bugtraq]     [Linux]     [Trn]

Powered by Linux