JAVA 1.0.2 VM - Unmapped Memory Exceptions - STILL

JAVA 1.0.2 VM - Unmapped Memory Exceptions - STILL

Post by Rick Matejk » Tue, 12 Aug 1997 04:00:00



Hi,
If anyone has ANY ideas as to what I could be doing in a JAVA 1.0.2
application which would cause unmapped memory exceptions in the VM, please
let me know. I'm all out of ideas and looking for any suggestions of what
to try next. Here's the scenario:

I have a JAVA application (and an applet version) that runs fine on my
604e200 at work. When I bring the same project to my 604e200 at home, I
consistently get unmapped memory exceptions in the VM. They are always in
teh same place in the VM and it appears it is when it is trying to call
System.arrayCopy. I've tried running in MWDebug but the actual place the
crash occurs varies. All I can tell is that it appears to be related to teh
allocation of memory.

The only difference between the two machines is the amount of RAM. The
machine at work has 64M while my machine at home only 24M.

I've done a clean install of 7.6 followed by a clean install of CodeWarrior
Pro but the results are still the same. Here's a short MacsBug trace of the
crash:

 Calling chain using A6/R1 links
  Back chain  ISA  Caller
  02220750    PPC  03133C60  DoCleanupThreads+00AD4
  02220700    PPC  037AF598  LThread::DoEntry(void*)+00038
  022206A0    PPC  037AC800  LmacosThread::Run()+0003C
  02220540    PPC  039558E8  java_lang_System_arraycopy+0033C
  022204E0    PPC  0395A9F0  execute_java_dynamic_method+00038
  022204A0    PPC  0395B284  do_execute_java_method_vararg+004D8
  022203E0    PPC  0395E764  do_execute_java_method_vararg+039B8
  02220290    PPC  0394A6D0  ArrayAlloc+00060
 Return addresses on the stack
  Stack Addr  Frame Addr   ISA   Caller
   02220578                PPC   037AC994
LmacosThread::SwapContext(unsigned char)+00058
   02220548                PPC   037AC800 LmacosThread::Run()+0003C
   022204E8    022204E0    PPC   039558E8 java_lang_System_arraycopy+0033C
   022204A8    022204A0    PPC   0395A9F0 execute_java_dynamic_method+00038
   0222041C                PPC   81817AD8
   022203E8    022203E0    PPC   0395B284
do_execute_java_method_vararg+004D8
   02220358    02220350    PPC   FFD75214 NewPtr+00028
   02220348    02220340    PPC   03133E10 DoCleanupThreads+00C84
   02220318    02220310    PPC   002DB350
   02220312                PPC   03503FFC HandleGetURL+AC5F4
   022202F8    022202F0    PPC   031342C0 DoCleanupThreads+01134
   02220298    02220290    PPC   0395E764
do_execute_java_method_vararg+039B8
   02220258    02220250    PPC   0394A6D0 ArrayAlloc+00060
   02220218    02220210    PPC   037AB324 sysMonitorExit+0002C
   02220208    02220200    PPC   03951838
Java_java_io_FileInputStream_open_stub+0001C
   022201F8    022201F0    PPC   0394A734 ObjAlloc+00030
   022201E8    022201E0    PPC   0394A288 exceptionDescribe+00910
   022201E2                68K   02500220

I'm all out of ideas and would appreciate any suggestions anyone has. If
anyone on the Metrowerks JAVA team could give me some hints as to what
could cause this type of crash, I would really appreciate it.

Thanks,
Rick Matejka
Software Engineer
Vertex Software

 
 
 

JAVA 1.0.2 VM - Unmapped Memory Exceptions - STILL

Post by MW R » Wed, 13 Aug 1997 04:00:00




>Hi,
>If anyone has ANY ideas as to what I could be doing in a JAVA 1.0.2
---%- Snip -%---

>I have a JAVA application (and an applet version) that runs fine on my
>604e200 at work. When I bring the same project to my 604e200 at home, I
>consistently get unmapped memory exceptions in the VM.  

Here is what I got from support and the java team.  If this does it on one
machine and not the other it is indicative of system extension conflicts,
you should try it bare bones essential only and see if that works then add
some back in and see if you can find one particular extension.  If it
doesn't work with all non essential extensions off or if you do narrow it
down to one extension please send in a bug report.

It could be a bug in your program or in the codegen or anything. memory
allocation problems almost always show up as a result of an error not when
the error occurs so they are hard to trace.  

All I can say is send this into support provide some example code that
demonstrates it (better yet a project) and in your bug report put all
relevant information that you can think of.

--
     METROWERKS                                   Ron Liechty


 
 
 

1. Unmapped Memory Exception

Unmapped Memory Exception?  I keep getting this error in my program.  What my
program does is create data files and then saves them.  It's like a database,
it allows you to load multiple data files and do searches on them.  I can load
some of the data files, but If I try to load to many, I get this error.  I
don't know what it means or how to even narrow it down.

Any help is appreciated
Jerry Evanoff

2. Rconsole problem

3. Possible causes of Unmapped Memory Exceptions?

4. FS: SCSI-2 AND SCSI HARD DRIVES

5. unmapped memory exception

6. IRIX 5.3 on old Indigo

7. unmapped memory exception?

8. Recognizing those UCEs with random insertions?

9. why is this code causing an unmapped memory exception?

10. Unmapped memory exception occurs when calling one method, but not the other

11. ERROR: unmapped memory exception

12. unmapped memory exception, only when debugger running fast

13. Unmapped memory exception w. no local variables