Subject says it all,
here are some logs from building nasm

[...]
cd doc; make all
mkdir -p html
perl /home/tobiasu/tmp/obj/nasm-0.98.38p0/nasm-0.98.38/doc/rdsrc.pl < 
/home/tobiasu/tmp/obj/nasm-0.98.38p0/nasm-0.98.38/doc/nasmdoc.src
Reading input...perl in malloc(): error: allocation failed
Abort trap (core dumped) 
*** Error code 134

Stop in /home/tobiasu/tmp/obj/nasm-0.98.38p0/build-i386/doc (line 33 of 
Makefile).
*** Error code 1

Stop in /home/tobiasu/tmp/obj/nasm-0.98.38p0/build-i386 (line 60 of Makefile).
*** Error code 1

Stop in /usr/ports/devel/nasm (line 1960 of 
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/devel/nasm (line 1315 of 
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/devel/nasm (line 1756 of 
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/devel/nasm (line 2076 of 
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/archivers/ucl (line 1436 of 
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/archivers/ucl (line 1785 of 
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/archivers/ucl (line 1315 of 
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/archivers/ucl (line 1756 of 
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/archivers (line 103 of 
/usr/ports/infrastructure/mk/bsd.port.subdir.mk).
*** Error code 1

Stop in /usr/ports (line 103 of 
/usr/ports/infrastructure/mk/bsd.port.subdir.mk).
$

$ gdb /usr/bin/perl 
/home/tobiasu/tmp/obj/nasm-0.98.38p0/build-i386/doc/perl.core         GNU gdb 
6.3                                                                             
  
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-unknown-openbsd4.0"...(no debugging symbols 
found)

Core was generated by `perl'.
Program terminated with signal 6, Aborted.
Reading symbols from /usr/lib/libperl.so.10.1...done.
Loaded symbols for /usr/lib/libperl.so.10.1
Reading symbols from /usr/lib/libm.so.2.3...done.
Loaded symbols for /usr/lib/libm.so.2.3
Reading symbols from /usr/lib/libutil.so.11.0...done.
Loaded symbols for /usr/lib/libutil.so.11.0
Reading symbols from /usr/lib/libc.so.39.3...done.
Loaded symbols for /usr/lib/libc.so.39.3
Reading symbols from /usr/libexec/ld.so...done.
Loaded symbols for /usr/libexec/ld.so
#0  0x024ea975 in kill () from /usr/lib/libc.so.39.3
(gdb) bt full
#0  0x024ea975 in kill () from /usr/lib/libc.so.39.3
No symbol table info available.
#1  0x0252325b in abort () at /usr/src/lib/libc/stdlib/abort.c:65
        p = (struct atexit *) 0x85f88000
        cleanup_called = 1
        mask = 4294967263
#2  0x0250a5d9 in wrterror (p=0x224b923a "allocation failed")
    at /usr/src/lib/libc/stdlib/malloc.c:434
        q = 0x224ba4f9 " error: "
        iov = {{iov_base = 0x3c003520, iov_len = 4}, {iov_base = 0x224b92a9, 
    iov_len = 13}, {iov_base = 0x224ba4f9, iov_len = 8}, {iov_base = 
0x224b923a, 
    iov_len = 17}, {iov_base = 0x224b1f97, iov_len = 1}}
#3  0x0250b1e3 in imalloc (size=4096) at /usr/src/lib/libc/stdlib/malloc.c:1178
        result = (void *) 0x0
        ptralloc = 1
#4  0x0250b7a0 in malloc (size=4) at /usr/src/lib/libc/stdlib/malloc.c:1814
        r = (void *) 0x0
#5  0x019ecaeb in Perl_safesysmalloc (size=4) at 
/usr/src/gnu/usr.bin/perl/util.c:78
No locals.
#6  0x019d8519 in Perl_sv_grow (sv=0x8e77a29c, newlen=4)
    at /usr/src/gnu/usr.bin/perl/sv.c:1669
        s = 0x0
#7  0x019db5e5 in Perl_sv_setsv_flags (dstr=0x8e77a29c, sstr=0x88a70d44, 
flags=2)
    at /usr/src/gnu/usr.bin/perl/sv.c:4087
        len = 2
        dtype = 0
        stype = 2
#8  0x01a474e3 in Perl_pp_push () at /usr/src/gnu/usr.bin/perl/pp.c:4348
        sv = (SV * const) 0x8e77a29c
        sp = (SV **) 0x8511de0c
        mark = (SV **) 0x8511de0c
        targ = (SV *) 0x88a70d5c
        ary = (AV *) 0x8e77a26c
        mg = (const MAGIC * const) 0x0
#9  0x01a225b9 in Perl_runops_standard () at /usr/src/gnu/usr.bin/perl/run.c:37
No locals.
#10 0x01a085df in S_run_body (oldscope=1) at 
/usr/src/gnu/usr.bin/perl/perl.c:2368
No locals.
#11 0x01a08533 in perl_run (my_perl=0x84272b90) at 
/usr/src/gnu/usr.bin/perl/perl.c:2285
        oldscope = 1
        ret = 0
        cur_env = {je_prev = 0x219cd740, je_buf = {27296486, 563915896, 
-813760532, 
    -813760408, -813760264, -813760340, -813760348, 0, -1996406588, 160, 39}, 
  je_ret = 0, je_mustcatch = 0 '\0'}
#12 0x1c0012a6 in main ()
No symbol table info available.
(gdb) 

used malloc options:
# ln -sf 'AFGJP' malloc.conf

it's possible to reduce this to:
# ln -sf 'AGP' malloc.conf
or
# ln -sf 'GP' malloc.conf
errormessage changes a bit then (of course) -> Reading input...Out of memory!

it works fine if i remove either one of these options.

some misc info
Memory: Real: 89M/167M act/tot  Free: 331M  Swap: 0K/256M used/tot
4.0 GENERIC#1136 i386
-current ports tree

Tobias

Reply via email to