umm could you post the function?
At first sight, this problem could be caused by either an access to an invalid pointer or an overflow (that could be within your recursive function).