Summary: | dcop server crashed, took down KDE | ||
---|---|---|---|
Product: | [Frameworks and Libraries] dcop | Reporter: | Aaron Williams <aaronw> |
Component: | dcopserver | Assignee: | Matthias Ettrich <ettrich> |
Status: | RESOLVED FIXED | ||
Severity: | crash | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Solaris | ||
Latest Commit: | Version Fixed In: |
Description
Aaron Williams
2002-12-21 02:29:18 UTC
Subject: kdelibs/dcop CVS commit by coolo: catching connection errors (thanks to the excellent stacktrace :) CCMAIL: 52157-close@bugs.kde.org M +8 -0 dcopserver.cpp 1.148 --- kdelibs/dcop/dcopserver.cpp #1.147:1.148 @@ -1107,4 +1107,12 @@ void DCOPServer::newClient( int /*socket IceAcceptStatus status; IceConn iceConn = IceAcceptConnection( static_cast<const DCOPListener*>(sender())->listenObj, &status); + if (!iceConn) { + if (status == IceAcceptBadMalloc) + qWarning("Failed to alloc connection object!\n"); + else // IceAcceptFailure + qWarning("Failed to accept ICE connection!\n"); + return; + } + IceSetShutdownNegotiation( iceConn, False ); |