home ... me ... pictures ... email ... feed ... rust chronicles... twitter...

April 04, 2005

never rely on anything but posix

And sometimes not even that.

When my QA person comes up to me with a random segv
without core, (where the hell the core files get off to on this
application I have no fucking clue, but they don't exist),
much of the time it's due to the fact that SCO will happily
dereference a pointer whose value is zero to give you
another zero. And on linux compiled with gcc, you have to
check for null earlier than that, or it will crash and burn
when you try to dereference it.

Never rely on what 'system' or 'popen' will do for you either,
this big pile of code, shellscript, and glue was tied together
to run as a particular user, suid, and back on yon SCO machine,
system, sh is a subset of ksh, and acts ksh like, and on our
linux friend, sh is bash, and drops priveleges if it is run suid.
It's a neverending stream of permissions issues, which would
have been solved by better design in the first place, but that
is so another can of worms.

music: Olive: You're not alone.

candice at April 4, 2005 03:18 PM


« country music = drink more ... Current ... my civic »