[L2Ork-dev] disis_munger~ in last purr-data release?

Albert Graef aggraef at gmail.com
Sun Mar 4 18:55:53 EST 2018


On Sun, Mar 4, 2018 at 6:54 PM, Jonathan Wilkes <jon.w.wilkes at gmail.com> wrote:
> I think you should be able to install gdb through homebrew.

Sorry, I should have been more specific. I do have gdb installed
(actually I'm using lldb which comes with xcode, because gdb needs to
be "codesigned" before it is allowed to debug anything on the Mac).

My problem actually was how to attach the debugger to the real-time
process (since the GUI launches it), but I've since figured that out.
;-)

Ok, so now it turns out that on the Mac, disis_munger~ still crashes
Pd with an `EXC_BAD_ACCESS (code=EXC_I386_GPFLT)` (whatever that is,
but it looks like some fancy kind of segfault to me). lldb backtrace
is attached, in case any Mac experts on this list can help figuring
out what exactly might be going wrong there.

It's in a slightly different location than the crashes I had earlier,
which is no big surprise since I'm linking against the single-threaded
flex lib now. But it still has something to do with the flext queue
stuff. Not sure whether there's still some bug lurking in
disis_munger~ there, or whether flext is acting up on macOS. Has
anyone *ever* successfully run any flext Pd external on the Mac
before?

Albert

-- 
Dr. Albert Gr"af
Computer Music Research Group, JGU Mainz, Germany
Email:  aggraef at gmail.com
WWW:    https://plus.google.com/+AlbertGraef
-------------- next part --------------
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
    frame #0: 0x0000000108cd9480 disis_munger~.pd_darwin`lockfree::intrusive_fifo<FifoCell>::intrusive_fifo() + 32
disis_munger~.pd_darwin`lockfree::intrusive_fifo<FifoCell>::intrusive_fifo:
->  0x108cd9480 <+32>: movaps %xmm0, (%rcx)
    0x108cd9483 <+35>: movq   $0x0, 0x10(%rcx)
    0x108cd948b <+43>: movq   $0x0, -0x18(%rbp)
    0x108cd9493 <+51>: movq   $0x0, -0x10(%rbp)
Target 0: (pd-l2ork) stopped.
(lldb) bt
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
  * frame #0: 0x0000000108cd9480 disis_munger~.pd_darwin`lockfree::intrusive_fifo<FifoCell>::intrusive_fifo() + 32
    frame #1: 0x0000000108cd868c disis_munger~.pd_darwin`flext_base_single::StartQueue() + 28
    frame #2: 0x0000000108ccbd68 disis_munger~.pd_darwin`flext_base_single::AddMessageMethods(_class*, bool, bool) + 136
    frame #3: 0x0000000108ccbe37 disis_munger~.pd_darwin`flext_base_single::Setup(flext_class*) + 55
    frame #4: 0x0000000108cc59e6 disis_munger~.pd_darwin`disis_munger::__setup__(flext_class*) + 22
    frame #5: 0x0000000108ccdb87 disis_munger~.pd_darwin`flext_obj_single::obj_add(bool, bool, bool, bool, char const*, char const*, void (*)(flext_class*), flext_obj_single* (*)(int, _atom*), void (*)(flext_hdr*), int, ...) + 967
    frame #6: 0x0000000108cc59bb disis_munger~.pd_darwin`disis_munger_tilde_setup + 91
    frame #7: 0x000000010008983f pd-l2ork`sys_do_load_lib + 1103
    frame #8: 0x0000000100088f7e pd-l2ork`sys_loadlib_iter + 46
    frame #9: 0x0000000100015a40 pd-l2ork`canvas_path_iterate + 512
    frame #10: 0x0000000100089208 pd-l2ork`sys_load_lib + 248
    frame #11: 0x00000001000776c0 pd-l2ork`new_anything + 112
    frame #12: 0x0000000100077793 pd-l2ork`pd_typedmess + 147
    frame #13: 0x000000010007b85a pd-l2ork`binbuf_eval + 1466
    frame #14: 0x000000010001ac09 pd-l2ork`canvas_objtext + 89
    frame #15: 0x000000010001aa6c pd-l2ork`canvas_obj + 124
    frame #16: 0x0000000100077835 pd-l2ork`pd_typedmess + 309
    frame #17: 0x000000010007b85a pd-l2ork`binbuf_eval + 1466
    frame #18: 0x000000010007edf6 pd-l2ork`binbuf_evalfile + 310
    frame #19: 0x000000010007eeae pd-l2ork`glob_evalfile + 62
    frame #20: 0x0000000100077a53 pd-l2ork`pd_typedmess + 851
    frame #21: 0x000000010007b85a pd-l2ork`binbuf_eval + 1466
    frame #22: 0x0000000100083d64 pd-l2ork`socketreceiver_read + 740
    frame #23: 0x0000000100083627 pd-l2ork`sys_domicrosleep + 407
    frame #24: 0x00000001000851e3 pd-l2ork`sys_pollgui + 19
    frame #25: 0x0000000100080ed1 pd-l2ork`m_mainloop + 1537
    frame #26: 0x000000010008226e pd-l2ork`sys_main + 2574
    frame #27: 0x0000000100001928 pd-l2ork`_start + 230
    frame #28: 0x0000000100001841 pd-l2ork`start + 33


More information about the L2Ork-dev mailing list