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 / 884
883  |  885
Subject: 
Re: malloc() bug found -- BAD MEMORY REGION :-(
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Thu, 2 Mar 2000 01:25:17 GMT
Viewed: 
1335 times
  
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.

BTW, there are some minor flaws in dll[x], that might confuse one
(especially in FAST mode):

- if the ACK for the very last data packet sent to the RCX gets lost,
the PC will report failure although the upload was successfull.

- if upload fails because RCX memory is exhausted, the PC will not
report this, it will just time out and report failure.



Message has 4 Replies:
  Re: malloc() bug found -- BAD MEMORY REGION :-(
 
(...) Great! (...) This has always been a problem- it was an issue with firmdl before dll. Nothing serious, so it was never fixed. (...) You've actually had programs that large? Wow. -Luis (trying to make this more than a one-sided conversation...) (...) (25 years ago, 2-Mar-00, to lugnet.robotics.rcx.legos)
  Re: malloc() bug found -- BAD MEMORY REGION :-(
 
(...) My hangups are gone too! Danke! Jürgen (25 years ago, 2-Mar-00, to lugnet.robotics.rcx.legos)
  Re: malloc() bug found -- BAD MEMORY REGION :-(
 
Great! Well done, Martin! Toni "Martin Cornelius" <Martin.Cornelius@t-online.de> wrote in message news:38BDC2FD.85668C...line.de... (...) (25 years ago, 2-Mar-00, to lugnet.robotics.rcx.legos)
  Re: malloc() bug found -- BAD MEMORY REGION :-(
 
(...) 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 (...) (25 years ago, 3-Mar-00, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  malloc() bug found -- BAD MEMORY REGION :-(
 
It looks like it's not a bug in legOS, but in the RCX hardware: Memory from 0xfb80 to 0xfd7f is simply NOT WRITEABLE, or more exactly, always read as 0xff, at least on my RCX ! Try the following little test: // // memory test // #include <conio.h> (...) (25 years ago, 1-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