Howdy all,

We've found a fun crash on 64 bit iOS related to function pointers with variadic arguments, namely @define mess macro in m_pd.h.

See https://github.com/libpd/libpd/issues/56#issuecomment-33320533

I haven't delved into the pd source yet enough to propose a fix, but a quick hack which calls the function pointers directly without using the mess macro seems to work:

https://github.com/libpd/libpd/issues/49#issuecomment-29535755

This is something that only crashes on the actual hardware and not in the simulator, so I hadn't seen it before since I don't have a fancy new iPhone.

Any PD guru thoughts would be welcome as I (we) would like to find a way to test a change and push a patch upstream.

--------
Dan Wilcox
@danomatika