Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Bend 2 and the Vibe-Coding Trap(liampwll.com ↗)
    4comments
  2. OpenJev(openjev.com ↗)
    109comments
  3. ZCode, the GLM coding agent, silently uploads your Git history(tokenstead.ai ↗)
    17comments
  4. Jemalloc 5.4.0(github.com/jemalloc ↗)
    54comments
  5. Microsoft exec called AI scraping 'the largest theft of labor in human history'(techcrunch.com ↗)
    227comments
  6. The scourge of x86 emulation(fex-emu.com ↗)
    37comments
  7. Cekura (YC F24) Is Hiring(ycombinator.com ↗)
    discuss
  8. I don't like passkeys(hawksley.dev ↗)
    discuss
  9. Astra for Law(openai.com ↗)
    604comments
  10. Bonsai 2 27B: Near-Lossless Compression in a 9x Smaller Footprint(prismml.com ↗)
    145comments
  11. Replacing Pull Requests with Delta(zed.dev ↗)
    18comments
  12. Subnormal floating-point numbers are expensive on Intel processors(lemire.me ↗)
    3comments
  13. Bend – A language that blocks AI mistakes via proof, on CPU and GPU(bend-lang.com ↗)
    238comments
  14. Warren Buffett Steps Down as Berkshire Chairman, Names Son to Replace Him(nytimes.com ↗)
    18comments
  15. Qwen 3.8 Omni Flash(qwen.ai ↗)
    90comments
  16. Hister: A private search engine for the pages you visit and the files you keep(github.com/asciimoo ↗)
    172comments
  17. Wax motor(wikipedia.org ↗)
    76comments
  18. When the fractional part of a float fixes your shader(crocidb.com ↗)
    8comments
  19. Fujitsu launches made-in-Japan next-generation CPU FUJITSU-MONAKA(global.fujitsu ↗)
    236comments
  20. Pre-Greek: The lost language hidden within Ancient Greek(linguisticdiscovery.com ↗)
    44comments
  21. Dr Julius Neubronner's Miniature Pigeon Camera(publicdomainreview.org ↗)
    discuss
  22. How to Write with an LLM(sockpuppet.org ↗)
    131comments
  23. A heap overflow and SSO misconfiguration to compromise OpenAI internal repos(hacktron.ai ↗)
    161comments
  24. Shapelearn Qwen 3.8 27B (13.1 GB VRAM)(byteshape.com ↗)
    17comments
  25. Ask A Monk – A digital wilderness for thoughts with no immediate answer(askamonk.online ↗)
    27comments
  26. Flet 1.0 – Build cross-platform apps in Python(flet.dev ↗)
    69comments
  27. Telstra outage: The night a network decided the year was 2006(netnod.se ↗)
    29comments
  28. Diplodocus, Long Thought Exclusively American, Turns Up in Spain(sci.news ↗)
    45comments
  29. Speeding up gearhash on ARM64(sam.dev ↗)
    discuss
  30. Why I didn’t sign the Fields medallists’ letter(gowers.wordpress.com ↗)
    375comments

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.