Subject: Re: Not enough memory?
To: matthew green <mrg@eterna.com.au>
From: Jukka Marin <jmarin@pyy.jmp.fi>
List: current-users
Date: 08/21/1996 10:13:26
>    jmarin@pyy ~ %(238)/home/jmarin/app/applix
>    /home/jmarin/app/axdata/axmain: Not enough memory
> 
> the output of "ktrace applix" would be helpful here (with the size that
> someone else has meantioned).

Here you are:

jmarin@pyy ~ %(56)size /home/jmarin/app/axdata/axmain
text    data    bss     dec     hex
12402688        729088  460112  13591888        cf6550

jmarin@pyy ~ %(57)kdump
 25563 ktrace   RET   ktrace 0
 25563 ktrace   CALL  execve(0xf7fffa87,0xf7fffa08,0xf7fffa10)
 25563 ktrace   NAMI  "/home/jmarin/app/applix"
 25563 applix   EMUL  "sunos"
 25563 applix   RET   execve 0
 25563 applix   CALL  open(0x220c,0,0x2c060)
 25563 applix   NAMI  "/emul/sunos/usr/lib/ld.so"
 25563 applix   NAMI  "/emul/sunos"
 25563 applix   NAMI  "/emul/sunos/usr/lib/ld.so"
 25563 applix   RET   open 3
 25563 applix   CALL  read(0x3,0xf7fff98c,0x20)
 25563 applix   GIO   fd 3 read 32 bytes
       "\M^A\^C\^A\v\0\0\M^@\0\0\0 \0\0\0\0\0\0\0\0\0\0\0\0 \0\0\0\0\0\0\0\0"
 25563 applix   RET   read 32/0x20
 25563 applix   CALL  mmap(0,0xa000,0x5,0x80000002,0x3,0)
 25563 applix   RET   mmap 67305472/0x4030000
 25563 applix   CALL  mmap(0x4038000,0x2000,0x7,0x80000012,0x3,0x8000)
 25563 applix   RET   mmap 67338240/0x4038000
 25563 applix   CALL  open(0x221b,0,0x7)
 25563 applix   NAMI  "/emul/sunos/dev/zero"
 25563 applix   NAMI  "/emul/sunos"
 25563 applix   NAMI  "/emul/sunos/dev/zero"
 25563 applix   RET   open 4
 25563 applix   CALL  getrlimit(0x3,0xf7fff800)
 25563 applix   RET   getrlimit 0
 25563 applix   CALL  mmap(0xf4000000,0x2000,0x3,0x80000012,0x4,0)
 25563 applix   RET   mmap -201326592/0xf4000000
 25563 applix   CALL  close(0x3)
 25563 applix   RET   close 0
 25563 applix   CALL  getuid
 25563 applix   RET   getuid 201/0xc9
 25563 applix   CALL  getgid
 25563 applix   RET   getgid 200/0xc8
 25563 applix   CALL  open(0x4038a18,0,0)
 25563 applix   NAMI  "/emul/sunos/etc/ld.so.cache"
 25563 applix   NAMI  "/emul/sunos"
 25563 applix   NAMI  "/emul/sunos/etc/ld.so.cache"
 25563 applix   RET   open 3
 25563 applix   CALL  fstat(0x3,0xf7fff6a0)
 25563 applix   RET   fstat 0
 25563 applix   CALL  mmap(0,0x1000,0x1,0x80000001,0x3,0)
 25563 applix   RET   mmap 67371008/0x4040000
 25563 applix   CALL  close(0x3)
 25563 applix   RET   close 0
 25563 applix   CALL  open(0x40401e8,0,0x2b97c)
 25563 applix   NAMI  "/emul/sunos/usr/lib/libdl.so.1.0"
 25563 applix   NAMI  "/emul/sunos"
 25563 applix   NAMI  "/emul/sunos/usr/lib/libdl.so.1.0"
 25563 applix   RET   open 3
 25563 applix   CALL  read(0x3,0xf7fff7e8,0x20)
 25563 applix   GIO   fd 3 read 32 bytes
       "\M^A\^C\^A\v\0\0 \0\0\0 \0\0\0\0\0\0\0\0\M^D\0\0\0 \0\0\0\0\0\0\0\0"
 25563 applix   RET   read 32/0x20
 25563 applix   CALL  mmap(0,0x400c,0x5,0x80000002,0x3,0)
 25563 applix   RET   mmap 67436544/0x4050000
 25563 applix   CALL  mmap(0x4052000,0x2000,0x7,0x80000012,0x3,0x2000)
 25563 applix   RET   mmap 67444736/0x4052000
 25563 applix   CALL  close(0x3)
 25563 applix   RET   close 0
 25563 applix   CALL  open(0x40401b8,0,0x2b98c)
 25563 applix   NAMI  "/emul/sunos/usr/lib/libc.so.1.9.1"
 25563 applix   NAMI  "/emul/sunos"
 25563 applix   NAMI  "/emul/sunos/usr/lib/libc.so.1.9.1"
 25563 applix   RET   open 3
 25563 applix   CALL  read(0x3,0xf7fff7e8,0x20)
 25563 applix   GIO   fd 3 read 32 bytes
       "\M^A\^C\^A\v\0\a \0\0\0`\0\0\0\^A\M-(\0\0vh\0\0\0 \0\0\0\0\0\0\0\0"
 25563 applix   RET   read 32/0x20
 25563 applix   CALL  mmap(0,0x781a8,0x5,0x80000002,0x3,0)
 25563 applix   RET   mmap 67502080/0x4060000
 25563 applix   CALL  mmap(0x40d2000,0x6000,0x7,0x80000012,0x3,0x72000)
 25563 applix   RET   mmap 67969024/0x40d2000
 25563 applix   CALL  mmap(0x40d8000,0x1a8,0x7,0x80000012,0x4,0)
 25563 applix   RET   mmap 67993600/0x40d8000
 25563 applix   CALL  close(0x3)
 25563 applix   RET   close 0
 25563 applix   CALL  close(0x4)
 25563 applix   RET   close 0
 25563 applix   CALL  getpagesize
 25563 applix   RET   getpagesize 4096/0x1000
 25563 applix   CALL  break(0x3c0d0)
 25563 applix   RET   break 0
 25563 applix   CALL  break(0x3d0d0)
 25563 applix   RET   break 0
 25563 applix   CALL  sigblock(0x2)
 25563 applix   RET   sigblock 0
 25563 applix   CALL  sigvec(0x2,0xf7fff39c,0xf7fff390)
 25563 applix   RET   sigvec 0
 25563 applix   CALL  sigvec(0x2,0xf7fff324,0)
 25563 applix   RET   sigvec 0
 25563 applix   CALL  sigsetmask(0)
 25563 applix   RET   sigsetmask 2
 25563 applix   CALL  sigblock(0)
 25563 applix   RET   sigblock 0
 25563 applix   CALL  sigstack(0,0xf7fff39c)
 25563 applix   RET   sigstack 0
 25563 applix   CALL  stat(0xf7ffdaf8,0xf7ffdab8)
 25563 applix   NAMI  "./"
 25563 applix   RET   stat 0
 25563 applix   CALL  stat(0x2e507,0xf7ffda78)
 25563 applix   NAMI  "/emul/sunos/"
 25563 applix   NAMI  "/emul/sunos"
 25563 applix   NAMI  "/"
 25563 applix   RET   stat 0
 25563 applix   CALL  open(0xf7ffdaf8,0x4,0)
 25563 applix   NAMI  "./../"
 25563 applix   RET   open 3
 25563 applix   CALL  fstat(0x3,0xf7ffd5d8)
 25563 applix   RET   fstat 0
 25563 applix   CALL  break(0x400d0)
 25563 applix   RET   break 0
 25563 applix   CALL  fcntl(0x3,0x2,0x1)
 25563 applix   RET   fcntl 0
 25563 applix   CALL  fstat(0x3,0xf7ffdab8)
 25563 applix   RET   fstat 0
 25563 applix   CALL  getdents(0x3,0x3c648,0x2000)
 25563 applix   RET   getdents 168/0xa8
 25563 applix   CALL  close(0x3)
 25563 applix   RET   close 0
 25563 applix   CALL  open(0xf7ffdaf8,0x4,0)
 25563 applix   NAMI  "./../../"
 25563 applix   RET   open 3
 25563 applix   CALL  fstat(0x3,0xf7ffd5d8)
 25563 applix   RET   fstat 0
 25563 applix   CALL  fcntl(0x3,0x2,0x1)
 25563 applix   RET   fcntl 0
 25563 applix   CALL  fstat(0x3,0xf7ffdab8)
 25563 applix   RET   fstat 0
 25563 applix   CALL  open(0x2e57f,0,0x1b6)
 25563 applix   NAMI  "/emul/sunos/etc/mtab"
 25563 applix   NAMI  "/etc/mtab"
 25563 applix   RET   open -1 errno 2 No such file or directory
 25563 applix   CALL  getdents(0x3,0x3c648,0x2000)
 25563 applix   RET   getdents 616/0x268
 25563 applix   CALL  lstat(0xf7ffdaf8,0xf7ffda78)
 25563 applix   NAMI  "./../../."
 25563 applix   RET   lstat 0
 25563 applix   CALL  lstat(0xf7ffdaf8,0xf7ffda78)
 25563 applix   NAMI  "./../../.."
 25563 applix   RET   lstat 0
 25563 applix   CALL  lstat(0xf7ffdaf8,0xf7ffda78)
 25563 applix   NAMI  "./../../lost+found"
 25563 applix   RET   lstat 0
 25563 applix   CALL  lstat(0xf7ffdaf8,0xf7ffda78)
 25563 applix   NAMI  "./../../a"
 25563 applix   RET   lstat 0
 25563 applix   CALL  lstat(0xf7ffdaf8,0xf7ffda78)
 25563 applix   NAMI  "./../../altroot"
 25563 applix   RET   lstat 0
 25563 applix   CALL  lstat(0xf7ffdaf8,0xf7ffda78)
 25563 applix   NAMI  "./../../bin"
 25563 applix   RET   lstat 0
 25563 applix   CALL  lstat(0xf7ffdaf8,0xf7ffda78)
 25563 applix   NAMI  "./../../dev"
 25563 applix   RET   lstat 0
 25563 applix   CALL  lstat(0xf7ffdaf8,0xf7ffda78)
 25563 applix   NAMI  "./../../etc"
 25563 applix   RET   lstat 0
 25563 applix   CALL  lstat(0xf7ffdaf8,0xf7ffda78)
 25563 applix   NAMI  "./../../home"
 25563 applix   RET   lstat 0
 25563 applix   CALL  close(0x3)
 25563 applix   RET   close 0
 25563 applix   CALL  open(0xf7ffdaf8,0x4,0)
 25563 applix   NAMI  "./../../../"
 25563 applix   RET   open 3
 25563 applix   CALL  fstat(0x3,0xf7ffd5d8)
 25563 applix   RET   fstat 0
 25563 applix   CALL  fcntl(0x3,0x2,0x1)
 25563 applix   RET   fcntl 0
 25563 applix   CALL  fstat(0x3,0xf7ffdab8)
 25563 applix   RET   fstat 0
 25563 applix   CALL  close(0x3)
 25563 applix   RET   close 0
 25563 applix   CALL  readlink(0xf7ffe75c,0xf7ffd624,0x401)
 25563 applix   NAMI  "/home"
 25563 applix   RET   readlink -1 errno 22 Invalid argument
 25563 applix   CALL  readlink(0xf7ffe75c,0xf7ffd624,0x401)
 25563 applix   NAMI  "/home/jmarin"
 25563 applix   RET   readlink -1 errno 22 Invalid argument
 25563 applix   CALL  readlink(0xf7ffe75c,0xf7ffd624,0x401)
 25563 applix   NAMI  "/home/jmarin/app"
 25563 applix   RET   readlink -1 errno 22 Invalid argument
 25563 applix   CALL  readlink(0xf7ffe75c,0xf7ffd624,0x401)
 25563 applix   NAMI  "/home/jmarin/app/applix"
 25563 applix   RET   readlink -1 errno 22 Invalid argument
 25563 applix   CALL  socket(0x1,0x1,0)
 25563 applix   RET   socket 3
 25563 applix   CALL  connect(0x3,0x39c40,0x6e)
 25563 applix   NAMI  "/tmp/.axnetipc"
 25563 applix   RET   connect 0
 25563 applix   CALL  getuid
 25563 applix   RET   getuid 201/0xc9
 25563 applix   CALL  getdomainname(0xf7ffb978,0x100)
 25563 applix   RET   getdomainname 0
 25563 applix   CALL  open(0x2e231,0,0x1b6)
 25563 applix   NAMI  "/emul/sunos/etc/passwd"
 25563 applix   NAMI  "/etc/passwd"
 25563 applix   RET   open 4
 25563 applix   CALL  ioctl(0x4,0x40125401 ,0xf7ffb9c4)
 25563 applix   RET   ioctl -1 errno 25 Inappropriate ioctl for device
 25563 applix   CALL  fstat(0x4,0xf7ffba38)
 25563 applix   RET   fstat 0
 25563 applix   CALL  read(0x4,0x3cc18,0x2000)
 25563 applix   GIO   fd 4 read 814 bytes

