Slashdot Mirror


Debugging The Spirit Rover

icebike writes "eeTimes has a story on how the Mars Rover was essentially reprogrammed from millions of miles away. 'How do you diagnose an embedded system that has rendered itself unobservable? That was the riddle a Jet Propulsion Laboratory team had to solve when the Mars rover Spirit capped a successful landing on the Martian surface with a sequence of stunning images and then, darkness.' The outcome strikes me as an extremely Lucky Hack, and the rover could have just as likely been lost forever. Are there lessons here that we can use here on the third rock for recovery of our messed up machines which we manage from afar via ssh?"

43 of 390 comments (clear)

  1. Oh, sure... by inertia187 · · Score: 5, Funny

    Are there lessons here that we can use here on the third rock for recovery of our messed up machines which we manage from afar via ssh?

    As a former co-worker (hi, jwalker!) used to say when people tried to draw ridiculous analogies, "It's exactly like that...only different."

    --
    A programmer is a machine for converting coffee into code.
  2. Local Debugging by webmaestro · · Score: 3, Funny

    Man, I have a hard enough time debugging programs running on my local machine.

    1. Re:Local Debugging by srichand · · Score: 5, Funny

      In other news stories, the Microsoft Corporation decided to sue NASA, apparently since the right to crash systems was only theirs. Not to be left behind, SCO insisted that the code that caused the failure was unethically copied from their source repositories. This has indeed caused a flutter in the space communities

  3. I dont know about learning much.... by detritus` · · Score: 4, Funny

    I dont think i want to learn too much from this as the solution was the equivalent of rm -rf... On a side note i wonder when the 40 min ssh delay jokes will begin again

  4. well by whackco · · Score: 4, Funny

    at least it wasn't a blue screen?

  5. Like this? by The+Human+Cow · · Score: 4, Funny

    man rover?

    --
    The Human Cow - bringing you scrumtrelescence since 1995
    1. Re:Like this? by toygeek · · Score: 1, Funny

      Man Rover? What does this article have to do with Richard Simmons?

  6. Remote debugging? by Nimloth · · Score: 4, Funny

    I don't get it, couldn't NASA afford the on-site warranty?

    1. Re:Remote debugging? by kfg · · Score: 5, Funny

      Yeah, but they thought they could save a few bucks and got the Gateway consumer version.

      "Oh, you've got the on-site warranty, huh? Ok, first thing you have to do is ship it to South Dakota. . ."

      Oh, hey, looks just like Mars.

      KFG

    2. Re:Remote debugging? by operagost · · Score: 2, Funny

      When you get the on-site warranty, make sure they tell you WHICH site!

      --

      Gamingmuseum.com: Give your 3D accelerator a rest.
  7. lots of mem of an embedded system by millette · · Score: 4, Funny

    Wow, I didn't expect the rover had 128MiB of RAM, or 256MiB of flash. Funny to think they had to run chkdsk from so far away :)

  8. do they use SSH ? by Anonymous Coward · · Score: 5, Funny

    I hope they use SSH or something .. who's to say a future mission ..some hax0r doesnt grab control of a space probe and have it send goatse.cx pics back??

    All it takes is a transmitter out in the middle of nowhere africa or some island .. after all the probe communicates using known frequencies. There may be probs picking up the return signal without an expensive antenna i suppose. But then again maybe some hax0r can build one cheaply and or do what captin midnight did ( www.signaltonoise.net/library/captmidn.htm ).

    I wouldnt worry about signal jamming though as that will probably be discovered easily.

    1. Re:do they use SSH ? by AhBeeDoi · · Score: 4, Funny

      ttl=64
      I realize that Mars is a long way away, but how many routers do you think exist between here and there?

  9. Re:Space Technology by Anonymous Coward · · Score: 1, Funny

    I couldn't afford a car that NASA built... :P

  10. Pissed Martians by Tablizer · · Score: 5, Funny

    The Martians are pissed that the repair labor was outsourced to Earth.

  11. Uh-oh by z0ink · · Score: 5, Funny
    "We recognized early in the planning process that the flash file system had a limited capacity for files."

    Sounds like NASA forgot to empty the rover's recycle bin. =)
    --
    Steal This Sig
    1. Re:Uh-oh by LnxAddct · · Score: 3, Funny

      I've thought long and hard on this topic and yes on windows it is accurately called the recycle bin because you dont get rid of the junk you put in there, it gets reused in some other part of your system. You put junk in, the junk is modified into other junk and then sent back to create new system dlls. In linux(and I believe macs) it is accurately called the trash can because what we put in there is thrown out for good, we don't have our junk recycled to create more, but different, junk:)
      Regards,
      Steve

    2. Re:Uh-oh by brendan_orr · · Score: 3, Funny

      Nah, Linux, Mac OS X, *BSD, and other *nix users have /dev/null as a trash can.

    3. Re:Uh-oh by AhBeeDoi · · Score: 3, Funny

      Nah, Linux, Mac OS X, *BSD, and other *nix users have /dev/null as a trash can.
      Trash can? More like a neutron star, 'cause anything you put in it is totally and absolutely gone.

  12. Re:What's the big deal?? by Gizzmonic · · Score: 5, Funny

    I routinely reboot and reprogram machines in our data-center that is 2000 miles away from me.

    As long as all hardware components are working and there is connectivity to the machine, it doesn't matter whether the machine is a few miles away or a million miles away.


    You are too humble, friend. What you do routinely and without thinking, is nothing less than a miracle of modern science. A miracle that you take part in every day. And because of men like you, we don't have to rely on the abacus anymore. We sent a pentium to the Moon, and soon, Mars will be colonized by G5s. America salutes you, for all the things that you do.....

    Like a rock! I was strong as I could be be!

    Ooooooohh! Like a rock!

    --
    (-1, Raw and Uncut is the only way to read)
  13. All these worlds.... by dmeranda · · Score: 4, Funny
    "The irony of it was that the operating system was doing exactly what we'd told it to do," Klemm lamented.

    Yeah, that was HAL's excuse too.

    Seriously, hats off to all the JPL programmers. Proving to the Martians that there is indeed intelligent life on Earth, very intelligent.

  14. Remote debugging pet peeve by Peter+McC · · Score: 5, Funny

    My pet peeve when I'm doing remote troubleshooting is 'ifconfig eth0 down'...oops. At least NASA is smarter than that.

    Peter.

    --
    You know what I hate? Wait, what do you like? I hate that!
  15. Re:The proper fix... by Chester+K · · Score: 4, Funny

    The only real bug was the inability of the system to properly handle running out of file entries (or more specifically, consuming too much RAM as the number of file entries increased). However the software should have never have stressed the filesystem to that degree in the first place.

    When you can write an embedded operating system that can gracefully and automatically recover from every possible thing that might ever go wrong, perhaps you should send your resume to NASA.

    --

    NO CARRIER
  16. whoops by usillyman · · Score: 5, Funny

    Operating System not found. Press any key to continue.
    Damn! Left the floppy in!

  17. Lots of copper by Anonymous Coward · · Score: 2, Funny

    Duh. That's what they have been keeping a secret. They have a DB9 serial link strung from here to the landing site. It's not as cool as you all make it out to be.

  18. Re:Hindsight by addaon · · Score: 2, Funny

    I think this is exactly what he means. We get the beginning of the story, but then, no followup!

    --

    I've had this sig for three days.
  19. Brilliant! by frenchs · · Score: 3, Funny

    They could have set it up out in my backyard to take pictures of the piles of crap and rocks out there and if they wanted to simulate the solar radiation, they could have my girlfriend give it one of her famous looks... cause those are leathal enough to burn a hole in your soul.

    -SF

  20. Re:rebooting on mars... by JWSmythe · · Score: 2, Funny


    I wonder how many Microsoft salesmen were pushing for putting WinXP on it.. :)

    --
    Serious? Seriousness is well above my pay grade.
  21. How'd they do it? by alwaystheretrading · · Score: 5, Funny

    That must have been some feat to get the arm on the rover to press Ctrl, Alt and Delete at the same time!

    1. Re:How'd they do it? by oohgodyeah · · Score: 5, Funny

      Maybe it's all lies and the Martians hit Ctrl+Alt+Del...

      --

      - OohGodYeah!
    2. Re:How'd they do it? by inertia187 · · Score: 2, Funny

      NASA: Ok, let's do this. I want you to press CTRL-ALT-DEL.
      Spirit: But I only have two fingers, you insensitive clod!

      --
      A programmer is a machine for converting coffee into code.
    3. Re:How'd they do it? by rjamestaylor · · Score: 5, Funny
      Actually, a friend of mine is a system admin with JPL and he had to drive out to the San Bernadino soundstage where the rovers are being filmed and reboot the computer a 4AM. The funny thing is he left a tool chest and sleeping bag (he was using it to minimize footprints and body impression, not sleep on the job!) where the Opportunity rover was scheduled to peek over the horizon and the ensuing photo of the tool chest / sleeping bag on the horizon had to be quickly -- and deftly, I must say -- explained away as being Opportunity's back shell and parachuete.

      Just another day in the life of a sys admin!

      --
      -- @rjamestaylor on Ello
  22. Bud Light Presents...Real Men of Genius. by Blaede · · Score: 4, Funny

    Today we salute YOU, Mr. Super Wizard Windows Reinstaller.

    Only YOU can fully appreciate the difficulty of running a format c: command, while swilling a room temperature can of Red Bull.

    "Hey this stuff is hard now!"

    While NASA is too preoccupied with things like farway rovers, you take your vocational tech school fueled arrogance directly to the place where it will make the absolute least possible impact: A Slashdot discussion thread.

    "Loggin' on now!"

    Your unique eye for obviousness allows you to sling turds of obtuseness every which way, and then brag about how you were RIGHT as soon as one of your pronouncements hit true - regardless of how many times you were wrong before.

    "See I told you sooooooo!!"

    And if some idiot rocket scientist has the unmitigated gall to not bow down to your obvious Geniusdom, you unleash your fury down upon him with all the tenacity and mercilessness of a rabid pit bull with a tender buttock locked in its jaws.

    "Total anonymity!"

    So keep clicking away, oh Marauder of the Mousepad. Because when the results you so desire finally come about years from now, you can say it was because YOU demanded it."

    "How come they haven't fired that dumbass head of NASA yet yet?"

    (Bud Light Beer, Anheuser Busch, St. Louis Missouri.)

  23. Re:Space Technology by alwaystheretrading · · Score: 3, Funny
    Here's an example of the Mars Rover's 10 year old networking technology:

    Ring, Ring, Ring....
    "Welcome to the Mars Rover answering system. For English press 1, Para Espanol prensa 2"
    BEEP

    "You selected English. To leave a message for Spirit press 1. To leave a message for Opportunity press 2"
    BEEP

    "You selected Spirit. Transfering now." CLICK "I'm sorry, Spirit is unavailable at this time. To leave a message press 1. To return to the main menu press 2"
    BEEP

    "Hi this is the Spirit rover. I can't come to the phone right now but if you'll leave a message I'll get back to you." BEEEEEP
    "Spirit, this is NASA. Please phone home when you get a chance. I think your fax machine has jammed and we need you to re-send. Thanks, bye"

  24. Re:rebooting on mars... by hazem · · Score: 2, Funny

    It's a PC user's nightmare: You're almost done with a lengthy e-mail, or about to finish a report at the office, and the computer crashes for no apparent reason. It tries to restart but never quite finishes booting. Then it crashes again. And again.

    Gee... that sounds a lot like the last worm to hit my mom's Dell Laptop running Windows XP.

  25. Re:Space Technology by Anonymous Coward · · Score: 1, Funny

    Damn gentoo zealots always trying to plug their distro in any threa..
    Oh wait did you say debian? Nevermind.

  26. Re:Ran out of INODES. No really. by Concerned+Onlooker · · Score: 3, Funny
    If you think runing out of disk space can be hard to trouble shoot, try running out of inodes.

    That's why I always keep a spare bag or two of inodes on hand, just in case. They're small so they don't take up too much space in the closet. I store them next to those f-stops I used to use for photography.

    --
    http://www.rootstrikers.org/
  27. JPL by EachLennyAPenny · · Score: 3, Funny

    The JPL is a pretty viral license. It forces you to spread their space probes from your planet to all your customer's planets. This is un-solar systematic! What's next? Calling GNUpiter Jupiter instead?

  28. Re:Discovered a system log ? by heneon · · Score: 2, Funny
    Those guys are running a very expensive experiment, are logging it and they have no idea what and where they are logging??

    When building the rover, they probably just put vxworks installation cd in, and selected "Typical Install for inter-planetary missions", clikced "Next" a couple of times and got the OS running in no time.

    Now, if the NASA engineers are anything like me, they didn't bother to check what was being logged and where... after all, when a problem arises, then you can go to /var/log/ to see if there's anything interesting.

  29. Not lost forever by PeekabooCaribou · · Score: 2, Funny

    Not lost forever, but lost until we travel to Mars and retool it as an extraterrestrial barbeque grill.

    --
    "I'll say it again for the logic-impaired." -- Larry Wall.
  30. The Poor Bastard. by Anonymous Coward · · Score: 1, Funny

    Just imagine the poor bastard who had to carry the tomsrtbt floppy all those millions of miles up there, and stick it in the floppy drive!
    Well, we all have to do stuff like that every day, and God help us if we run out of Magic Wands!

  31. Re:What's the big deal?? by Lobo_Louie · · Score: 3, Funny

    We salute you and Bud Light salutes you, Mr. Three Finger Remote Computer Rebooter. >You are too humble, friend. What you do routinely and without thinking, is nothing less than a miracle of modern science.

  32. Re:Great trick for ssh administration by Helvick · · Score: 2, Funny

    You mean like the time I sent myself 22000 mails because the OS in question didn't have an implementation of sleep.