Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 May 2002 10:00:45 +1200
From:      Richard Mahoney <rbm49@ext.canterbury.ac.nz>
To:        Subscribers to FreeBSD-Questions <freebsd-questions@freebsd.org>
Subject:   Perl - core dump | Make - Cannot fork
Message-ID:  <20020510220045.GA34209@ext.canterbury.ac.nz>

next in thread | raw e-mail | index | archive | help
Dear all,

Since my ports cvsup run last night I've been having problems with
`perl' and `make'. I'm at a loss as to the issue so will give general
details first.

FreeBSD 4.5-RELEASE
1G PIII, 256M physical, 700M swap, ASUS CUV4X-E

This is my cvsup script:

############################################################
#!/bin/sh
#
# update_ports
#
/usr/sbin/ppp -background comnet &&
/usr/local/sbin/portsclean -CD &&
/usr/local/bin/cvsup -g -L 2 /usr/home/rbm49/.ports-supfile &&
/usr/local/sbin/portsdb -U &&
/usr/local/sbin/portsdb -u &&
/usr/sbin/pkg_version -v | /usr/bin/grep needs | /usr/bin/mail \
 -s "Ports that need updating" rbm49@localhost && exit 0
exit 2
############################################################

All my problems initially seem to have centred around `portsdb' and
`portupgrade'.

a) Running:

 /usr/local/sbin/portsdb -U 

leads to a huge wait, lots of memory used by `perl' and then:

 [snip]
 
Out of memory!
 Attempt to free unreferenced scalar at Tools/make_index \
  line 45, <> chunk 6890.

 [snip]

 Segmentation fault - core dumped
 failed to generate INDEX!
 portsdb: index generation error

The comment in /var/log/messages is:

 May 11 09:03:42 rbm49 /kernel: pid 48017 (perl), uid 0: exited \
  on signal 11 (core dumped)


b) Another -- related? -- problem is that I can no longer run
   `make' efficiently, either through `portupgrade' or alone.

Typical is the following:

rbm49# make clean
Cannot fork: Resource temporarily unavailable
Cannot fork: Resource temporarily unavailable
===>  Cleaning for libiconv-1.7_4
===>  Cleaning for autoconf213-2.13.000227_1
===>  Cleaning for automake14-1.4.5
===>  Cleaning for bison-1.35_1
===>  Cleaning for gettext-0.11.1_3
===>  Cleaning for gmake-3.79.1_1
===>  Cleaning for libtool-1.3.4_3
===>  Cleaning for m4-1.4_1
===>  Cleaning for expat-1.95.2
===>  Cleaning for mutt-devel-1.3.99_1
rbm49# 

The corresponding message in /var/log/messages is:

 May 11 08:10:23 rbm49 /kernel: proc: table is full
 May 11 08:10:23 rbm49 /kernel: proc: table is full


Does anyone know the reason for all this? It is irritating to say the
least.


Many regards,

 Richard Mahoney


-- 
+--------------------------------------------------------------+
Richard Mahoney                mailto:rbm49@ext.canterbury.ac.nz
78 Jeffreys Road                        telephone:+64-3-351-5831
Christchurch New Zealand                 cellular:+64-25-829-986
+--------------------------------------------------------------+

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020510220045.GA34209>