You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Panic: "recursive IPC channel use during serialization" in WPT reftests #8961
/// Messages that can be sent to the memory profiler thread.#[derive(Deserialize,Serialize)]pubenumProfilerMsg{/// Register a Reporter with the memory profiler. The String is only used to identify the/// reporter so it can be unregistered later. The String must be distinct from that used by any/// other registered reporter otherwise a panic will occur.RegisterReporter(String,Reporter),/// Unregister a Reporter with the memory profiler. The String must match the name given when/// the reporter was registered. If the String does not match the name of a registered reporter/// a panic will occur.UnregisterReporter(String),/// Triggers printing of the memory profiling metrics.Print,/// Tells the memory profiler to shut down.Exit,}
/// The protocol used to send reporter requests.#[derive(Deserialize,Serialize)]pubstructReporterRequest{/// The channel on which reports are to be sent.pubreports_channel:ReportsChan,}
/// A single memory-related measurement.#[derive(Deserialize,Serialize)]pubstructReport{/// The identifying path for this report.pubpath:Vec<String>,/// The report kind.pubkind:ReportKind,/// The size, in bytes.pubsize:usize,}
@jdm That logic looks bogus to me. The I/O errors should be propagated up to the caller and not turned into recursive_io_error(). recursive_io_error() should only be returned when RefCell::with fails.
Activity
jdm commentedon Dec 13, 2015
jdm commentedon Jan 21, 2016
Most recently:
This is interesting, because
ProfilerChanis very simple:and
ProfilerMsgis:and
Reporteris:and
ReporterRequestis:and
ReportsChanis:and
Reportis:jdm commentedon Jan 21, 2016
Accordingly, the previous panic is coming from https://github.com/servo/ipc-channel/blob/130335fa2dc0e8d8048a5fae5b7b27991023a3a9/ipc.rs#L156 .
jdm commentedon Jan 25, 2016
@pcwalton https://github.com/servo/ipc-channel/blob/130335fa2dc0e8d8048a5fae5b7b27991023a3a9/ipc.rs#L154 appears to be the only possible source of errors in that code. What are the actual possible errors that are returned but ignored?
pcwalton commentedon Jan 25, 2016
@jdm That logic looks bogus to me. The I/O errors should be propagated up to the caller and not turned into
recursive_io_error().recursive_io_error()should only be returned whenRefCell::withfails.jdm commentedon Jan 25, 2016
withdoesn't even appear to be possible to fail, since it panics if it's in a bad state: http://doc.servo.org/std/thread/struct.LocalKey.html#method.withpcwalton commentedon Jan 25, 2016
Oh, sorry, I meant the
RefCellborrowing.borrow_stateshould be used to check this.Upgrade ipc-channel to diagnose servo#8961.
Auto merge of #9450 - jdm:ipcchannelupgrade, r=nox
Auto merge of #9450 - jdm:ipcchannelupgrade, r=nox
Auto merge of #9450 - jdm:ipcchannelupgrade, r=nox
jdm commentedon Apr 22, 2016
This error doesn't appear any more since we refined ipc-channel's error reporting.