Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-4039

Crash on broken websocket pipe

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • 2.0.0
    • None
    • None
    • None
    • Archlinux x86_64
    • ALL

    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

      Attachments

        Activity

          People

            Unassigned Unassigned
            mbj Markus Schirp
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: