1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/ipc/ipdl/test/cxx/PTestCrashCleanup.ipdl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,22 @@ 1.4 +// See bug 538586: if the top-level protocol's actor is deleted before 1.5 +// the "connection error" notification comes in from the IO thread, 1.6 +// IPDL teardown never occurs, even if Channel::Close() is called 1.7 +// after the error. 1.8 + 1.9 +namespace mozilla { 1.10 +namespace _ipdltest { 1.11 + 1.12 +// NB: needs to be RPC so that the parent blocks on the child's crash. 1.13 +intr protocol PTestCrashCleanup { 1.14 +child: 1.15 + intr DIEDIEDIE(); 1.16 + __delete__(); 1.17 + 1.18 +state ALIVE: 1.19 + call DIEDIEDIE goto CRASH; 1.20 +state CRASH: 1.21 + send __delete__; 1.22 +}; 1.23 + 1.24 +} 1.25 +}