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

[Sc-devel] n_free bug -- wow, what a shock!!



hey people,

i'm really shocked by a bug that crashes scsynth under everyday conditions. i have added an item to the bugtracker. hope this is an easy one ....

ciao, -sciss-



an immediate n_free, g_freeAll or g_deepFree crashes scsynth if the node was paused. tested with latest SVN build (6650) on macbook pro intel, mac os x 10.4.10. to reproduce:

s.boot;

// now either of these:

(
s.sendBundle( nil,
  [ "/g_new", 1007, 0, 0 ],
  [ "/s_new", "default", 1011, 1, 1007 ],
  [ "/n_run", 1011, 0 ]		// REQUIRED TO PRODUCE THE CRASH
);
s.sendMsg( "/g_deepFree", 1007 );	// BOOOM!
)

(
s.sendBundle( nil,
  [ "/g_new", 1007, 0, 0 ],
  [ "/s_new", "default", 1011, 1, 1007 ],
  [ "/n_run", 1011, 0 ]		// REQUIRED TO PRODUCE THE CRASH
);
s.sendMsg( "/g_freeAll", 1007 );	// BOOM!
)

(
s.sendBundle( nil,
  [ "/g_new", 1007, 0, 0 ],
  [ "/s_new", "default", 1011, 1, 1007 ],
  [ "/n_run", 1011, 0 ]		// REQUIRED TO PRODUCE THE CRASH
);
s.sendMsg( "/n_free", 1011 );
)