The Boston Diaries

The ongoing saga of a programmer who doesn't live in Boston, nor does he even like Boston, but yet named his weblog/journal “The Boston Diaries.”

Go figure.

Wednesday, November 14, 2001

Okay, so it was a slip of the fingers …

Okay, I think I squashed that bug.

If you've been browsing this blog between 11:00 pm yesturday to around 1:30 am today (Eastern time that is) then you probably noticed a bunch of duplicate entries. This was caused by a bug in the new feature I added today (okay, technically yesturday).

What happened is that the program would add the entry, and notify Weblog.com and it was in the cleanup code of that feature (after it had already sent the notification to Weblog.com) that it would crash. This caused the mail server (since I use email to update this journal) to think the message had not been delivered and therefore queue it up for delivery later.

And basically, every entry made since this new feature was in was still in the queue trying to be delivered successfully.

So much for my programming prowess.

The code (C—I program mostly in C) in question was:


	int UrlFree(URL *);

	/* ... */

	URLHTTP url;

	/* ... */

	UrlFree((URL *)url);

UrlFree() takes a pointer to a URL and here I was passing in the URL directly, but because of the cast (since URLHTTP is based off the URL datatype but due to the lack of actual objects in C, I have to cast) the compiler let it slide.

And please, no “Why didn't you use Java?” or “Why not C++?” or even “What? You didn't use Perl?” I freely admit to being a C bigot and I like my language to remain standard, unlike C++ (which until what? Only last year got a standard?) or Java (what classes did Sun change this week?) or even Perl (Perl 6 is just around the corner, and it's nothing at all like Perl 5 … heh heh heh). I have better things to do (like chase bugs it seems) than to run after ever shifting languages.

Besides, is there anyone else that talks about bugs in their software?

Obligatory Picture

[The future's so bright, I gotta wear shades]

Obligatory Contact Info

Obligatory Feeds

Obligatory Links

Obligatory Miscellaneous

You have my permission to link freely to any entry here. Go ahead, I won't bite. I promise.

The dates are the permanent links to that day's entries (or entry, if there is only one entry). The titles are the permanent links to that entry only. The format for the links are simple: Start with the base link for this site: https://boston.conman.org/, then add the date you are interested in, say 2000/08/01, so that would make the final URL:

https://boston.conman.org/2000/08/01

You can also specify the entire month by leaving off the day portion. You can even select an arbitrary portion of time.

You may also note subtle shading of the links and that's intentional: the “closer” the link is (relative to the page) the “brighter” it appears. It's an experiment in using color shading to denote the distance a link is from here. If you don't notice it, don't worry; it's not all that important.

It is assumed that every brand name, slogan, corporate name, symbol, design element, et cetera mentioned in these pages is a protected and/or trademarked entity, the sole property of its owner(s), and acknowledgement of this status is implied.

Copyright © 1999-2024 by Sean Conner. All Rights Reserved.