This post originated from an RSS feed registered with Ruby Buzz
by Daniel Berger.
Original Post: Denied by glibc
Feed Title: Testing 1,2,3...
Feed URL: http://djberg96.livejournal.com/data/rss
Feed Description: A blog on Ruby and other stuff.
My incredibly beautiful refactoring of File.basename (with some small aid from Nobu) was spoiled rotten by a broken implementation of the basename() function in glibc (2.3.4).
That simple bit of code segfaults on my Mandrake 9.3 system. The problem is the trailing slash. Remove it and everything works fine. Google indicates that this has been a problem for, well, a very long time.
Now I suspect why the core authors went with a custom version instead of relying on the builtin one.