I just wanted to point out that the recent change to glist_delete() (commit herehttp://pure-data.git.sourceforge.net/git/gitweb.cgi?p=pure-data/pure-data;a=blobdiff;f=src/g_graph.c;h=cdebbdc981bb35b24d55baaf4c401254b4c65aea;hp=57db6556efe9f60777f15b9d2e9d8f0c627c4aa0;hb=5c78db0883a3450e1cac727aee422ad7f4dd56eb;hpb=c7fb8e4a06d6253890ca2f73dfe4980c8c88fce9) is causing crashes in libpd when closing patches. Not sure if it is actually related, but it seems pretty similar to the bug already submitted herehttp://sourceforge.net/tracker/?func=detail&atid=478070&aid=3433140&group_id=55736, which appeared a few days after the commit that I linked to. I'll place the backtrace here, indicating that there is a stale pointer that is being accessed somewhere (this is on an EXC_BAD_ACCESS):
(gdb) bt #0 0x00091e53 in obj_nexttraverseoutlet (lastconnect=0x7124740, destp=0xbfffd4b0, inletp=0xbfffd4b8, whichp=0xbfffd4c0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/m_obj.c:563 #1 0x00035bcd in linetraverser_next (t=0xbfffd4a0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/g_canvas.c:258 #2 0x00037caa in canvas_deletelinesforio (x=0x71230d0, text=0x7123ab0, inp=0x7123c70, outp=0x0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/g_canvas.c:788 #3 0x00047009 in canvas_rminlet (x=0x7123ab0, ip=0x7123c70) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/g_graph.c:311 #4 0x00054374 in vinlet_free (x=0x7123c00) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/g_io.c:86 #5 0x000927f2 in pd_free (x=0x7123c00) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/m_pd.c:29 #6 0x00046605 in glist_delete (x=0x7123ab0, y=0x7123c00) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/g_graph.c:122 #7 0x00037892 in canvas_free (x=0x7123ab0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/g_canvas.c:709 #8 0x000927f2 in pd_free (x=0x7123ab0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/m_pd.c:29 #9 0x00046605 in glist_delete (x=0x71230d0, y=0x7123ab0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/g_graph.c:122 #10 0x00037892 in canvas_free (x=0x71230d0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/g_canvas.c:709 #11 0x000927f2 in pd_free (x=0x71230d0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/m_pd.c:29 #12 0x000bdfe7 in libpd_closefile (x=0x71230d0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/libpd_wrapper/z_libpd.c:343
Cheers, Rich
Hi Rich and all -
I think I've tracked that down and fixed it... I just now pushed the change to the git repo.
cheers Miller
On Sun, Nov 27, 2011 at 11:15:46AM +1100, Rich E wrote:
I just wanted to point out that the recent change to glist_delete() (commit herehttp://pure-data.git.sourceforge.net/git/gitweb.cgi?p=pure-data/pure-data;a=blobdiff;f=src/g_graph.c;h=cdebbdc981bb35b24d55baaf4c401254b4c65aea;hp=57db6556efe9f60777f15b9d2e9d8f0c627c4aa0;hb=5c78db0883a3450e1cac727aee422ad7f4dd56eb;hpb=c7fb8e4a06d6253890ca2f73dfe4980c8c88fce9) is causing crashes in libpd when closing patches. Not sure if it is actually related, but it seems pretty similar to the bug already submitted herehttp://sourceforge.net/tracker/?func=detail&atid=478070&aid=3433140&group_id=55736, which appeared a few days after the commit that I linked to. I'll place the backtrace here, indicating that there is a stale pointer that is being accessed somewhere (this is on an EXC_BAD_ACCESS):
(gdb) bt #0 0x00091e53 in obj_nexttraverseoutlet (lastconnect=0x7124740, destp=0xbfffd4b0, inletp=0xbfffd4b8, whichp=0xbfffd4c0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/m_obj.c:563 #1 0x00035bcd in linetraverser_next (t=0xbfffd4a0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/g_canvas.c:258 #2 0x00037caa in canvas_deletelinesforio (x=0x71230d0, text=0x7123ab0, inp=0x7123c70, outp=0x0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/g_canvas.c:788 #3 0x00047009 in canvas_rminlet (x=0x7123ab0, ip=0x7123c70) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/g_graph.c:311 #4 0x00054374 in vinlet_free (x=0x7123c00) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/g_io.c:86 #5 0x000927f2 in pd_free (x=0x7123c00) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/m_pd.c:29 #6 0x00046605 in glist_delete (x=0x7123ab0, y=0x7123c00) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/g_graph.c:122 #7 0x00037892 in canvas_free (x=0x7123ab0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/g_canvas.c:709 #8 0x000927f2 in pd_free (x=0x7123ab0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/m_pd.c:29 #9 0x00046605 in glist_delete (x=0x71230d0, y=0x7123ab0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/g_graph.c:122 #10 0x00037892 in canvas_free (x=0x71230d0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/g_canvas.c:709 #11 0x000927f2 in pd_free (x=0x71230d0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/m_pd.c:29 #12 0x000bdfe7 in libpd_closefile (x=0x71230d0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/libpd_wrapper/z_libpd.c:343
Cheers, Rich
Pd-dev mailing list Pd-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
Hi Miller, Thanks for taking care of this so quickly! I merged the latest change and it works. All is well in libpd-land. Cheers, Peter
On Sat, Nov 26, 2011 at 8:08 PM, Miller Puckette msp@ucsd.edu wrote:
Hi Rich and all -
I think I've tracked that down and fixed it... I just now pushed the change to the git repo.
cheers Miller
On Sun, Nov 27, 2011 at 11:15:46AM +1100, Rich E wrote:
I just wanted to point out that the recent change to glist_delete() (commit herehttp://pure-data.git.sourceforge.net/git/gitweb.cgi?p=pure-data/pure-data;a=blobdiff;f=src/g_graph.c;h=cdebbdc981bb35b24d55baaf4c401254b4c65aea;hp=57db6556efe9f60777f15b9d2e9d8f0c627c4aa0;hb=5c78db0883a3450e1cac727aee422ad7f4dd56eb;hpb=c7fb8e4a06d6253890ca2f73dfe4980c8c88fce9) is causing crashes in libpd when closing patches. Not sure if it is actually related, but it seems pretty similar to the bug already submitted herehttp://sourceforge.net/tracker/?func=detail&atid=478070&aid=3433140&group_id=55736, which appeared a few days after the commit that I linked to. I'll place the backtrace here, indicating that there is a stale pointer that is being accessed somewhere (this is on an EXC_BAD_ACCESS):
(gdb) bt #0 0x00091e53 in obj_nexttraverseoutlet (lastconnect=0x7124740, destp=0xbfffd4b0, inletp=0xbfffd4b8, whichp=0xbfffd4c0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/m_obj.c:563 #1 0x00035bcd in linetraverser_next (t=0xbfffd4a0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/g_canvas.c:258 #2 0x00037caa in canvas_deletelinesforio (x=0x71230d0, text=0x7123ab0, inp=0x7123c70, outp=0x0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/g_canvas.c:788 #3 0x00047009 in canvas_rminlet (x=0x7123ab0, ip=0x7123c70) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/g_graph.c:311 #4 0x00054374 in vinlet_free (x=0x7123c00) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/g_io.c:86 #5 0x000927f2 in pd_free (x=0x7123c00) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/m_pd.c:29 #6 0x00046605 in glist_delete (x=0x7123ab0, y=0x7123c00) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/g_graph.c:122 #7 0x00037892 in canvas_free (x=0x7123ab0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/g_canvas.c:709 #8 0x000927f2 in pd_free (x=0x7123ab0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/m_pd.c:29 #9 0x00046605 in glist_delete (x=0x71230d0, y=0x7123ab0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/g_graph.c:122 #10 0x00037892 in canvas_free (x=0x71230d0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/g_canvas.c:709 #11 0x000927f2 in pd_free (x=0x71230d0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/m_pd.c:29 #12 0x000bdfe7 in libpd_closefile (x=0x71230d0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/libpd_wrapper/z_libpd.c:343
Cheers, Rich
Pd-dev mailing list Pd-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
Pd-dev mailing list Pd-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
Record speed, thanks and cheers!
On Sun, Nov 27, 2011 at 1:53 PM, Peter Brinkmann < peter.brinkmann@googlemail.com> wrote:
Hi Miller, Thanks for taking care of this so quickly! I merged the latest change and it works. All is well in libpd-land. Cheers, Peter
On Sat, Nov 26, 2011 at 8:08 PM, Miller Puckette msp@ucsd.edu wrote:
Hi Rich and all -
I think I've tracked that down and fixed it... I just now pushed the
change to
the git repo.
cheers Miller
On Sun, Nov 27, 2011 at 11:15:46AM +1100, Rich E wrote:
I just wanted to point out that the recent change to glist_delete()
(commit
here<
http://pure-data.git.sourceforge.net/git/gitweb.cgi?p=pure-data/pure-data;a=...
)
is causing crashes in libpd when closing patches. Not sure if it is actually related, but it seems pretty similar to the bug already
submitted
here<
http://sourceforge.net/tracker/?func=detail&atid=478070&aid=3433140&...
,
which appeared a few days after the commit that I linked to. I'll place the backtrace here, indicating that there is a stale pointer that is
being
accessed somewhere (this is on an EXC_BAD_ACCESS):
(gdb) bt #0 0x00091e53 in obj_nexttraverseoutlet (lastconnect=0x7124740, destp=0xbfffd4b0, inletp=0xbfffd4b8, whichp=0xbfffd4c0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/m_obj.c:563 #1 0x00035bcd in linetraverser_next (t=0xbfffd4a0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/g_canvas.c:258 #2 0x00037caa in canvas_deletelinesforio (x=0x71230d0, text=0x7123ab0, inp=0x7123c70, outp=0x0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/g_canvas.c:788 #3 0x00047009 in canvas_rminlet (x=0x7123ab0, ip=0x7123c70) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/g_graph.c:311 #4 0x00054374 in vinlet_free (x=0x7123c00) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/g_io.c:86 #5 0x000927f2 in pd_free (x=0x7123c00) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/m_pd.c:29 #6 0x00046605 in glist_delete (x=0x7123ab0, y=0x7123c00) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/g_graph.c:122 #7 0x00037892 in canvas_free (x=0x7123ab0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/g_canvas.c:709 #8 0x000927f2 in pd_free (x=0x7123ab0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/m_pd.c:29 #9 0x00046605 in glist_delete (x=0x71230d0, y=0x7123ab0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/g_graph.c:122 #10 0x00037892 in canvas_free (x=0x71230d0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/g_canvas.c:709 #11 0x000927f2 in pd_free (x=0x71230d0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/m_pd.c:29 #12 0x000bdfe7 in libpd_closefile (x=0x71230d0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/libpd_wrapper/z_libpd.c:343
Cheers, Rich
Pd-dev mailing list Pd-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
Pd-dev mailing list Pd-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
Unfortunately, there are still related (I think) bugs. Here is one that happens everytime for me on Mac OS X 10.6.8/Intel
- christchurch.pd - right-click open [pd pokesdown2] - close the [pd pokesdown2] window - close christchurch.pd - then I get this:
(Tcl) INVALID COMMAND NAME: invalid command name ".x10022bc40.c" while executing ".x10022bc40.c delete l1002723c0" ("uplevel" body line 35) invoked from within "uplevel #0 $cmd_from_pd".x1002290e0: no such object .x1002290e0: no such object .x1002290e0: no such object
.hc
On Nov 26, 2011, at 8:08 PM, Miller Puckette wrote:
Hi Rich and all -
I think I've tracked that down and fixed it... I just now pushed the change to the git repo.
cheers Miller
On Sun, Nov 27, 2011 at 11:15:46AM +1100, Rich E wrote:
I just wanted to point out that the recent change to glist_delete() (commit herehttp://pure-data.git.sourceforge.net/git/gitweb.cgi?p=pure-data/pure-data;a=blobdiff;f=src/g_graph.c;h=cdebbdc981bb35b24d55baaf4c401254b4c65aea;hp=57db6556efe9f60777f15b9d2e9d8f0c627c4aa0;hb=5c78db0883a3450e1cac727aee422ad7f4dd56eb;hpb=c7fb8e4a06d6253890ca2f73dfe4980c8c88fce9) is causing crashes in libpd when closing patches. Not sure if it is actually related, but it seems pretty similar to the bug already submitted herehttp://sourceforge.net/tracker/?func=detail&atid=478070&aid=3433140&group_id=55736, which appeared a few days after the commit that I linked to. I'll place the backtrace here, indicating that there is a stale pointer that is being accessed somewhere (this is on an EXC_BAD_ACCESS):
(gdb) bt #0 0x00091e53 in obj_nexttraverseoutlet (lastconnect=0x7124740, destp=0xbfffd4b0, inletp=0xbfffd4b8, whichp=0xbfffd4c0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/m_obj.c:563 #1 0x00035bcd in linetraverser_next (t=0xbfffd4a0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/g_canvas.c:258 #2 0x00037caa in canvas_deletelinesforio (x=0x71230d0, text=0x7123ab0, inp=0x7123c70, outp=0x0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/g_canvas.c:788 #3 0x00047009 in canvas_rminlet (x=0x7123ab0, ip=0x7123c70) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/g_graph.c:311 #4 0x00054374 in vinlet_free (x=0x7123c00) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/g_io.c:86 #5 0x000927f2 in pd_free (x=0x7123c00) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/m_pd.c:29 #6 0x00046605 in glist_delete (x=0x7123ab0, y=0x7123c00) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/g_graph.c:122 #7 0x00037892 in canvas_free (x=0x7123ab0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/g_canvas.c:709 #8 0x000927f2 in pd_free (x=0x7123ab0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/m_pd.c:29 #9 0x00046605 in glist_delete (x=0x71230d0, y=0x7123ab0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/g_graph.c:122 #10 0x00037892 in canvas_free (x=0x71230d0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/g_canvas.c:709 #11 0x000927f2 in pd_free (x=0x71230d0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/pure-data/src/m_pd.c:29 #12 0x000bdfe7 in libpd_closefile (x=0x71230d0) at /Users/r/code/pd/Libpd/pd-for-ios/libpd/libpd_wrapper/z_libpd.c:343
Cheers, Rich
Pd-dev mailing list Pd-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
Pd-dev mailing list Pd-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
----------------------------------------------------------------------------
"[T]he greatest purveyor of violence in the world today [is] my own government." - Martin Luther King, Jr.