The Artima Developer Community
Sponsored Link

Java Buzz Forum
Reverse Mystery Bugs

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Elliotte Rusty Harold

Posts: 1573
Nickname: elharo
Registered: Apr, 2003

Elliotte Rusty Harold is an author, developer, and general kibitzer.
Reverse Mystery Bugs Posted: May 14, 2008 6:37 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Elliotte Rusty Harold.
Original Post: Reverse Mystery Bugs
Feed Title: Mokka mit Schlag
Feed URL: http://www.elharo.com/blog/feed/atom/?
Feed Description: Ranting and Raving
Latest Java Buzz Posts
Latest Java Buzz Posts by Elliotte Rusty Harold
Latest Posts From Mokka mit Schlag

Advertisement

For a change this is about software bugs, not insects. :-) Ever have a reverse mystery bug? This is one that’s hard to find or understand, but one that’s brutally easy to understand and fix. The mystery is how the code ever worked in the first place. I had one of those this morning.

The AppleScript I use to manage the quotes of the day on Cafe con Leche stopped working mysteriously. Running the script with the result log open made the problem obvious: it couldn’t find the file index.html in my cafeconleche directory. Well that’s an easy fix. The file isn’t named index.html and hasn’t been for many moons. It’s named index.phtml (because it uses PHP to include some files). I changed the name of the file the script was trying to open to index.phtml, and all was well.

But here’s what I don’t understand: why didn’t this break yesterday? and the day before that? and the day before that? It was working just fine until this morning. was there a symlink from the old index.html name, and if so why did it vanish? Was my script updated previously, and somehow got replaced by an older version? And if so, how and why?

Hmm, maybe Time Machine can help? Yes, it does look like the old version of the program did indeed open the correct file, index.phtml. Sometime since yesterday morning the file changed to try to open index.html instead, but why and how? AppleScript code is really a mix of text and binary, not plain text like source code should be. Even the source is saved in a compiled format and then decompiled when you edit it, so maybe the compiler mucked up somehow? But why would it change a constant string? I have no answers.

Read: Reverse Mystery Bugs

Topic: JavaOne 2008, or was it 2007? Previous Topic   Next Topic Topic: Book Review: Sketching User Experiences by Bill Buxton

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use