> > I think i tracked it down. I have the ‘what’, just not the ‘why’. My > program that i am calling in the popen() call looks for a local config file. > It builds the path to it with a call to std::getenv(“HOME”). This getenv() > call is what is causing the segfault. Why would this be a problem, and what > checks can i put around it to avoid calling it in a cgi environment?
Nevermind - i found my derp. I was putting the return from the getenv() call straight into a std::string, which doesnt take too kindly to receiving null!