<<<<<<contents of passwd file deleted>>>>>>

 25563 applix   RET   read 814/0x32e
 25563 applix   CALL  close(0x4)
 25563 applix   RET   close 0
 25563 applix   CALL  getuid
 25563 applix   RET   getuid 201/0xc9
 25563 applix   CALL  write(0x3,0x3cc18,0x44)
 25563 applix   GIO   fd 3 wrote 68 bytes
       "\0\0\0@\0\0\0\^D\0\0\0\^B\0\0\0\^A\0\0\0\^A\0\0\0\^D\0\0\0\^B\0\0\0\^B\
	\0\0\0\^Xaxmain:jmarin:ahven:0.0\0\0\0\0\^A\0\0\0\0"
 25563 applix   RET   write 68/0x44
 25563 applix   CALL  read(0x3,0xf7ffbfb4,0x4)
 25563 applix   GIO   fd 3 read 4 bytes
       "\0\0\0\^X"
 25563 applix   RET   read 4
 25563 applix   CALL  read(0x3,0x3c1c0,0x18)
 25563 applix   GIO   fd 3 read 24 bytes
       "\0\0\0\^D\0\0\0\^B\0\0\0\^A\0\0\0\0\0\0\0\^A\0\0\0\0"
 25563 applix   RET   read 24/0x18
 25563 applix   CALL  shutdown(0x3,0x2)
 25563 applix   RET   shutdown 0
 25563 applix   CALL  close(0x3)
 25563 applix   RET   close 0
 25563 applix   CALL  open(0x38a04,0xa01,0x180)
 25563 applix   NAMI  "/emul/sunos/tmp/axlc9.1082218758"
 25563 applix   NAMI  "/tmp/axlc9.1082218758"
 25563 applix   RET   open 3
 25563 applix   CALL  pipe
 25563 applix   RET   pipe 4
 25563 applix   CALL  pipe
 25563 applix   RET   pipe 6
 25563 applix   CALL  getpid
 25563 applix   RET   getpid 25563/0x63db
 25563 applix   CALL  getuid
 25563 applix   RET   getuid 201/0xc9
 25563 applix   CALL  fork
 25563 applix   RET   fork 25564/0x63dc
 25563 applix   CALL  wait4(0,0xf7ff889c,0,0)
 25563 applix   RET   wait4 25564/0x63dc
 25563 applix   CALL  ioctl(0x1,0x40125401 ,0xf7ffb48c)
 25563 applix   RET   ioctl 0
 25563 applix   CALL  write(0x1,0x3cc18,0x32)
 25563 applix   GIO   fd 1 wrote 50 bytes
       "/home/jmarin/app/axdata/axmain: Not enough memory
       "
 25563 applix   RET   write 50/0x32
 25563 applix   CALL  close(0x3)
 25563 applix   RET   close 0
 25563 applix   CALL  unlink(0x38a04)
 25563 applix   NAMI  "/tmp/axlc9.1082218758"
 25563 applix   RET   unlink 0
 25563 applix   CALL  close(0)
 25563 applix   RET   close 0
 25563 applix   CALL  close(0x1)
 25563 applix   RET   close 0
 25563 applix   CALL  close(0x2)
 25563 applix   RET   close 0
 25563 applix   CALL  exit(0xc)


I'll be getting more RAM soon - I hope that will help.  Someone mentioned
that the streams emulation has bugs which keep applix from running - urgh. :(

  -jm

-- 

                     ---> http://www.jmp.fi/~jmarin/ <---