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

crash on free of invalid pointer in shell parser

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.2.0-rc0
    • Fix Version/s: 2.2.0-rc1
    • Component/s: Shell
    • Labels:
      None
    • Environment:
      all
    • Operating System:
      ALL

      Description

      Minimum to make this happen in shell:

      > {
      ...

      (the ... is typed in, not the continuation printed by the shell, so you can cut-n-paste the two lines above or type in {<cr>... <cr> that's dot dot dot space carriage return:

      MongoDB shell version: 2.2.0-rc0
      connecting to: test
      > {
      ... ... 
      *** glibc detected *** mongodb-linux-x86_64-2.2.0-rc0/bin/mongo: free(): invalid pointer: 0x00000000010103e4 ***
      ======= Backtrace: =========
      /lib64/libc.so.6(+0x75296)[0x7f37d87a0296]
      mongodb-linux-x86_64-2.2.0-rc0/bin/mongo(_Z10finishCodeSs+0xe0)[0x4974b0]
      mongodb-linux-x86_64-2.2.0-rc0/bin/mongo(_Z5_mainiPPc+0x2079)[0x49c599]
      mongodb-linux-x86_64-2.2.0-rc0/bin/mongo(main+0x26)[0x49ea36]
      /lib64/libc.so.6(__libc_start_main+0xfd)[0x7f37d8749cdd]
      mongodb-linux-x86_64-2.2.0-rc0/bin/mongo(__gxx_personality_v0+0x2a1)[0x496769]
      ======= Memory map: ========
      00400000-007de000 r-xp 00000000 ca:80 3320315                            /data/downloads/mongodb-linux-x86_64-2.2.0-rc0/bin/mongo
      009de000-009f3000 rw-p 003de000 ca:80 3320315                            /data/downloads/mongodb-linux-x86_64-2.2.0-rc0/bin/mongo
      009f3000-009f5000 rw-p 00000000 00:00 0 
      00eef000-0102b000 rw-p 00000000 00:00 0                                  [heap]
      7f37d0000000-7f37d0021000 rw-p 00000000 00:00 0 
      7f37d0021000-7f37d4000000 ---p 00000000 00:00 0 
      7f37d7f29000-7f37d7f2a000 rw-p 00000000 00:00 0 
      7f37d7f2a000-7f37d7f2b000 ---p 00000000 00:00 0 
      7f37d7f2b000-7f37d872b000 rw-p 00000000 00:00 0 
      7f37d872b000-7f37d88b1000 r-xp 00000000 ca:01 1084                       /lib64/libc-2.12.so
      7f37d88b1000-7f37d8ab1000 ---p 00186000 ca:01 1084                       /lib64/libc-2.12.so
      7f37d8ab1000-7f37d8ab5000 r--p 00186000 ca:01 1084                       /lib64/libc-2.12.so
      7f37d8ab5000-7f37d8ab6000 rw-p 0018a000 ca:01 1084                       /lib64/libc-2.12.so
      7f37d8ab6000-7f37d8abb000 rw-p 00000000 00:00 0 
      7f37d8abb000-7f37d8ad1000 r-xp 00000000 ca:01 405                        /lib64/libgcc_s-4.4.6-20110824.so.1
      7f37d8ad1000-7f37d8cd0000 ---p 00016000 ca:01 405                        /lib64/libgcc_s-4.4.6-20110824.so.1
      7f37d8cd0000-7f37d8cd1000 rw-p 00015000 ca:01 405                        /lib64/libgcc_s-4.4.6-20110824.so.1
      7f37d8cd1000-7f37d8d54000 r-xp 00000000 ca:01 1092                       /lib64/libm-2.12.so
      7f37d8d54000-7f37d8f53000 ---p 00083000 ca:01 1092                       /lib64/libm-2.12.so
      7f37d8f53000-7f37d8f54000 r--p 00082000 ca:01 1092                       /lib64/libm-2.12.so
      7f37d8f54000-7f37d8f55000 rw-p 00083000 ca:01 1092                       /lib64/libm-2.12.so
      7f37d8f55000-7f37d903d000 r-xp 00000000 ca:01 1238                       /usr/lib64/libstdc++.so.6.0.13
      7f37d903d000-7f37d923d000 ---p 000e8000 ca:01 1238                       /usr/lib64/libstdc++.so.6.0.13
      7f37d923d000-7f37d9244000 r--p 000e8000 ca:01 1238                       /usr/lib64/libstdc++.so.6.0.13
      7f37d9244000-7f37d9246000 rw-p 000ef000 ca:01 1238                       /usr/lib64/libstdc++.so.6.0.13
      7f37d9246000-7f37d925b000 rw-p 00000000 00:00 0 
      7f37d925b000-7f37d9262000 r-xp 00000000 ca:01 1112                       /lib64/librt-2.12.so
      7f37d9262000-7f37d9461000 ---p 00007000 ca:01 1112                       /lib64/librt-2.12.so
      7f37d9461000-7f37d9462000 r--p 00006000 ca:01 1112                       /lib64/librt-2.12.so
      7f37d9462000-7f37d9463000 rw-p 00007000 ca:01 1112                       /lib64/librt-2.12.so
      7f37d9463000-7f37d947a000 r-xp 00000000 ca:01 1108                       /lib64/libpthread-2.12.so
      7f37d947a000-7f37d9679000 ---p 00017000 ca:01 1108                       /lib64/libpthread-2.12.so
      7f37d9679000-7f37d967a000 r--p 00016000 ca:01 1108                       /lib64/libpthread-2.12.so
      7f37d967a000-7f37d967b000 rw-p 00017000 ca:01 1108                       /lib64/libpthread-2.12.so
      7f37d967b000-7f37d967f000 rw-p 00000000 00:00 0 
      7f37d967f000-7f37d969f000 r-xp 00000000 ca:01 21599                      /lib64/ld-2.12.so
      7f37d988f000-7f37d9895000 rw-p 00000000 00:00 0 
      7f37d989c000-7f37d989e000 rw-p 00000000 00:00 0 
      7f37d989e000-7f37d989f000 r--p 0001f000 ca:01 21599                      /lib64/ld-2.12.so
      7f37d989f000-7f37d98a0000 rw-p 00020000 ca:01 21599                      /lib64/ld-2.12.so
      7f37d98a0000-7f37d98a1000 rw-p 00000000 00:00 0 
      7fffe3943000-7fffe3964000 rw-p 00000000 00:00 0                          [stack]
      7fffe39ff000-7fffe3a00000 r-xp 00000000 00:00 0                          [vdso]
      ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
      Thu Jul 26 03:04:45 mongo got signal 6 (Aborted), stack trace: 
       
      Thu Jul 26 03:04:45 0x538591 0x497bb2 0x7f37d875d900 0x7f37d875d885 0x7f37d875f065 0x7f37d879a977 0x7f37d87a0296 0x4974b0 0x49c599 0x49ea36 0x7f37d8749cdd 0x496769 
       mongodb-linux-x86_64-2.2.0-rc0/bin/mongo(_ZN5mongo15printStackTraceERSo+0x21) [0x538591]
       mongodb-linux-x86_64-2.2.0-rc0/bin/mongo(_Z12quitAbruptlyi+0x382) [0x497bb2]
       /lib64/libc.so.6(+0x32900) [0x7f37d875d900]
       /lib64/libc.so.6(gsignal+0x35) [0x7f37d875d885]
       /lib64/libc.so.6(abort+0x175) [0x7f37d875f065]
       /lib64/libc.so.6(+0x6f977) [0x7f37d879a977]
       /lib64/libc.so.6(+0x75296) [0x7f37d87a0296]
       mongodb-linux-x86_64-2.2.0-rc0/bin/mongo(_Z10finishCodeSs+0xe0) [0x4974b0]
       mongodb-linux-x86_64-2.2.0-rc0/bin/mongo(_Z5_mainiPPc+0x2079) [0x49c599]
       mongodb-linux-x86_64-2.2.0-rc0/bin/mongo(main+0x26) [0x49ea36]
       /lib64/libc.so.6(__libc_start_main+0xfd) [0x7f37d8749cdd]
       mongodb-linux-x86_64-2.2.0-rc0/bin/mongo(__gxx_personality_v0+0x2a1) [0x496769]

        Attachments

          Activity

            People

            Assignee:
            tad Tad Marshall
            Reporter:
            asya Asya Kamsky
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: