To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 895
894  |  896
Subject: 
Re: malloc() bug found -- BAD MEMORY REGION :-(
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Fri, 3 Mar 2000 20:54:55 GMT
Viewed: 
1318 times
  
In lugnet.robotics.rcx.legos, Martin Cornelius writes:
Martin Cornelius wrote:
i'll go ahead now and check if this fixes my mysterious hangups.

made some tests, and - Yep, it works ! I'd strongly encourage everybody
experiencing strange hangups to apply the little fix to mm_init() i
suggested. For me, it makes malloc() and dll work perfectly.


I'm afraid this made no difference for me. I still get dll crashes. My
particular symptom is that if I make a 1 line change to legOS then download it,
it crashes straight away at the next dll. Even if I undo the change, then
rebuild & download legOS, it still crashes. I have one working copy of
legOS.srec which I'm gaurding carefully!

I ran a write/read test on all the memory regions malloc uses, and they all
passed. I've tried to track the problem down with cputw(). As far as I can
tell, the lnp interrupt routine (lnp_integrity_byte) gets called and returns
exactly once. I don't know what happens after that. Maybe the stacks not been
setup so it doesn't return from the interrupt routine? Maybe its getting
corrupted? Where is the stack setup & initialised? Any clues as to what next?

Any suggestions appreciated. Maybe then I can get on with the gdb stub!



Message has 1 Reply:
  Re: malloc() bug found -- BAD MEMORY REGION :-(
 
(...) the fix only helps for problems that arise when memory is nearly used up, and malloc() tries to use memory above the 'macic' 0xfb80 limit. - Just to make sure: (i have been caught in this trap) -- have you rebuilt your dll application against (...) (25 years ago, 6-Mar-00, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  Re: malloc() bug found -- BAD MEMORY REGION :-(
 
(...) made some tests, and - Yep, it works ! I'd strongly encourage everybody experiencing strange hangups to apply the little fix to mm_init() i suggested. For me, it makes malloc() and dll work perfectly. BTW, there are some minor flaws in dll[x], (...) (25 years ago, 2-Mar-00, to lugnet.robotics.rcx.legos)

10 Messages in This Thread:




Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR