---
title: "Discussion on \"One Reallocation Away From a Segfault\n\" | Hashnode"
description: "Discussion on \"One Reallocation Away From a Segfault\n\". How a single buffer reallocation broke the zero-copy pipeline of a vectorized query engine. A deep dive into memory lifetimes and dangling pointers."
url: "https://hashnode.com/posts/one-reallocation-away-from-a-segfault/6a61d4bd30b2e9b08e039127"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [One Reallocation Away From a Segfault](https://priyanshdimri.hashnode.dev/one-reallocation-away-from-a-segfault?utm_source=hashnode&utm_medium=feed)

How a single buffer reallocation broke the zero-copy pipeline of a vectorized query engine. A deep dive into memory lifetimes and dangling pointers.

Jul 23 · 9 min read · priyanshdimri.hashnode.dev  
Read the article

-   [#databases](https://hashnode.com/tag/databases)
-   [#cpp](https://hashnode.com/tag/cpp)
-   [#system-design](https://hashnode.com/tag/system-design)
-   [#bugs-and-errors](https://hashnode.com/tag/bugs-and-errors)

## Written by

[Priyansh Dimri](https://hashnode.com/@priyanshdimri)

@priyanshdimri · Delhi, India

  
[View profile](https://hashnode.com/@priyanshdimri)

I build software, break it, and write down what i learn.

Building things and breaking them(hopefully in that order). I like writing about the things I am learning like complex algorithms, sneaky bugs, security tools and so on.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
