Project

General

Profile

Bug #884

testrados: glibc detected *** /home/ceph/ceph-server/src/.libs/lt-testrados: free(): invalid pointer: 0x00007f3dfef4d6c0

Added by changping Wu over 10 years ago. Updated about 10 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Hi ,
reproduce steps:

1. ceph version: master 34cf240d70d1992263e32931031b2ba6cd497f14
2.testrados.c ,set rados_conf_set(cl, "mon host","172.16.10.10");
3.run ./testrados,then printf a invalid pointer error.

4. this bug should be in src/config.cc ,line 975 :

934 int md_config_t::
935 set_val(const char *key, const char *val)
936 {

.............................

955       case OPT_STR: {
956   char p = (char)opt->val_ptr;
957   free(p);
958   opt->val_ptr = strdup(val);
959   return 0;
960       }
===================================================================
jeff@cephhost:~/work/ceph/ceph-server$ ./src/testrados
  • glibc detected * /home/ceph/ceph-server/src/.libs/lt-testrados: free(): invalid pointer: 0x00007f3dfef4d6c0 * ======= Backtrace: =========
    /lib/libc.so.6(+0x774b6)[0x7f3dfe8ab4b6]
    /lib/libc.so.6(cfree+0x73)[0x7f3dfe8b1c83]
    /home/ceph/ceph-server/src/.libs/librados.so.2(ZN11md_config_t7set_valEPKcS1_+0x186)[0x7f3dfecfaf56]
    /home/ceph/ceph-server/src/.libs/lt-testrados(main+0x68)[0x4013d8]
    /lib/libc.so.6(
    _libc_start_main+0xfe)[0x7f3dfe852d8e]
    /home/ceph/ceph-server/src/.libs/lt-testrados[0x4012a9] ======= Memory map: ========
    00400000-00403000 r-xp 00000000 08:06 2369310 /home/ceph/ceph-server/src/.libs/lt-testrados
    00602000-00603000 r--p 00002000 08:06 2369310 /home/ceph/ceph-server/src/.libs/lt-testrados
    00603000-00604000 rw-p 00003000 08:06 2369310 /home/ceph/ceph-server/src/.libs/lt-testrados
    0176b000-0178c000 rw-p 00000000 00:00 0 [heap]
    7f3df8000000-7f3df8021000 rw-p 00000000 00:00 0
    7f3df8021000-7f3dfc000000 ---p 00000000 00:00 0
    7f3dfd5b6000-7f3dfd5cb000 r-xp 00000000 08:05 2359375 /lib/libgcc_s.so.1
    7f3dfd5cb000-7f3dfd7ca000 ---p 00015000 08:05 2359375 /lib/libgcc_s.so.1
    7f3dfd7ca000-7f3dfd7cb000 r--p 00014000 08:05 2359375 /lib/libgcc_s.so.1
    7f3dfd7cb000-7f3dfd7cc000 rw-p 00015000 08:05 2359375 /lib/libgcc_s.so.1
    7f3dfd7cc000-7f3dfd84e000 r-xp 00000000 08:05 2364627 /lib/libm-2.12.1.so
    7f3dfd84e000-7f3dfda4d000 ---p 00082000 08:05 2364627 /lib/libm-2.12.1.so
    7f3dfda4d000-7f3dfda4e000 r--p 00081000 08:05 2364627 /lib/libm-2.12.1.so
    7f3dfda4e000-7f3dfda4f000 rw-p 00082000 08:05 2364627 /lib/libm-2.12.1.so
    7f3dfda4f000-7f3dfdb37000 r-xp 00000000 08:05 1969787 /usr/lib/libstdc++.so.6.0.14
    7f3dfdb37000-7f3dfdd36000 ---p 000e8000 08:05 1969787 /usr/lib/libstdc++.so.6.0.14
    7f3dfdd36000-7f3dfdd3e000 r--p 000e7000 08:05 1969787 /usr/lib/libstdc++.so.6.0.14
    7f3dfdd3e000-7f3dfdd40000 rw-p 000ef000 08:05 1969787 /usr/lib/libstdc++.so.6.0.14
    7f3dfdd40000-7f3dfdd55000 rw-p 00000000 00:00 0
    7f3dfdd55000-7f3dfe1a1000 r-xp 00000000 08:05 1974719 /usr/lib/libcrypto++.so.8.0.0
    7f3dfe1a1000-7f3dfe3a1000 ---p 0044c000 08:05 1974719 /usr/lib/libcrypto++.so.8.0.0
    7f3dfe3a1000-7f3dfe409000 r--p 0044c000 08:05 1974719 /usr/lib/libcrypto++.so.8.0.0
    7f3dfe409000-7f3dfe40d000 rw-p 004b4000 08:05 1974719 /usr/lib/libcrypto++.so.8.0.0
    7f3dfe40d000-7f3dfe411000 rw-p 00000000 00:00 0
    7f3dfe411000-7f3dfe429000 r-xp 00000000 08:05 2364637 /lib/libpthread-2.12.1.so
    7f3dfe429000-7f3dfe628000 ---p 00018000 08:05 2364637 /lib/libpthread-2.12.1.so
    7f3dfe628000-7f3dfe629000 r--p 00017000 08:05 2364637 /lib/libpthread-2.12.1.so
    7f3dfe629000-7f3dfe62a000 rw-p 00018000 08:05 2364637 /lib/libpthread-2.12.1.so
    7f3dfe62a000-7f3dfe62e000 rw-p 00000000 00:00 0
    7f3dfe62e000-7f3dfe633000 r-xp 00000000 08:06 2369091 /home/ceph/ceph-server/src/.libs/libcrush.so.1.0.0
    7f3dfe633000-7f3dfe832000 ---p 00005000 08:06 2369091 /home/ceph/ceph-server/src/.libs/libcrush.so.1.0.0
    7f3dfe832000-7f3dfe833000 r--p 00004000 08:06 2369091 /home/ceph/ceph-server/src/.libs/libcrush.so.1.0.0
    7f3dfe833000-7f3dfe834000 rw-p 00005000 08:06 2369091 /home/ceph/ceph-server/src/.libs/libcrush.so.1.0.0
    7f3dfe834000-7f3dfe9ae000 r-xp 00000000 08:05 2364623 /lib/libc-2.12.1.so
    7f3dfe9ae000-7f3dfebad000 ---p 0017a000 08:05 2364623 /lib/libc-2.12.1.so
    7f3dfebad000-7f3dfebb1000 r--p 00179000 08:05 2364623 /lib/libc-2.12.1.so
    7f3dfebb1000-7f3dfebb2000 rw-p 0017d000 08:05 2364623 /lib/libc-2.12.1.so
    7f3dfebb2000-7f3dfebb7000 rw-p 00000000 00:00 0
    7f3dfebb7000-7f3dfed3d000 r-xp 00000000 08:06 2368409 /home/ceph/ceph-server/src/.libs/librados.so.2.0.0
    7f3dfed3d000-7f3dfef3d000 ---p 00186000 08:06 2368409 /home/ceph/ceph-server/src/.libs/librados.so.2.0.0
    7f3dfef3d000-7f3dfef43000 r--p 00186000 08:06 2368409 /home/ceph/ceph-server/src/.libs/librados.so.2.0.0
    7f3dfef43000-7f3dfef4d000 rw-p 0018c000 08:06 2368409 /home/ceph/ceph-server/src/.libs/librados.so.2.0.0
    7f3dfef4d000-7f3dfef62000 rw-p 00000000 00:00 0
    7f3dfef62000-7f3dfef82000 r-xp 00000000 08:05 2359317 /lib/ld-2.12.1.so
    7f3dff15b000-7f3dff162000 rw-p 00000000 00:00 0
    7f3dff17f000-7f3dff182000 rw-p 00000000 00:00 0
    7f3dff182000-7f3dff183000 r--p 00020000 08:05 2359317 /lib/ld-2.12.1.so
    7f3dff183000-7f3dff184000 rw-p 00021000 08:05 2359317 /lib/ld-2.12.1.so
    7f3dff184000-7f3dff185000 rw-p 00000000 00:00 0
    7fff604bf000-7fff604e0000 rw-p 00000000 00:00 0 [stack]
    7fff605ff000-7fff60600000 r-xp 00000000 00:00 0 [vdso]
    ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
    aborted

History

#1 Updated by Sage Weil over 10 years ago

  • Assignee set to Colin McCabe

#2 Updated by Sage Weil over 10 years ago

  • Target version set to v0.25.2

#3 Updated by Colin McCabe about 10 years ago

  • Status changed from New to Resolved

Also available in: Atom PDF