<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/in-one-of-your-older-codebases-did-a-linked-list-ever-hide-a-bug-that-took-weeks-to-surface--rp9as5pdd" -->

---
title: In one of your older codebases, did a Linked List ever...
description: A team built a custom undo stack using a doubly linked list. A subtle pointer assignment bug during merge operations caused silent state corruption that only...
canonical: https://daily.dev/posts/in-one-of-your-older-codebases-did-a-linked-list-ever-hide-a-bug-that-took-weeks-to-surface--rp9as5pdd
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: In one of your older codebases, did a Linked List ever hide a bug that took weeks to surface? | daily.dev
og:description: A team built a custom undo stack using a doubly linked list. A subtle pointer assignment bug during merge operations caused silent state corruption that only...
og:url: https://daily.dev/posts/in-one-of-your-older-codebases-did-a-linked-list-ever-hide-a-bug-that-took-weeks-to-surface--rp9as5pdd
og:image: https://api.daily.dev/og/posts/rP9as5PdD.png
og:image:alt: In one of your older codebases, did a Linked List ever hide a bug that took weeks to surface?
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# In one of your older codebases, did a Linked List ever hide a bug that took weeks to surface?

**[Rebeloper](https://daily.dev/sources/rebeloper)** · 1 min read · 0 upvotes · 0 comments

## Summary

A team built a custom undo stack using a doubly linked list. A subtle pointer assignment bug during merge operations caused silent state corruption that only surfaced weeks later when users hit deep undo paths. The fix was replacing the clever custom structure with a simpler value snapshot using copy-on-write semantics.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=S9qLVlYIx_A>

---

[View this post on daily.dev](https://daily.dev/posts/in-one-of-your-older-codebases-did-a-linked-list-ever-hide-a-bug-that-took-weeks-to-surface--rp9as5pdd)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"In one of your older codebases, did a Linked List ever hide a bug that took weeks to surface?","url":"https://daily.dev/posts/in-one-of-your-older-codebases-did-a-linked-list-ever-hide-a-bug-that-took-weeks-to-surface--rp9as5pdd","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/in-one-of-your-older-codebases-did-a-linked-list-ever-hide-a-bug-that-took-weeks-to-surface--rp9as5pdd"},"datePublished":"2026-03-06T17:48:30.733Z","dateModified":"2026-03-06T17:48:48.668Z","description":"A team built a custom undo stack using a doubly linked list. A subtle pointer assignment bug during merge operations caused silent state corruption that only...","image":"https://i.ytimg.com/vi/S9qLVlYIx_A/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/S9qLVlYIx_A/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Rebeloper","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Rebeloper","logo":"https://media.daily.dev/image/upload/s--W0sZL8K4--/f_auto/v1726990075/logos/rebeloper","url":"https://daily.dev/sources/rebeloper"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/in-one-of-your-older-codebases-did-a-linked-list-ever-hide-a-bug-that-took-weeks-to-surface--rp9as5pdd","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"","timeRequired":"PT1M","video":{"@type":"VideoObject","name":"In one of your older codebases, did a Linked List ever hide a bug that took weeks to surface?","description":"A team built a custom undo stack using a doubly linked list. A subtle pointer assignment bug during merge operations caused silent state corruption that only...","thumbnailUrl":"https://i.ytimg.com/vi/S9qLVlYIx_A/sddefault.jpg","uploadDate":"2026-03-06T17:48:30.733Z","duration":"PT1M","url":"https://api.daily.dev/r/rP9as5PdD","embedUrl":"https://www.youtube.com/embed/S9qLVlYIx_A"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Rebeloper","item":"https://daily.dev/sources/rebeloper"},{"@type":"ListItem","position":3,"name":"In one of your older codebases, did a Linked List ever hide a bug that took weeks to surface?"}]}
```

