title: What does posix_spawn return code 14 "Bad Address" mean?
body: <p>I'm spawning a child process from my application:</p>
  
  <pre><code>    QString strFullPath(strModulesPath 
                        + strModule.toString());
      QByteArray baFullPath(strFullPath.toLatin1())
                ,baSeconds((QString::number(lngSeconds))
                         .toLatin1());
      char** ppEnviron
          ,* pszFullPath = baFullPath.data()
          ,* pszSeconds = baSeconds.data()
          ,* paryszArgs[] = {pszFullPath
                            ,pszSeconds
                            ,nullptr};
      posix_spawn_file_actions_t* pfileActionsp;
      posix_spawnattr_t* pAttr;
      pid_t pid = 0;
      pfileActionsp = pAttr = nullptr;
      int intRC = posix_spawn(&amp;pid
                             ,pszFullPath
                             ,pfileActionsp
                             ,pAttr
                             ,paryszArgs
                             ,ppEnviron);
  </code></pre>
  
  <p>The application to launch is specified in baFullPath and contains:</p>
  
  <pre><code>~/XMLMPAM/config/modules/mdFileIO
  </code></pre>
  
  <p>The pid returned after the call to posix_spawn is valid and intRC returns 2.</p>
  
  <p>However I cannot see the process listed in the "Activity Monitor", the parent process is listed but not the child.</p>
  
  <p>Where is it and how can I see the output from the console as it doesn't appear in the same console as the parent process.</p>
  
  <p>[edit] It would appear that the "posix_spawn" doesn't support spawning using the path prefix "~", so I tried the full path:</p>
  
  <pre><code>/Users/Simon/XMLMPAM/config/modules
  </code></pre>
  
  <p>I watched in the debugger and now the return is 14, which according to the error list is "Bad Address".</p>
  
  <p>[edit 2] As pointed out by David Schwartz, it wasn't working because I hadn't initialised the "ppEnviron".</p>