c++ - What is causing popen to segfault? -


i have tried searching online, haven't had luck. i'm hoping there theories here. able our code crash on line:

pipe = popen(cmd, "w"); 

cmd has been allocated, allocation checked verify wasn't null , inspecting core file reveals valid string. i'm curious else cause popen segfault if parameters passed in good? popen segfault if there no more available file descriptors on system? there other things can why might've failed?


Comments