[ET Trac] [Einstein Toolkit] #1816: segfaults on 64bit systems when build with c99

Einstein Toolkit trac-noreply at einsteintoolkit.org
Fri Sep 18 13:21:09 CDT 2015


#1816: segfaults on 64bit systems when build with c99
---------------------------------+------------------------------------------
  Reporter:  physik@…            |       Owner:            
      Type:  defect              |      Status:  new       
  Priority:  unset               |   Milestone:            
 Component:  Cactus              |     Version:  ET_2014_05
Resolution:                      |    Keywords:            
---------------------------------+------------------------------------------

Comment (by knarf):

 Thank you for the very detailed bug report. This is indeed very helpful.

 As to how to fix this: if we assume that we cannot influence (to some
 degree) how users compile the code, what is left is either defining a
 strdup() ourself and thereby making sure it is always present, or
 consistently use Util_Strdup) instead of strdup(), essentially doing the
 same.

 In terms of compiler options we could require std=gnu99, and also
 recommend -Werror-implicit-function-declaration (for gcc), but would not
 be enforceable and still leaves users out in the cold.

-- 
Ticket URL: <https://trac.einsteintoolkit.org/ticket/1816#comment:1>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit


More information about the Trac mailing list