Every year, the Melbourne Cup pushes Australia's betting infrastructure to its limits. In 1991, a known software bug turned one of the busiest days of the year into an IT disaster. As millions of bets poured in, CPU utilisation unexpectedly collapsed and the betting system ground to a halt at the worst possible moment. Jack Smith is joined by veteran mainframe specialist Neale to revisit the incident, explain why the bug had been accepted for so long, how the team recovered, and what modern IT professionals can learn about technical debt, capacity planning, and the risks of carrying known defects into critical production systems. Want even more info? Read our show notes and related blog post related to this episode: https://blog.ithorrorstories.eu/episode-19-melbourne-cup-meltdown/ 00:00 Introduction 00:53 Mainframe Basics 02:01 Melbourne Cup Explained 05:01 System Failure 09:06 Aftermath & Reflection 17:03 Learning from Errors 21:53 Modern Vs. Past Tech 29:51 Conclusion
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
Hey everyone. Welcome to IT Horror Stories with Jack Smith. I am Jack Smith as always, and I am literally joined by someone across the other side of the planet in Australia. I have Neale. Good evening to you, sir. Good evening, how are you? I'm doing excellent. Now that you are here, you reached out with a story about the Melbourne cup and mainframes, and those are two terms that we up here in the north are not really familiar with. So can you quickly go through it, what's the mainframe and most of all what's the
Melbourne Cup? Because that's going to be really important here. Okay, here's the quick thumbnail sketch. 1991, the mainframe was a server that ran probably equivalent to something like 500 MHz in raw CPU power. The power of a mainframe comes from what it offloads. It offloads all xio. It offloads all this network and stuff. So when you add up all the figures, it becomes much more than a simple 500 MHz server. So it moves data like nothing else. Two operating
systems, one called VM ESA, which stands for Virtual Machine Extended Systems Architecture. And it's a Hypervisor just like VMware, but it was a hypervisor that has its roots all the way back to 1967 in the early 360s of IBM. And our actual transaction system which is homegrown in assembler and PL1 runs an operating system called VSE and VM is able to have multiple VSE guests running there runs
on a network called SNA, it's systems network architecture which predates TCP IP by some number of years. It's a hierarchical, very fast, very simple protocol. The Melbourne cup is a horse race. The place I worked for is an off track betting organization run by the state of New South Wales or it was at the time, it's now been privatized and it was a statutory authority that had chartered to have support betting throughout the state of New South Wales in offices, agencies. I think we had something like 4,000 terminals out
in the state of New South Wales and a population of that stage around three and a half million people. So Australians like to bet? Yes. And in addition to that you could also have account based betting by phone. So Melbourne cup day is the biggest race day of the year. It happens on the first Tuesday of November, so it often coincides with US elections. People don't pay attention to the US election, they pay attention to the Bowman cup and literally stops the nation. The state of Victoria makes it a public holiday. Wow. And the rest of the state doesn't get any work done after midday.
They're having parties, they're having sweeps, et cetera. So it turns into one huge binge as a. Consequently, it's our biggest race day, so people who don't bet will have a bet on Melbourne cup day. So our offices are steaming through transactions. It's a mark sense terminal where you can put in up to 20 cards at a time and they get processed within a second or two and Times that
by 4000, times that by the number of systems, et cetera. It's quite a lot of transactions going through. We had a problem in the 80s where we lost the system and took down the entire state of New South Wales. So it wasn't very popular. To combat that, they split the state into two, so that if you're in one suburb, you're on one system. If you're on another suburb, next door suburb, you're on another system. And so we had that type of redundancy. So this is another hard lesson we'd learned several
years beforehand. On this particular Melbourne cup day, I sit at my desk. I was systems admin, or what IBM called systems programmers. Yes. Monitoring the performance of the VM and VSC systems. So I can see what the whole VM system's doing, I can see what the guests are doing. And I can see that as it gets closer to race time, the CPU is spiking as races start and races stop. Yes. And everything was normal on this day. The race itself, I think, runs at about 3, 20, 3, 25. I was looking at
the system about 3:15, and all of a sudden I see the CPU figures go from the 80s and higher 80s down to 5%. And I knew instantly this was not a good thing to happen. Ten minutes before the race starts, when activity stops and fans stop spinning, that's usually not a good sign. Indeed, not a good sign. So consequently, the other system was going on. I was looking at both systems and it was traveling nicely. So it was only half the state was being affected. And on a day we're turning over 90 million to $100 million.
This last 10 minutes was going to be costly. The system did an automatic restart, as it was designed to do, but it lost so many minutes. And when the systems came back, everybody tried to hit the system all at once. Consequently, response times went and so nobody was happy in half the state. It turned out it was a bug that had been introduced months beforehand. We have a freeze on software updates two months outside Melbourne cup. So nothing like this can happen logically, hopefully. Logically. Logically. Fingers crossed,
yes. Yeah. And it was just an inconsequential bug. Well, inconsequential, just nobody thought about it. Yeah. We have a bet type called the superfactor where you choose the first six horses to win in the order in a race. And so the number of permutations is quite high. So we try to keep track on the pool size there by getting a sample of those permutations. So you can imagine the storage requirements are high. Well, what we didn't figure was each of the tasks areas for our betting system, as I mentioned,
it's homegrown was say for example, 64K. That was the heap size for each task. That was your. Well, the memory size, if I get it correctly, that you had to put all the data in this particular application that monitors this superfactor bedding thing blue, that heap. But we didn't have any protection, we didn't have any checking on the stack heap size. So while this task was active, it was all good. But as soon as somebody hit clear on the screen or escape, we're talking about 3270
screens in these days, very different beasts to a VT100, but equivalent thing, you hit the escape to exit the task. Well, as soon as it exited the task, it just zapped storage left, right and center. So the next thing tasked to use that particular area, it was already running. This fell apart because all its storage had been corrupted, all its memory had been corrupted. And that was the root cause and very simple problem, very simple fix. But unfortunately, when it's 10 minutes before the biggest race of
the year and we're talking about hundreds of thousands of dollars per minute, they're not a popular thing to happen, particularly out in the branches which are actually run by the organization. That's not too bad because they're on a salary. But people who run agencies, this is their livelihood, they get a commission on the stuff. So their commission was going through the floor for those 10 minutes. So yeah, we had a lot of damage control that'd be done. It made the news, the television news, the six o' clock news. That night they came out to
our computer room so they could film all the lovely flashing lights and stuff while the general manager of the organization explained what happened, apologized, et cetera, Myself and my boss were seconded to sit by a terminal and bring up some nice little graphics and point to it meaningfully while the cameras rolled. And I just pulled up something that looked pretty there just for good visuals. So consequently, yes, we made the news. Nobody was happy at half the state, the other half we're writing thank you letters saying thank you for
not having. We weren't on your other system there. So it's an ill wind that blows no one good. The repercussions flew on from that night offline processing when the systems were shut down for online use and then all the offline reporting was run. It had damage, so I was getting calls at one o' clock in the morning. The old pre alpha numeric pages, just the ones that went beep and you had to call yes indeed went off. So that, that started about one o' clock in the morning and the whole problem sort of snowballed. Well, this rolled on. Various things broke because of this for the rest, for the
next few days. So consequently I had worked a number of hours, a number of days pretty much straight to get things back to normal. We got things back to normal, we got a fix in and we never had a Melbourne cup like that again, thankfully. And show their appreciation. The Tab Team. The Tab is the name of the organization I was working for. And IBM thanked me and the other guy who was working on it by giving us a day out on an America's 2 yacht called Kookaburra 3.
And we did the harbour on the yacht and I worked as a grinder and it all went well until the Kookaburra 3 was coming in and hit another boat. So that sort of summed up the previous seven days. We had system crashes and boat crashes, boat crashes, that's all in one combination. When I look at the documentation for the 32270, the clear button should just clear the display. So how did it manage to actually corrupt the program then? Is that. Well, when you clear the screen,
it exits the task and clears the work area. And then because that work area was larger than what the heap size was, it just cleared too much. So it zeroed out memory of other tasks that were running. And so as soon as that other task got up, as it did, it was one of those tasks. Get up frequently to check things, whatever. As soon as it got up, it got this corrupted storage and we effectively segged the buffer overrun and then everything
went with it. It took down the entire system. We choose not to have any subscription, model nor sponsoring in order to keep our stories accessible for each and everyone to support us. Please check our merchandise@shop.it horrorstories, eu or buy us a coffee@co dashee.com ithorrorstories.
Take this as a standard heap overrun corruption of memory, no checking of bounds and task getting up using that crappy memory and sigv ing. So then the betting infrastructure, that was. You said you had thousands of terminals. That was a terminal at the cash register, I assume not the one that you see today where you put in your own bet so you will have people working those. You put it in, it's like a tele window and you have your
tickets and you put them in a. A reader. There's a little hopper at the front of the terminal and when it detects there's a card there, it starts its read process. And as I mentioned I was using an IBM networking architecture called SNA Systems network architecture. And as also I mentioned it's very hierarchical. So the type, when a terminal wants to connect, it sends a request up and it gets acknowledged and it forms a session and away we go. It's much more chatty than
a. This initial part is much more chatty than a typical TCP IP connection. But once it's up, it's blindingly fast. It goes, it doesn't go. So when the network came back after the system started, we had 4,000 terminals trying to log in at once, same time. And then as soon as they logged in people wanted to start betting. So it just caused a bit more grief. Yeah, I can imagine that's quite a spike in data coming in when every terminal
at the same time is trying to connect through that a bit more chatty routine that they use. Actually I've got a quick anecdote. This guy rings up IBM headquarters in Armonk. At that time it was Akers was his name of the president of IBM. So the guy rings up and says John Akers? He said yeah, John Akers of IBM? Yes, John Akers of IBM Armonk. John Akers, Yes, John Akers, Armonk IBM Chairman of IBM. Yes. He goes on like this for several minutes and finally John Akers
says what the hell are you going. The guy says I just want you to know what it's like to set up an SNA session, keep on adding stuff to the header to tell them that it's got, it's got, it's got the typical six, seven layers like the mechanism, not simple as tcpip. So you've got all these different levels handshaking until you finally get the applications talking to each other. So yes, that anecdote rang very
true to us who was doing used to take care of SNA networks. Indeed, simplicity helps during the betting period, but cause all sorts of grief at restart time yes, because there's. Well today we would call it lots of overhead back then. You would call it assurance that everything worked properly. Yeah. So that was the horror story. So you said that the bug was introduced a few months earlier. They probably didn't test for like edge cases where that could happen or they couldn't simulate the amount of data traffic it would
get. It could have. We had a dedicated quality assurance team who would take over the pre release materials and run it through its paces. But somehow this particular scenario didn't happen and it was relatively random. It's wherever the you get the equivalent of what we do a malloc return storage from. Yes. And it just so happened at this time it returned storage that was abutted to some other tasks, important task stuff. So it was a. You know, there's never a
simple answer to why a problem happens. There's a chain of things that has to happen to cause major catastrophes. Yes. And yeah, so that was. This thing was improperly written that it used too much storage. It happened to use the storage of a certain task that would get up if it just happened to worry they have a random unused memory wouldn't have been a problem or a function that wasn't critical then. So yes, there was just this chain of things
that one pin knocks over another pin which I think anybody who's looked at aircraft disasters. No, it's never as simple as simple. One pilot doing one simple thing. It's always a chain of stuff that conspires indeed to cause a disaster. Yep. So it's. It's just by pure bad luck that the memory is laid out in such a way that you could overwrite or get into critical data and we would then take down the system and the next time because it's all virtualized it, it just jumps around and just very bad luck. Yes,
it was bad luck. And again, if it happened on a non Melbourne cup day, it would have just been a sneeze instead of pneumonia. I assume the developer was known. Did he get a reprimand, did he get a well done for your bug or did he run away on the first aircraft out? The programmer never got admonished or anything like that. It was just again one of those things where the people doing the architecture and the design just missed the fact that this task was going to be a
bigger work area than all the other ones. And so, you know, we could blame the people who wrote the homegrown transaction system as well. That they could have done. They could have architected things. So again it was Just a chain of things that happened. Memory management and I O are all homegrown, written in assembler with PL1 as the main construct for writing the application part of the program there. So you had to be pretty skilled to do the assembler stuff anyway. So yes, they made a mistake.
Well, okay, you made a mistake. Happens. Yeah, you're a pretty valuable commodity. So all in all it was a very, very perfect storm that happened that day. Yeah, a perfect storm. Exactly that. And yeah, as I mentioned, anything that's a terrible disaster is always a perfect storm of things happening. I looked on the Internet and I can find exactly one news article on this. I guess let's be happy that there is not a big Internet archive from the early 90s. Oh yeah, that's exactly right. There would have been
a very different story once the Internet was present. We were pretty early into doing Internet stuff at our organization. I think it was two years later we had our first IP stuff happening. And by the time I left our new terminals were all IP based. I really loved working there. I started straight out of high school. They had a cadetship arrangement where two years part time work, two years part time university and then the last two years full time with a guarantee of a job. And it was excellent, great training,
very interesting. We had to do things on a shoestring budget. That's why all our stuff was homegrown. We needed the maximum performance with minimal amount of hardware. I mean a bank running equivalent of the network of our size would have is on the order of five to six to 10 times larger in terms of hardware requirements and stuff like that. But because we're a state government authority, lean and mean was the way to go. So I learned a really lot of things from
doing that stuff, which I still use today. I still do vse, I still do vm, I do a lot of Linux, I do a lot of x86 stuff of course. But I'm still in touch with the mainframe. I'm still in touch with those people from IBM and Tab. We have our lunch once or twice a year. Great bunch of people and I think they'll be very interested in hearing this podcast. They will be very welcome and if they want to share their side of the story, they will
be very welcome. It will be all lies, don't worry. Oh no, that's fine. I am not judging. One final thing because you said it was lots of low level assembler and everything and then you're still doing things today. How does it compare? Because having done some mainframe Assembler when I was in school we had to type it up, it went to the compiler and it took five, six minutes to come back. And everything, everything was very still batch oriented. How did things in those management like
dev environments evolve in the last. Well, 35 years because it's been a while. We were very big users of vm, which is as I said, a hypervisor, but also has its own timeshare environment, single user operating system, a shell you can use to do stuff. So everybody had their own virtual machine. They did their development there. We had scores of test virtual machines doing that. So it was compared to other places which were batch orientated
all the time. We were pretty much online when I started. They were still doing punch cards. There was still a model cuts there. The programmers had only just gone onto terminals there and you had to share them before everybody got one on their desk. So that was the biggest change over the first 10 years I was there going from a handful of terminals to everybody had one with colors, graphics and stuff like that. All the program development, all the source code management, pre git was their own homegrown stuff again. Yes. Using similar concepts of update files
and being able to track back things like that. Yeah, some useful lessons that I still use in one form or the other. I'm still doing assembler. In fact one of the projects I was involved in we have net running on the mainframe and I wrote the jit. I wrote the JIT for that architecture. So I have done JITs number of times for both mainframe and non. And if I have to implement other abi, I don't know if I could survive. Have dreams about calling
conventions and register and stack up the sack layouts and stuff. I've done it so many times in there. But it all goes back to the training I got back in the 80s and 90s. Like what you hear. Subscribe on Spotify, Apple Podcasts, YouTube or wherever you get your podcasts. Every like follow and review helps us grow. Check out more at IThorrorStories EU and drop us a message anytime at hellothorrorstories.com. we'd love to connect.
Technology may change but the principles do not is what I hear a lot. Yeah, the tooling is the biggest change ability. You know, where would we be without gdb? Where would be without git these days? You know those type of things. You. You couldn't go back to the pre days. So yeah, I think that's been my biggest noticing. And of course the Internet and the rise of tcp, IP over sna, having used both SNA and tcpip. Because I
get mixed messages, which is the one that you prefer either as a user and to develop for. Because I'm hearing mixed messages from hands down tcpip. Much simpler semantics concepts. I had to rewrite a VTAM application just recently. We have an SSH suite for VSE because VSE didn't have an SSH client, SCP client. So I wrote one and to give it an interactive interface, had to give it a 3270 support so people could use a terminal.
Yes. So I had to write a VTAM application and the complexities of VTAM applications. I got Gemini to see it could do. Write me a VTAM application that will open what's called an acb, which is the root data structure, and then accept logins from users and then write output and query the terminal for colors and geometry and stuff like that. And it did a half ass job, reasonable job, but it got the right macros, didn't get the right
operands and stuff like that. So yeah, I was reliving my youth writing this program again. And it was fun. But I'm glad I'm running TCP IP these days rather than sna. And if you ever had to do what's called an NCP gen, that's a front end processor called 3725, 3745. So the model numbers from IBM and the front end processors running a network control program and they are just monoliths to code. And in the old
days it used to take about four hours for it to build and you get back at build with an error. So you had to have another four hours. By the time I was left there, they were getting done in 10 minutes. And that was just because of the processor speed and stuff like that. But you don't have to do NCP gens with TCP ip. You know, you just. Everything's commodity. Yeah. So I'm very thankful for that. You touched a final thing I wanted to mention because you set the processing speed because you were doing this on a 500 MHz machine running all those terminals, all those transactions at basically real time wire
speed. And then today we have the multi gigahertz machines all spread out wide and you have horizontal clusters and vertical clusters and everything up and down and still people feel it's getting slower. Is it because of the overhead, the architecture? Or is because we have a security layer now? Because we do have a security layer now. Because it needs to be. Well, yeah, the Latest mainframes I've been produced are about 5.6 GHz, raw speed,
multi threaded, et cetera. And again, all the power is really in the offload of IO and stuff like that. But it's certainly faster running those earlier type programs than today. I mean Java, when you don't have to do garbage collection, which we never had to do in our system. That's why it was running RAW fast. I mean in the early days we took IBM's VTAM and we bypassed three of the layers. We modified it to skip a whole lot of crap that had to go on just to get raw processing speed. Yes, again,
I'm thankful we don't have to do that these days. But yeah, I don't mind taking a performance hit for security, but when you have performance hit because someone hasn't configured the garbage collection parameters, yada yada yada. And. And I still find the syntax of some of the OO languages just weird, horrible and that type of thing. But I don't mind. As I said, I program in Java, I program in. Net, I do a lot of Python these days.
It's all nicer because in the old days we couldn't just do import and use somebody else's work to do it, we had to write it all from scratch. So I'm glad we've got past those days. There is no Google to give you an example back then you had to make it all of yourself. Yep, the worldwide database of just examples that you can stitch together at least to get going. Yeah, I use tools like Gemini and that type of thing. Just of course when I want something simple. But if
it saves me 10 minutes or it saves me half an hour over a week, that generates and I'm not putting critical stuff there that I have to then review to make sure it hasn't hallucinated or anything like that. But just as a simple example, show me how to split the lines and strip off such and such in two lines. There you go. Trivial stuff like that when I just couldn't be bothered putting virtual pen to virtual paper to do it. I feel you. Of course it's an entire discussion of doing what's called the AI shadow it, where basically everything is just
thrown into AI LLMs and all the company data and files come in. You can talk about if you use your own internal copilot, but if you just throw it on whatever browser window you have, well, there goes your company data. Exactly. This reminded me of my first use of AI to do system IBM assembler mainframe assembler and it was hysterical what it came up with. Obviously what was being trained on was so thin that it didn't have many things to infer, so the code
was absolute crap. But in the last three years it does a reasonable job. As I said, when I asked it to write a Vitam app, it got the right structure, it used the right macros, just didn't have the right parameters and things like that. But you can certainly see the improvement. And now IBM have their own BOB which is heavily trained on their internal programs. It apparently spits out quite usable stuff, but I've not used bob. I actually have never heard from that until now because I am not in the mainframe world myself. But I I can relate just a tiny bit because we did the
experiment with Commodore 64 assembler when the AI came out. Make a solid raster line or just change the background color in assembler because that's easy thing that we can do. And indeed in the beginning it was nowhere it would spit out x86 instead of 6502. These days it's catching up ridiculously fast. And let's not ask any questions where all the data comes from. Yes, you don't want to know the answer to that question. All right. Thanks Neale for joining
us. So this was it horror stories with Jack Smith on the Melbourne cup and mainframes and how it's moved into AI. You can find us on Spotify, Apple Music, YouTube, Deezer and wherever you find your podcast and your panic attacks. We do episodes multiple times a month. We have merchandise shop itahorrorstories eu and you can support us via Ko Fi. Our website is ithorrorstories.eu and our social links are on links ithorrorstories
eu. Thanks for tuning in and we will hear each other in the next one. Thanks a lot. The content of this podcast is intended for entertainment purposes only and is meant to humorously explore various tech related situations. Any resemblance to actual events or real persons, living or dead, is purely coincidental. We ridicule situations, never individuals or groups. Listener discretion is advised and
we encourage everyone to approach technology with a sense of humor and an open mind.
Why does Windows still dominate the corporate desktop after all these years? One answer is surprisingly old: Group Policy. Microsoft has spent decades building centralised management directly into Windows, allowing...
From the classic backhoe cutting through a cable to redundant network paths, data protection, user connectivity, and the cost of building infrastructure that can survive failures, we explore where redundancy helps and...
What happens when a company rushes into AI adoption without understanding what it actually costs? Ankit Mishra joins Jack Smith to share a firsthand incident involving an AI-powered sales lead generation platform,...
Call Center Down: If Only AI Could Diagnose Network Traffic Problems What happens when hundreds of call center employees suddenly find their systems grinding to a halt, only for everything to return to normal at 5 pm?...
Two critical PHP vulnerabilities. Emergency patches. Government websites going offline. And IT teams around the world suddenly discovering just how much forgotten infrastructure they're responsible for. But the real...