IT NEWS     Sustainability    Get JOB ALERTS that match your skills
Technology news and Jobs arrow TAG
25 years to fix an open source bug PDF E-mail
User Rating: / 2
PoorBest 
by Stephen Withers   
Tuesday, 13 May 2008
The open source community often claims to be able to find and fix bugs more quickly than closed development teams can, partly due to the number of pairs of eyes that can scrutinise the code. But that doesn't mean every fault is fixed quickly: how does a quarter-century old bug grab you?

Switzerland-based Unix developer Marc Balmer recently found and fixed a BSD bug that had a lifespan of 25 years.

As Balmer explains in his blog, the bug had been observed by the Samba development team, which had written its own code as an alternative to the faulty BSD routines. And I'm inclined to believe that other programmers must have encountered the problem as well.

But it seems nobody thought to tell the BSD developers.

BSD and its derivatives provide functions called telldir(), readdir(), seekdir() and readdir() for working with directories. Balmer established they do contain a bug, just as the Samba team suspected. In some circumstances, calling seekdir() does not return to the correct position in the directory stream.

The good news is that he went the extra mile to find and fix the underlying issue. "The fix is surprisingly simple, not to say trivial", he wrote.

Balmer says the fix has now been applied to FreeBSD, NetBSD and DragonflyBSD, and has been committed to the OpenBSD patch branches.

"I don't know anyone in Apple, but they will eventually figure it out themselves", he wrote. Possibly: Apple does not have an exemplary record when it comes to promptly applying updates to open source software to the code that ships with Mac OS X.

Please enable JavaScript in your browser to post your comment!


Get stories like this delivered daily - FREE - subscribe now
 
< Next story in category   Previous story in the category >
  •   *  
  • Search
  • AdvSeach
  • Login
  • Events
  • FreeStuff
Subscribe to our free e-newsletter
First name:
Last name:
Your email address:
Your role:
Your industry:
Australian state:
Country:
Enter the security code shown:
mandatory
Contact , Register , Advertise with iTWire , Links , About iTWire , Feedback , Post your jobs , Events , iTWire site map , Start Blogging , MyBlogLog page
Industry Releases , Submit your release now