[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-dev] [Linux] Cause of segfault?

The file format for synthdefs is supposed to be big endian. So scsynth is doing it right.
The problem I'd guess is that SClang file routines write native endian.

On Dec 14, 2003, at 8:29 AM, Arve Knudsen wrote:

Hi list, first post :)

I find that scsynth segfaults within GraphDef_Read, due to what looks like reading beyond the input buffer. What's the cause of this, I'm not really intimate with the code yet, but it looks like variables are being read in big endian order? I'm on x86, so could be a likely explanation. Anyway, this is the source of the problem with synth definitions right (having to delete synthdefs/*)? From what I can see there exists functions for reading bytes in little endian order, how come these aren't being used?


Arve Knudsen

sc-dev mailing list

--- james mccartney   james@xxxxxxxxxxxxxx   <http://www.audiosynth.com>
SuperCollider - a real time audio synthesis programming language