[SERVER-4039] Crash on broken websocket pipe Created: 08/Oct/11  Updated: 09/Oct/11  Resolved: 09/Oct/11

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 2.0.0
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Markus Schirp Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Archlinux x86_64


Operating System: ALL
Participants:

 Description   

I can crash the server when getting an http pipe broken.

You can reproduce this with doing frequend reloads in the http console. (The browsers will forcefully close the oldest tcp connection).

http://$your_ip:28017/_replSet

Press and hold CTRL+r the crashlog looks like the following:

Oct 9 01:22:26 helium mongod[15251]: Sun Oct 9 01:22:26 [websvr] Socket http response send() errno:32 Broken pipe xxx.xxx.xxx.xxx:60816
Oct 9 01:22:26 helium mongod[15251]: Sun Oct 9 01:22:26 terminate() called, printing stack:
Oct 9 01:22:26 helium mongod[15251]: 0x58b383 0x8c17da 0x7fb014931a66 0x7fb014931a93 0x7fb014931b8e 0x5a461a 0x612b47 0x5a9e2d 0x613b6e 0x7fb014463699 0x7fb014b85da0 0x7fb0138ad7dd
Oct 9 01:22:26 helium mongod[15251]: /usr/bin/mongod(_ZN5mongo15printStackTraceERSo+0x23) [0x58b383]
Oct 9 01:22:26 helium mongod[15251]: /usr/bin/mongod(_ZN5mongo11myterminateEv+0x3a) [0x8c17da]
Oct 9 01:22:26 helium mongod[15251]: /usr/lib/libstdc++.so.6(+0xbea66) [0x7fb014931a66]
Oct 9 01:22:26 helium mongod[15251]: /usr/lib/libstdc++.so.6(+0xbea93) [0x7fb014931a93]
Oct 9 01:22:26 helium mongod[15251]: /usr/lib/libstdc++.so.6(+0xbeb8e) [0x7fb014931b8e]
Oct 9 01:22:26 helium mongod[15251]: /usr/bin/mongod(ZN5mongo6Socket4sendEPKciS2+0x1fa) [0x5a461a]
Oct 9 01:22:26 helium mongod[15251]: /usr/bin/mongod(_ZN5mongo13MiniWebServer8acceptedENS_6SocketE+0x397) [0x612b47]
Oct 9 01:22:26 helium mongod[15251]: /usr/bin/mongod(_ZN5mongo8Listener13initAndListenEv+0x38d) [0x5a9e2d]
Oct 9 01:22:26 helium mongod[15251]: /usr/bin/mongod(_ZN5mongo15webServerThreadEPKNS_11AdminAccessE+0x7e) [0x613b6e]
Oct 9 01:22:26 helium mongod[15251]: /usr/lib/libboost_thread.so.1.47.0(+0xe699) [0x7fb014463699]
Oct 9 01:22:26 helium mongod[15251]: /lib/libpthread.so.0(+0x7da0) [0x7fb014b85da0]
Oct 9 01:22:26 helium mongod[15251]: /lib/libc.so.6(clone+0x6d) [0x7fb0138ad7dd]
Oct 9 01:22:26 helium mongod[15251]: Sun Oct 9 01:22:26 Got signal: 6 (Aborted).
Oct 9 01:22:26 helium mongod[15251]: Sun Oct 9 01:22:26 Backtrace:
Oct 9 01:22:26 helium mongod[15251]: 0x58b383 0x8c244c 0x7fb01380e7b0 0x7fb01380e735 0x7fb01380fbab 0x8c17df 0x7fb014931a66 0x7fb014931a93 0x7fb014931b8e 0x5a461a 0x612b47 0x5a9e2d 0x613b6e 0x7fb014463699 0x7fb014b85da0 0x7fb0138ad7dd
Oct 9 01:22:26 helium mongod[15251]: /usr/bin/mongod(_ZN5mongo15printStackTraceERSo+0x23) [0x58b383]
Oct 9 01:22:26 helium mongod[15251]: /usr/bin/mongod(_ZN5mongo10abruptQuitEi+0x34c) [0x8c244c]
Oct 9 01:22:26 helium mongod[15251]: /lib/libc.so.6(+0x347b0) [0x7fb01380e7b0]
Oct 9 01:22:26 helium mongod[15251]: /lib/libc.so.6(gsignal+0x35) [0x7fb01380e735]
Oct 9 01:22:26 helium mongod[15251]: /lib/libc.so.6(abort+0x17b) [0x7fb01380fbab]
Oct 9 01:22:26 helium mongod[15251]: /usr/bin/mongod(_ZN5mongo11myterminateEv+0x3f) [0x8c17df]
Oct 9 01:22:26 helium mongod[15251]: /usr/lib/libstdc++.so.6(+0xbea66) [0x7fb014931a66]
Oct 9 01:22:26 helium mongod[15251]: /usr/lib/libstdc++.so.6(+0xbea93) [0x7fb014931a93]
Oct 9 01:22:26 helium mongod[15251]: /usr/lib/libstdc++.so.6(+0xbeb8e) [0x7fb014931b8e]
Oct 9 01:22:26 helium mongod[15251]: /usr/bin/mongod(ZN5mongo6Socket4sendEPKciS2+0x1fa) [0x5a461a]
Oct 9 01:22:26 helium mongod[15251]: /usr/bin/mongod(_ZN5mongo13MiniWebServer8acceptedENS_6SocketE+0x397) [0x612b47]
Oct 9 01:22:26 helium mongod[15251]: /usr/bin/mongod(_ZN5mongo8Listener13initAndListenEv+0x38d) [0x5a9e2d]
Oct 9 01:22:26 helium mongod[15251]: /usr/bin/mongod(_ZN5mongo15webServerThreadEPKNS_11AdminAccessE+0x7e) [0x613b6e]
Oct 9 01:22:26 helium mongod[15251]: /usr/lib/libboost_thread.so.1.47.0(+0xe699) [0x7fb014463699]
Oct 9 01:22:26 helium mongod[15251]: /lib/libpthread.so.0(+0x7da0) [0x7fb014b85da0]
Oct 9 01:22:26 helium mongod[15251]: /lib/libc.so.6(clone+0x6d) [0x7fb0138ad7dd]
Oct 9 01:22:26 helium mongod[15251]: Logstream::get called in uninitialized state
Oct 9 01:22:26 helium mongod[15251]: Sun Oct 9 01:22:26 ERROR: Client::shutdown not called: websvr



 Comments   
Comment by Eliot Horowitz (Inactive) [ 09/Oct/11 ]

See SERVER-3907

Generated at Thu Feb 08 03:04:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.