Port-amiga archive

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

Re: What's the problem with gdb??



> 
> > hmm, try ulimit.
> >
> > root@atze(16)$ ulimit
> > unlimited
> 
> Try "ulimit -a" to get it to show anything useful. (I assume you're using
> bash since /bin/sh does not know ulimit).
> 
> -Olaf.
> --
> ___ Olaf 'Rhialto' Seibert      D787B44DFC896063 4CBB95A5BD1DAA96 
> \X/ There are no lemurs in this post    rhialto%polder.ubc.kun.nl@localhost
> 

You are right that I'm using bash, but I tried the same with /bin/sh
and csh as well (bin/sh has ulimit). 
Actually after I did the ulimit I went through all the options
manually and unlimited them.

before ulimit: (in bash)

root@atze(5)$ ulimit -a
core file size (blocks)  unlimited
data seg size (kbytes)   32768
file size (blocks)       unlimited
max memory size (kbytes) 14296
stack size (kbytes)      2048
cpu time (seconds)       unlimited
max user processes       80
pipe size (512 bytes)    1
open files               64
virtual memory (kbytes)  34816

after manually stepping through all the options of ulimit:

root@atze(37)$ ulimit -a
core file size (blocks)  unlimited
data seg size (kbytes)   32768
file size (blocks)       unlimited
max memory size (kbytes) 14296
stack size (kbytes)      32768
cpu time (seconds)       unlimited
max user processes       148
pipe size (512 bytes)    1
open files               548
virtual memory (kbytes)  65536


now the same in /bin/sh:

# ulimit -a
time(seconds)        unlimited
file(blocks)         unlimited
data(kbytes)         32768
stack(kbytes)        2048
coredump(blocks)     unlimited
memory(kbytes)       14296
locked memory(kbytes) 4765
process(processes)   80
nofiles(descriptors) 64

# ulimit -a
time(seconds)        unlimited
file(blocks)         unlimited
data(kbytes)         32768
stack(kbytes)        32768
coredump(blocks)     unlimited
memory(kbytes)       unlimited
locked memory(kbytes) 10000
process(processes)   148
nofiles(descriptors) 548


Well, the locked memory(kbytes) puzzled me a bit so I tried it with
the default value of 4765, changed it to 512 and then to 10000, but
the output of my gdb is always the same:

# gdb /src/build/postgres95/bin/postgres
GDB is free software and you are welcome to 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.
GDB 4.11 (m68k-netbsd), Copyright 1993 Free Software Foundation, Inc...
gdb: virtual memory exhausted: can't allocate 8622656 bytes.

in bash, /bin/sh and csh - with or without any ulimit changes.

Arthur.

__
Arthur Hoffmann                                 hoffmann%it.ntu.edu.au@localhost
========I need a Quantum LPS240 SCSI Hard disk: Dead or Alive=======
++++++++I need a SCSI Scanner - TWAIN compliant              +++++++



Home | Main Index | Thread Index | Old Index