Csound Csound-dev Csound-tekno Search About

[Cs-dev] Crashing Bug when OPCODE6DIR64 not set

Date2012-11-10 12:27
FromSteven Yi
Subject[Cs-dev] Crashing Bug when OPCODE6DIR64 not set
AttachmentsNone  None  
Hi All,

I'm looking at a bug where if OPCODE6DIR64 is not set, csound crashes.  I've isolated the problem but am not sure what the solution is.  What happens is:

* csoundCreate calls csoundReset
    * note there are calls to csound->Die here
* csoundReset calls csoundLoadModules
* csound->Die is called csoundLoadModules returns an error

From what I've gathered, csound->exitjmp has not been set.  When csound->die is called, it tries to jump to NULL and crashes out.  

A couple of issues:

* exitjmp not set before die called
* Should failing to load modules be an error that dies?  I can imagine csound embedded in an app without any modules that may intentionally not want to load modules

Thanks!
steven