MOO-cows Mailing List Archive


out of memory panics with increasing frequency

We're getting out of memory panics with increasing frequency.
Pavel, as you suggested, we upgraded to 1.8.  (It seems fast
and some of the new features are great!)  However, it crashed 
during the first checkpoint, and failed to save to disk:

Jun 10 19:12:45: CHECKPOINTING on ...
Jun 10 19:12:45: CHECKPOINTING: Writing 1203 objects...
Jun 10 19:13:33: CHECKPOINTING: Done writing 1203 objects...
Jun 10 19:13:33: CHECKPOINTING: Writing 2978 MOO verb programs...
Jun 10 19:13:56: *** PANIC (in child): memory allocation (size 81920) failed!
Jun 10 19:13:56: *** Child shutting down parent via USR1 signal
Jun 10 19:13:56: SHUTDOWN: shutdown signal received
Jun 10 19:13:57: DUMPING on ...
Jun 10 19:13:57: DUMPING: Writing 1203 objects...
Jun 10 19:14:42: DUMPING: Done writing 1203 objects...
Jun 10 19:14:42: DUMPING: Writing 2978 MOO verb programs...
Jun 10 19:14:47: *** PANIC: memory allocation (size 163840) failed!
Jun 10 19:14:47: PANIC-DUMPING on ...
Jun 10 19:14:47: PANIC-DUMPING: Writing 1203 objects...
Jun 10 19:15:33: PANIC-DUMPING: Done writing 1203 objects...
Jun 10 19:15:33: PANIC-DUMPING: Writing 2978 MOO verb programs...
Jun 10 19:15:33: *** PANIC: memory allocation (size 32) failed!
Jun 10 19:15:33: *** RECURSIVE PANIC: aborting

Here is the output from the core file:

  1 raise(0x6, 0x2, 0x14800ef20, 0x9, 0x14000b550) ["../../../../../src/usr/ccs/lib/libc/raise.c":87, 0x3ff8011bbe0]
   2 abort(0x14, 0x0, 0x140004ad0, 0x0, 0x0) ["../../../../../src/usr/ccs/lib/libc/abort.c":131, 0x3ff8010a050]
   3 abort_server(0x140004ad0, 0x0, 0x0, 0x0, 0x120040ad4) ["server.c":204, 0x120040a3c]
   4 panic(0x0, 0x0, 0x120040ad4, 0x5, 0x1200459b0) ["server.c":215, 0x120040ad0]
   5 mymalloc(0x100000020, 0x1, 0x2a0, 0x202c7269612d640a, 0x12000b568) ["storage.c":50, 0x1200459ac]
   6 allocate(0x20, 0x1, 0x12000b7e4, 0x1479e3da0, 0x12000b890) ["ast.c":78, 0x12000b5ac]
   7 alloc_expr(0x2, 0x0, 0x1479e3d80, 0x1, 0x20656b696c20756f) ["ast.c":164, 0x12000b88c]
   8 alloc_binary(0x11fffde50, 0x14800e7a0, 0x14800e7d0, 0x23202c3931382320, 0x120017e04) ["ast.c":182, 0x12000b910]
   9 decompile(0x101010101, 0x1479e4100, 0x4000000cd, 0x100000000, 0x1479e41cd) ["decompile.c":384, 0x120017e14]
  10 program_to_tree(0x1479903c0, 0xffffffffffffffff, 0x12001164c, 0x3ffc00804a0, 0x3ffc0080510) ["decompile.c":841, 0x120019f74]
  11 decompile_program(0x12001164c, 0x3ffc00804a0, 0x3ffc0080510, 0x11fffe2c0, 0x12004dd28) ["decompile.c":852, 0x120019fdc]
  12 unparse_program(0x1479e5960, 0x1200118c0, 0x0, 0x1, 0x0) ["unparse.c":663, 0x12004dd24]
  13 dbio_write_program(0x0, 0x1, 0x0, 0x0, 0x120010180) ["db_io.c":393, 0x12001192c]
  14 write_db_file(0x14800ea80, 0x140020820, 0x4, 0x64, 0x0) ["db_file.c":518, 0x12001017c]
  15 dump_database(0x18a7, 0x10, 0x14000b550, 0x14800e9c0, 0x14800d7e0) ["db_file.c":586, 0x120010578]
  16 db_flush(0x14000b550, 0x14800e9c0, 0x14800d7e0, 0x3, 0x120040b90) ["db_file.c":697, 0x120010994]
  17 panic(0x14800d7e0, 0x3, 0x120040b90, 0x6, 0x1200459b0) ["server.c":230, 0x120040b8c]
  18 mymalloc(0x100028000, 0x0, 0x100000020, 0x1, 0x12003c470) ["storage.c":50, 0x1200459ac]
  19 allocate(0x18, 0x1, 0x20, 0x1, 0x15) ["ast.c":69, 0x12000b454]
  20 alloc_arg_list(0x0, 0x14800d7b0, 0x100000002, 0x147fe3205, 0x1200185cc) ["ast.c":203, 0x12000b9c0]
  21 decompile(0x101010102, 0x147ed6000, 0x12000018c0, 0x0, 0x147ed78a4) ["decompile.c":496, 0x1200185d8]
  22 decompile(0x101010102, 0x147ed6000, 0x12000018c0, 0x0, 0x147ed78b9) ["decompile.c":180, 0x120016bf4]
  23 decompile(0x101010102, 0x147ed6000, 0x12000018c0, 0x100000000, 0x147ed78c0) ["decompile.c":185, 0x120016c98]
  24 program_to_tree(0x12001164c, 0xffffffffffffffff, 0x12001164c, 0x144f21100, 0x3ffc00804d8) ["decompile.c":841, 0x120019f74]
  25 decompile_program(0x12001164c, 0x144f21100, 0x3ffc00804d8, 0x8, 0x12004dd28) ["decompile.c":852, 0x120019fdc]
More (n if no)?
 26 unparse_program(0x147ece540, 0x1200118c0, 0x0, 0x1, 0x0) ["unparse.c":663, 0x12004dd24]
  27 dbio_write_program(0x0, 0x1, 0x0, 0x147f888cc, 0x120010180) ["db_io.c":393, 0x12001192c]
  28 write_db_file(0x147f53900, 0x140020820, 0x4, 0x140013874, 0x0) ["db_file.c":518, 0x12001017c]
  29 dump_database(0x140000318, 0x0, 0x140023090, 0x1, 0x140006dc8) ["db_file.c":586, 0x120010578]
  30 db_shutdown(0x140023090, 0x1, 0x140006dc8, 0x14001da50, 0x120043d38) ["db_file.c":719, 0x120010a44]
  31 main(0x0, 0x11ffffae0, 0x12000b25c, 0x12000b1b0, 0x3ff00000000) ["server.c":1289, 0x120043d34]

Our db is only 27 Mb:
-rw-r--r--   1 moose    system   27131571 Jun 10 16:12 moose.db

Here's our memory:
Memory: Real: 10M/184M act/tot  Virtual: 11M/654M use/tot  Free: 152M

We're running:
OSF1 V3.2 17 alpha

On a:
 AlphaStation 250 4/266 system

All help appreciated!

-- Amy

Home | Subject Index | Thread Index