Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Jemalloc 5.4.0(github.com/jemalloc ↗)
    37comments
  2. The scourge of x86 emulation(fex-emu.com ↗)
    22comments
  3. Astra for Law(openai.com ↗)
    525comments
  4. Bonsai 2 27B: Near-Lossless Compression in a 9x Smaller Footprint(prismml.com ↗)
    127comments
  5. Bend – A language that blocks AI mistakes via proof, on CPU and GPU(bend-lang.com ↗)
    217comments
  6. Qwen 3.8 Omni Flash(qwen.ai ↗)
    78comments
  7. When the fractional part of a float fixes your shader(crocidb.com ↗)
    1comments
  8. Hister: A private search engine for the pages you visit and the files you keep(github.com/asciimoo ↗)
    165comments
  9. Pre-Greek: The lost language hidden within Ancient Greek(linguisticdiscovery.com ↗)
    33comments
  10. Wax motor(wikipedia.org ↗)
    70comments
  11. Fujitsu launches made-in-Japan next-generation CPU FUJITSU-MONAKA(global.fujitsu ↗)
    228comments
  12. A heap overflow and SSO misconfiguration to compromise OpenAI internal repos(hacktron.ai ↗)
    147comments
  13. Shapelearn Qwen 3.8 27B (13.1 GB VRAM)(byteshape.com ↗)
    8comments
  14. How to Write with an LLM(sockpuppet.org ↗)
    92comments
  15. Why Does the Universe Expand?(cosmicave.org ↗)
    50comments
  16. Ask A Monk – A digital wilderness for thoughts with no immediate answer(askamonk.online ↗)
    23comments
  17. Replacing Pull Requests with Delta(zed.dev ↗)
    1comments
  18. Speeding up gearhash on ARM64(sam.dev ↗)
    discuss
  19. Flet 1.0 – Build cross-platform apps in Python(flet.dev ↗)
    56comments
  20. Telstra outage: The night a network decided the year was 2006(netnod.se ↗)
    23comments
  21. Diplodocus, Long Thought Exclusively American, Turns Up in Spain(sci.news ↗)
    37comments
  22. Why I didn’t sign the Fields medallists’ letter(gowers.wordpress.com ↗)
    367comments
  23. How do we prevent mathemathics from devolving into the Medieval Era of secrecy?(mathoverflow.net ↗)
    105comments
  24. Apple detectives solved mystery of ancient tree and rewrote the history of fruit(scientificamerican.com ↗)
    10comments
  25. CrowdSec Source Code Leak(crowdsec.net ↗)
    48comments
  26. Fixing an NZXT Signal 4K30 part 2: the green/pink video bug(downtowndougbrown.com ↗)
    10comments
  27. The most important product decision is what you don't build(liamnugent.me ↗)
    37comments
  28. Show HN: Snapdrop: Instantly share files between devices. No setup, no signup(snapdrop.me ↗)
    34comments
  29. Infinite-Parameter LLMs: Generating and Adapting Weights from Live Data(arxiv.org ↗)
    39comments
  30. How Uber Protects Against Retry Storms(uber.com ↗)
    42comments

Debugging Leaks with rr

34 pointsby 10y agorobert.ocallahan.org
4 comments
10y agoHN ↗

I remember being impressed by someone using windbg to map an address back to the pointers. I was never useful with windbg but looking now it looks like it has a builtin to scan memory for values; I'm not sure how you'd go back from those addresses to code, though.

10y agoHN ↗

Compilers can generate a map file that associates relative addresses with variable and function names. They can also store such information in the compiled executable.

10y agoHN ↗

I use this for debugging embedded code, if I get a null pointer exception or bus fault I log the calling address. 99% of the time running addr2line points me directly to the offending lines of code. There are also builtins that allow you to walk back up the stack and and thus fink on who's been naughty.

10y agoHN ↗

For those that don't know, rr is a fantastically powerful tool that everyone should learn about. It's a record-and-replay debugger (actually a backend for gdb) with low overhead so it's actually practical for normal debugging, unlike the standard r-and-r backends built into gdb, which have very high overheads. Since the user interface is currently via gdb, it might seem a bit underwhelming at the moment.