2011/3/9 Michel Dänzer <daen...@debian.org> > On Die, 2011-03-08 at 22:00 +0000, Thue Janus Kristensen wrote: > > > > With both drmDropMaster breakpointed in the second server, > > and drmSetMaster breakpointed in the first server, drmDropMaster is > > called first in the second server, and the first server doesn't reach > > drmSetMaster until after I continue the second server from the > > drmDropMaster breakpoint. No crash. > > > > > > With only drmSetMaster breakpointed in the first server, but the > > second server still running with gdb attached for consistency, there > > is no crash when I continue the first server from the drmSetMaster > > breakpoint. > > > > > > With both servers running inside gdb, but no breakpoints, it crashes. > > So, apparently the problem is that drmSetMaster runs 'too early'... > > How about if you only set a breakpoint on drmDropMaster in the second > server, and on hitting it just 'finish' the function before continuing. > Does the first server hit drmSetMaster before drmDropMaster has finished > in the second one? >
No. Nothing happens even after I "finish" in the second server. Only when I continue after the drmDropMaster "finish", does the first server hit the drmSetMaster breakpoint (or crash if there is no drmSetMaster breakpoint). Regards, Thue