dentangle,
@dentangle@chaos.social avatar

What a frustrating little bug! 🐞 Fine on Linux, FreeBSD and OpenBSD - failing on NetBSD only.

I was convinced it was some weird memory ordering bug or perhaps something to do with NetBSD using gcc instead of clang. After digging through the asm and finding nothing I was tearing my beard out.

The actual problem? A usleep() in a test.

On the argument to usleep() must be less than 1,000,000µs. It was, in fact, exactly 1,000,000 == 1sec.

Argh!

#C

  • All
  • Subscribed
  • Moderated
  • Favorites
  • programming
  • Durango
  • DreamBathrooms
  • cisconetworking
  • tester
  • ngwrru68w68
  • magazineikmin
  • osvaldo12
  • thenastyranch
  • rosin
  • Youngstown
  • slotface
  • everett
  • kavyap
  • mdbf
  • anitta
  • GTA5RPClips
  • provamag3
  • khanakhh
  • ethstaker
  • InstantRegret
  • tacticalgear
  • modclub
  • cubers
  • megavids
  • normalnudes
  • Leos
  • JUstTest
  • lostlight
  • All magazines