https://github.com/stamatak/standard-RAxML
Raw File
Tip revision: 933bc7364f74e790267a075a85825f0a9911e7b2 authored by stamatak on 19 February 2014, 16:05:19 UTC
added better error reporting for cases where RAxML runs out of memory
Tip revision: 933bc73
check_malloc.sh
#!/bin/bash

# check if the executable wants to dynamically import any of the malloc/free
# related symbols.

for i in $@; do
   
	nm $i | egrep -e "U malloc$" -e "U memalign$" -e "U posix_memalign$" -e "U free$" -e "U realloc$" -e "U calloc$"   

    if [ $? -eq "0" ]; then
	echo "ERROR: $i: memory allocation without rax_ prefix detected."	
    fi
done

exit 0;


back to top