Forum     

Go Back   Digit Technology Discussion Forum > News > Technology News
Register FAQ Calendar Mark Forums Read

Technology News News from the world of technology that our members stumble across. NOTE: Sources to be mentioned at the beginning of each post.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 11-05-2008, 10:32 PM   #1 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,536
Exclamation The 25 Year Old BSD Bug got fixed :P


Quote:
The 25 Year Old BSD Bug
posted by Thom Holwerda on Sat 10th May 2008 20:27 UTC, submitted by rosebug


1983. The year of the IBM PC XT, the Apple Lisa, Pioneer 10 leaving the solar system, and Hooters opening up shop in Florida. It's also the birthyear of a 25 year old BSD bug, squashed only a few days ago.

A few days ago, Marc Balmer, OpenBSD developer, received an email from an OpenBSD user. The email claimed that SAMBA would crash when serving files off an MS-DOS filesystem. Balmer got into contact with a few SAMBA developers who claimed that SAMBA uses a special workaround in order to function properly on BSD systems: the code for reading directories in all BSDs was flawed.

Understandably, Balmer's first reaction was disbelief. "Of course my first reaction was to blame Samba," he writes. Despite his initial reaction, he decided to dig deeper into this case, and he uncovered a bug that had been sitting in the code of all BSDs (including Mac OS X), including a lot of old releases. He confirmed the bug was already in 4.2BSD, released in August of 1983.



The bug itself? Well, I'm no programmer so the actual code is kind of gibberish to me, but I think I get the gist of the problem.
This code will not work as expected when seeking to the second entry of a block where the first has been deleted: seekdir() calls readdir() which happily skips the first entry (it has inode set to zero), and advance to the second entry. When the user now calls readdir() to read the directory entry to which he just seekdir()ed, he does not get the second entry but the third.


Marshall Kirk McKusick, the original developer of the *dir() library, commented on the issue in a personal conversation with Balmer:

As the original author of the *dir() library, you probably fixed one of my bugs . Prior to the *dir() commands, programs just opened, read, and interpreted directories directly. I had to update a shocking 22 programs (a large percentage of the programs available on UNIX at the time) to replace their direct interpretation of directories with the *dir() library calls.
This little bug's fix was actually fairly trivial (as is common with these sorts of long-standing bugs): "The fix is surprisingly simple, not to say trivial: _readdir_unlocked() must not skip directory entries with inode set to zero when it is called from __seekdir()."

"Sorry that it took us almost twenty-five years to fix it," Balmer adds, jokingly.
source:
http://osnews.com/story/19731/The-25-Year-Old-UNIX-Bug
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
praka123 is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 12-05-2008, 07:29 PM   #2 (permalink)
j_h
Banned
 
Join Date: Jun 2007
Posts: 105
Default Re: The 25 Year Old BSD Bug got fixed :P

wow !
j_h is offline  
Old 12-05-2008, 07:35 PM   #3 (permalink)
A LOTR fan
 
x3060's Avatar
 
Join Date: Dec 2007
Posts: 1,173
Default Re: The 25 Year Old BSD Bug got fixed :P

silly
__________________
How many kilometers are there from washington Dc to Miami beach?????....;)

unban praka123!!!....
x3060 is offline  
Old 12-05-2008, 08:24 PM   #4 (permalink)
Human Spambot
 
kumarmohit's Avatar
 
Join Date: May 2005
Location: Riding an Oliphaunt
Posts: 2,173
Default Re: The 25 Year Old BSD Bug got fixed :P

Bugs aside I want Hooters to open a shop in India!
__________________
The real and only freedom is Public Domain. Everything else in unfree! Even those who claim to be the self styled evangelists of freedom are not free because freedom cannot be forced by any means!
kumarmohit is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
If You Think SP1 Fixed Windows Vista, Think Again CadCrazy Technology News 2 16-03-2008 03:18 PM
Microsoft Fixing 'Fixed' Flaw CadCrazy Technology News 12 27-11-2007 08:04 PM
Don't go for the Airtel 1 year or 2 year refills teknoPhobia Mobiles and Tablets 13 03-10-2007 12:47 AM
Fixed Vista. Now XP not loading. g_goyal2000 Software Q&A 3 28-08-2007 12:37 AM
Fixed in a Dilemma ! Pls Help ! shovik QnA (read only) 3 05-03-2006 09:01 AM

 
Latest Threads
- by chris
- by abhidev
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 05:44 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2