News for hackers. Stuff that matters.
Re:Don’t underestimate grep-based code scanning by yakubin on Wednesday August 07, 2019 @11:52AM (#20635836)
I encountered a similar problem in a c++ codebase and the debugging logs it produced. There was an error which was being reported in the logs as "weak ptr expired" or somethings like that. I grepped for it the whole source code (a gigantic project). No results. Going back and forth several times. Feeling stupid beyond imagination. Then I copy-pasted what was actually printed in the logs into my grep query (previously I was typing it in manually). It quickly found a match. Turns out someone wrote "weak ptr" as "week ptr". Everyone in the team had a good laugh.
Re:Don’t underestimate grep-based code scanning by jandrese on Wednesday August 07, 2019 @03:49PM (#20638188)
And it turns out the pointer expired on sunday morning, except in some regions where it expired on some other day.