• Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.1.1
    • Affects Version/s: 2.0.1
    • Component/s: Sharding
    • None
    • Environment:
      Ubuntu 11.04 on Amazon EC2
    • Linux

      Quit mongos with Ctrl+C and received the following stack trace.

      Wed Nov 23 23:58:34 [mongosMain] dbexit: received signal 2 rc:0 received signal 2

          • glibc detected *** mongos: free(): invalid pointer: 0x0000000000b0d380 ***
            ======= Backtrace: =========
            /lib/x86_64-linux-gnu/libc.so.6(+0x78a8f)[0x7fd2c1cada8f]
            /lib/x86_64-linux-gnu/libc.so.6(cfree+0x73)[0x7fd2c1cb18e3]
            mongos(_ZN5mongo13BackgroundJob7jobBodyEN5boost10shared_ptrINS0_9JobStatusEEE+0x1b9)[0x529a29]
            mongos(_ZN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf1IvN5mongo13BackgroundJobENS_10shared_ptrINS7_9JobStatusEEEEENS2_5list2INS2_5valueIPS7_EENSD_ISA_EEEEEEE3runEv+0x74)[0x52b9e4]
            mongos(thread_proxy+0x80)[0x7feeb0]
            /lib/x86_64-linux-gnu/libpthread.so.0(+0x6d8c)[0x7fd2c2770d8c]
            /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7fd2c1d1b04d]
            ======= Memory map: ========
            00400000-008f4000 r-xp 00000000 ca:01 302 /usr/bin/mongos
            00af3000-00b0a000 rw-p 004f3000 ca:01 302 /usr/bin/mongos
            00b0a000-00b0e000 rw-p 00000000 00:00 0
            0141e000-01759000 rw-p 00000000 00:00 0 [heap]
            7fd2b77f7000-7fd2b77f8000 ---p 00000000 00:00 0
            7fd2b77f8000-7fd2b7ff8000 rw-p 00000000 00:00 0
            7fd2b7ff8000-7fd2b7ff9000 ---p 00000000 00:00 0
            7fd2b7ff9000-7fd2b87f9000 rw-p 00000000 00:00 0
            7fd2b87f9000-7fd2b87fa000 ---p 00000000 00:00 0
            7fd2b87fa000-7fd2b8ffa000 rw-p 00000000 00:00 0
            7fd2b8ffa000-7fd2b8ffb000 ---p 00000000 00:00 0
            7fd2b8ffb000-7fd2b97fb000 rw-p 00000000 00:00 0
            7fd2b97fb000-7fd2b97fc000 ---p 00000000 00:00 0
            7fd2b97fc000-7fd2b9ffc000 rw-p 00000000 00:00 0
            7fd2b9ffc000-7fd2b9ffd000 ---p 00000000 00:00 0
            7fd2b9ffd000-7fd2ba7fd000 rw-p 00000000 00:00 0
            7fd2ba7fd000-7fd2ba7fe000 ---p 00000000 00:00 0
            7fd2ba7fe000-7fd2baffe000 rw-p 00000000 00:00 0
            7fd2baffe000-7fd2bafff000 ---p 00000000 00:00 0
            7fd2bafff000-7fd2bb7ff000 rw-p 00000000 00:00 0
            7fd2bb7ff000-7fd2bb800000 ---p 00000000 00:00 0
            7fd2bb800000-7fd2bc000000 rw-p 00000000 00:00 0
            7fd2bc000000-7fd2bc115000 rw-p 00000000 00:00 0
            7fd2bc115000-7fd2c0000000 ---p 00000000 00:00 0
            7fd2c01ff000-7fd2c0200000 ---p 00000000 00:00 0
            7fd2c0200000-7fd2c0300000 rw-p 00000000 00:00 0
            7fd2c0300000-7fd2c0301000 ---p 00000000 00:00 0
            7fd2c0301000-7fd2c0401000 rw-p 00000000 00:00 0
            7fd2c0401000-7fd2c0402000 ---p 00000000 00:00 0
            7fd2c0402000-7fd2c0502000 rw-p 00000000 00:00 0
            7fd2c0502000-7fd2c0503000 ---p 00000000 00:00 0
            7fd2c0503000-7fd2c0603000 rw-p 00000000 00:00 0
            7fd2c0603000-7fd2c0604000 ---p 00000000 00:00 0
            7fd2c0604000-7fd2c0e04000 rw-p 00000000 00:00 0
            7fd2c0e04000-7fd2c0e05000 ---p 00000000 00:00 0
            7fd2c0e05000-7fd2c1605000 rw-p 00000000 00:00 0
            7fd2c1605000-7fd2c161c000 r-xp 00000000 ca:01 395690 /lib/x86_64-linux-gnu/libresolv-2.13.so
            7fd2c161c000-7fd2c181c000 ---p 00017000 ca:01 395690 /lib/x86_64-linux-gnu/libresolv-2.13.so
            7fd2c181c000-7fd2c181d000 r--p 00017000 ca:01 395690 /lib/x86_64-linux-gnu/libresolv-2.13.so
            7fd2c181d000-7fd2c181e000 rw-p 00018000 ca:01 395690 /lib/x86_64-linux-gnu/libresolv-2.13.so
            7fd2c181e000-7fd2c1820000 rw-p 00000000 00:00 0
            7fd2c1820000-7fd2c1827000 r-xp 00000000 ca:01 395678 /lib/x86_64-linux-gnu/libnss_dns-2.13.so
            7fd2c1827000-7fd2c1a26000 ---p 00007000 ca:01 395678 /lib/x86_64-linux-gnu/libnss_dns-2.13.so
            7fd2c1a26000-7fd2c1a27000 r--p 00006000 ca:01 395678 /lib/x86_64-linux-gnu/libnss_dns-2.13.so
            7fd2c1a27000-7fd2c1a28000 rw-p 00007000 ca:01 395678 /lib/x86_64-linux-gnu/libnss_dns-2.13.so
            7fd2c1a28000-7fd2c1a34000 r-xp 00000000 ca:01 395679 /lib/x86_64-linux-gnu/libnss_files-2.13.so
            7fd2c1a34000-7fd2c1c33000 ---p 0000c000 ca:01 395679 /lib/x86_64-linux-gnu/libnss_files-2.13.so
            7fd2c1c33000-7fd2c1c34000 r--p 0000b000 ca:01 395679 /lib/x86_64-linux-gnu/libnss_files-2.13.so
            7fd2c1c34000-7fd2c1c35000 rw-p 0000c000 ca:01 395679 /lib/x86_64-linux-gnu/libnss_files-2.13.so
            7fd2c1c35000-7fd2c1dbf000 r-xp 00000000 ca:01 395655 /lib/x86_64-linux-gnu/libc-2.13.so
            7fd2c1dbf000-7fd2c1fbe000 ---p 0018a000 ca:01 395655 /lib/x86_64-linux-gnu/libc-2.13.so
            7fd2c1fbe000-7fd2c1fc2000 r--p 00189000 ca:01 395655 /lib/x86_64-linux-gnu/libc-2.13.so
            7fd2c1fc2000-7fd2c1fc3000 rw-p 0018d000 ca:01 395655 /lib/x86_64-linux-gnu/libc-2.13.so
            7fd2c1fc3000-7fd2c1fc9000 rw-p 00000000 00:00 0
            7fd2c1fc9000-7fd2c1fde000 r-xp 00000000 ca:01 395669 /lib/x86_64-linux-gnu/libgcc_s.so.1
            7fd2c1fde000-7fd2c21dd000 ---p 00015000 ca:01 395669 /lib/x86_64-linux-gnu/libgcc_s.so.1
            7fd2c21dd000-7fd2c21de000 r--p 00014000 ca:01 395669 /lib/x86_64-linux-gnu/libgcc_s.so.1
            7fd2c21de000-7fd2c21df000 rw-p 00015000 ca:01 395669 /lib/x86_64-linux-gnu/libgcc_s.so.1
            7fd2c21df000-7fd2c2263000 r-xp 00000000 ca:01 395674 /lib/x86_64-linux-gnu/libm-2.13.so
            7fd2c2263000-7fd2c2462000 ---p 00084000 ca:01 395674 /lib/x86_64-linux-gnu/libm-2.13.so
            7fd2c2462000-7fd2c2463000 r--p 00083000 ca:01 395674 /lib/x86_64-linux-gnu/libm-2.13.so
            7fd2c2463000-7fd2c2464000 rw-p 00084000 ca:01 395674 /lib/x86_64-linux-gnu/libm-2.13.so
            7fd2c2464000-7fd2c254c000 r-xp 00000000 ca:01 8380 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.14
            7fd2c254c000-7fd2c274b000 ---p 000e8000 ca:01 8380 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.14
            7fd2c274b000-7fd2c2753000 r--p 000e7000 ca:01 8380 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.14
            7fd2c2753000-7fd2c2755000 rw-p 000ef000 ca:01 8380 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.14
            7fd2c2755000-7fd2c276a000 rw-p 00000000 00:00 0
            7fd2c276a000-7fd2c2782000 r-xp 00000000 ca:01 395689 /lib/x86_64-linux-gnu/libpthread-2.13.so
            7fd2c2782000-7fd2c2982000 ---p 00018000 ca:01 395689 /lib/x86_64-linux-gnu/libpthread-2.13.so
            7fd2c2982000-7fd2c2983000 r--p 00018000 ca:01 395689 /lib/x86_64-linux-gnu/libpthread-2.13.so
            7fd2c2983000-7fd2c2984000 rw-p 00019000 ca:01 395689 /lib/x86_64-linux-gnu/libpthread-2.13.so
            7fd2c2984000-7fd2c2988000 rw-p 00000000 00:00 0
            7fd2c2988000-7fd2c29a9000 r-xp 00000000 ca:01 395648 /lib/x86_64-linux-gnu/ld-2.13.so
            7fd2c2a9b000-7fd2c2a9c000 ---p 00000000 00:00 0
            7fd2c2a9c000-7fd2c2ba1000 rw-p 00000000 00:00 0
            7fd2c2ba5000-7fd2c2ba8000 rw-p 00000000 00:00 0
            7fd2c2ba8000-7fd2c2ba9000 r--p 00020000 ca:01 395648 /lib/x86_64-linux-gnu/ld-2.13.so
            7fd2c2ba9000-7fd2c2bab000 rw-p 00021000 ca:01 395648 /lib/x86_64-linux-gnu/ld-2.13.so
            7fff43e91000-7fff43eb2000 rw-p 00000000 00:00 0 [stack]
            7fff43ff2000-7fff43ff3000 r-xp 00000000 00:00 0 [vdso]Received signal 6
            Backtrace: 0x5521f5 0x7fd2c1c68d80 0x7fd2c1c68d05 0x7fd2c1c6cab6 0x7fd2c1ca1d7b 0x7fd2c1cada8f 0x7fd2c1cb18e3 0x529a29 0x52b9e4 0x7feeb0 0x7fd2c2770d8c 0x7fd2c1d1b04d
            mongos(_ZN5mongo17printStackAndExitEi+0x75)[0x5521f5]
            /lib/x86_64-linux-gnu/libc.so.6(+0x33d80)[0x7fd2c1c68d80]
            /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x35)[0x7fd2c1c68d05]
            /lib/x86_64-linux-gnu/libc.so.6(abort+0x186)[0x7fd2c1c6cab6]
            /lib/x86_64-linux-gnu/libc.so.6(+0x6cd7b)[0x7fd2c1ca1d7b]
            /lib/x86_64-linux-gnu/libc.so.6(+0x78a8f)[0x7fd2c1cada8f]
            /lib/x86_64-linux-gnu/libc.so.6(cfree+0x73)[0x7fd2c1cb18e3]
            mongos(_ZN5mongo13BackgroundJob7jobBodyEN5boost10shared_ptrINS0_9JobStatusEEE+0x1b9)[0x529a29]
            mongos(_ZN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf1IvN5mongo13BackgroundJobENS_10shared_ptrINS7_9JobStatusEEEEENS2_5list2INS2_5valueIPS7_EENSD_ISA_EEEEEEE3runEv+0x74)[0x52b9e4]
            mongos(thread_proxy+0x80)[0x7feeb0]
            /lib/x86_64-linux-gnu/libpthread.so.0(+0x6d8c)[0x7fd2c2770d8c]
            /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7fd2c1d1b04d]
            ===
            Logstream::get called in uninitialized state
            Wed Nov 23 23:58:45 [LockPinger] warning: removing distributed lock ping thread 'mongo2.pubnub.com:27019/mongo1:27017:1322031244:1804289383'
            Logstream::get called in uninitialized state

            Assignee:
            mathias@mongodb.com Mathias Stearn
            Reporter:
            zacwitte Zac Witte
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: