[해결방법] PANIC (pid 4485): Bad talloc magic value – access after free

This topic contains 0 replies, has 1 voice, and was last updated by  technote 2017-10-30 18:13.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #217

    technote
    Keymaster

    아무리 설정을 해도 windows pc에서 ubuntu samba 로 접속이 안된다.
    samba 로그를 뒤져서 문제 로그 확인하고 검색해 보니 재설치가 답.

    문제 발생 환경
    OS : Ubuntu 14.04

    해결 방법 : 재설치
    apt-get install –reinstall libsmbclient libsmbclient-dev libtevent0 libtalloc2

    문제 로그
    [2017/10/30 18:06:26.416214, 0] ../source3/lib/popt_common.c:68(popt_s3_talloc_log_fn)
    talloc: access after free error – first free may be at (null)
    [2017/10/30 18:06:26.416319, 0] ../source3/lib/popt_common.c:68(popt_s3_talloc_log_fn)
    Bad talloc magic value – access after free
    [2017/10/30 18:06:26.416363, 0] ../source3/lib/util.c:789(smb_panic_s3)
    PANIC (pid 4638): Bad talloc magic value – access after free
    [2017/10/30 18:06:26.418367, 0] ../source3/lib/util.c:900(log_stack_trace)
    BACKTRACE: 29 stack frames:
    #0 /usr/lib/x86_64-linux-gnu/samba/libsmbregistry.so.0(log_stack_trace+0x1a) [0x7f63e78b61da]
    #1 /usr/lib/x86_64-linux-gnu/samba/libsmbregistry.so.0(smb_panic_s3+0x20) [0x7f63e78b62b0]
    #2 /usr/lib/x86_64-linux-gnu/libsamba-util.so.0(smb_panic+0x2f) [0x7f63e862d8df]
    #3 /usr/lib/x86_64-linux-gnu/libtalloc.so.2(+0x1b5f) [0x7f63e53b4b5f]
    #4 /usr/lib/x86_64-linux-gnu/libtalloc.so.2(_talloc_free+0x4a5) [0x7f63e53b52c5]
    #5 /usr/lib/x86_64-linux-gnu/libsamba-util.so.0(+0x1246c) [0x7f63e862446c]
    #6 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(+0x18b567) [0x7f63e826f567]
    #7 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(get_share_mode_lock+0x17e) [0x7f63e827002e]
    #8 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(+0xfc6ce) [0x7f63e81e06ce]
    #9 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(+0x100d6c) [0x7f63e81e4d6c]
    #10 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(create_file_default+0x1cf) [0x7f63e81e61ff]
    #11 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(+0x1d973e) [0x7f63e82bd73e]
    #12 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(smb_vfs_call_create_file+0xd8) [0x7f63e81eca38]
    #13 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(smbd_smb2_request_process_create+0x1a24) [0x7f63e821b354]
    #14 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(smbd_smb2_request_dispatch+0xc4d) [0x7f63e8212dfd]
    #15 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(+0x12fa82) [0x7f63e8213a82]
    #16 /usr/lib/x86_64-linux-gnu/libsmbconf.so.0(run_events_poll+0x16c) [0x7f63e654e95c]
    #17 /usr/lib/x86_64-linux-gnu/libsmbconf.so.0(+0x25bb0) [0x7f63e654ebb0]
    #18 /usr/lib/x86_64-linux-gnu/libtevent.so.0(_tevent_loop_once+0x8d) [0x7f63e51a7d5d]
    #19 /usr/lib/x86_64-linux-gnu/libtevent.so.0(tevent_common_loop_wait+0x1b) [0x7f63e51a7efb]
    #20 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(smbd_process+0x6c9) [0x7f63e82021c9]
    #21 smbd(+0x96b6) [0x55a1bb5026b6]
    #22 /usr/lib/x86_64-linux-gnu/libsmbconf.so.0(run_events_poll+0x16c) [0x7f63e654e95c]
    #23 /usr/lib/x86_64-linux-gnu/libsmbconf.so.0(+0x25bb0) [0x7f63e654ebb0]
    #24 /usr/lib/x86_64-linux-gnu/libtevent.so.0(_tevent_loop_once+0x8d) [0x7f63e51a7d5d]
    #25 /usr/lib/x86_64-linux-gnu/libtevent.so.0(tevent_common_loop_wait+0x1b) [0x7f63e51a7efb]
    #26 smbd(main+0x15b4) [0x55a1bb5006c4]
    #27 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f63e4e00ec5]
    #28 smbd(+0x7a96) [0x55a1bb500a96]
    [2017/10/30 18:06:26.418754, 0] ../source3/lib/util.c:801(smb_panic_s3)
    smb_panic(): calling panic action [/usr/share/samba/panic-action 4638]
    [2017/10/30 18:06:26.424545, 0] ../source3/lib/util.c:809(smb_panic_s3)
    smb_panic(): action returned status 0
    [2017/10/30 18:06:26.424625, 0] ../source3/lib/dumpcore.c:303(dump_core)
    dumping core in /var/log/samba/cores/smbd
    [2017/10/30 18:06:26.607208, 0] ../source3/lib/popt_common.c:68(popt_s3_talloc_log_fn)
    talloc: access after free error – first free may be at ../source3/smbd/open.c:4026
    [2017/10/30 18:06:26.607238, 0] ../source3/lib/popt_common.c:68(popt_s3_talloc_log_fn)
    Bad talloc magic value – access after free
    [2017/10/30 18:06:26.607252, 0] ../source3/lib/util.c:789(smb_panic_s3)
    PANIC (pid 4689): Bad talloc magic value – access after free
    [2017/10/30 18:06:26.607912, 0] ../source3/lib/util.c:900(log_stack_trace)
    BACKTRACE: 29 stack frames:
    #0 /usr/lib/x86_64-linux-gnu/samba/libsmbregistry.so.0(log_stack_trace+0x1a) [0x7f63e78b61da]
    #1 /usr/lib/x86_64-linux-gnu/samba/libsmbregistry.so.0(smb_panic_s3+0x20) [0x7f63e78b62b0]
    #2 /usr/lib/x86_64-linux-gnu/libsamba-util.so.0(smb_panic+0x2f) [0x7f63e862d8df]
    #3 /usr/lib/x86_64-linux-gnu/libtalloc.so.2(+0x1b5f) [0x7f63e53b4b5f]
    #4 /usr/lib/x86_64-linux-gnu/libtalloc.so.2(_talloc_steal_loc+0xab) [0x7f63e53bb77b]
    #5 /usr/lib/x86_64-linux-gnu/libtalloc.so.2(_talloc_move+0x13) [0x7f63e53bb7b3]
    #6 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(+0x18b3d8) [0x7f63e826f3d8]
    #7 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(get_share_mode_lock+0x17e) [0x7f63e827002e]
    #8 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(+0xfc6ce) [0x7f63e81e06ce]
    #9 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(+0x100d6c) [0x7f63e81e4d6c]
    #10 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(create_file_default+0x1cf) [0x7f63e81e61ff]
    #11 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(+0x1d973e) [0x7f63e82bd73e]
    #12 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(smb_vfs_call_create_file+0xd8) [0x7f63e81eca38]
    #13 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(smbd_smb2_request_process_create+0x1a24) [0x7f63e821b354]
    #14 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(smbd_smb2_request_dispatch+0xc4d) [0x7f63e8212dfd]
    #15 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(+0x12fa82) [0x7f63e8213a82]
    #16 /usr/lib/x86_64-linux-gnu/libsmbconf.so.0(run_events_poll+0x16c) [0x7f63e654e95c]
    #17 /usr/lib/x86_64-linux-gnu/libsmbconf.so.0(+0x25bb0) [0x7f63e654ebb0]
    #18 /usr/lib/x86_64-linux-gnu/libtevent.so.0(_tevent_loop_once+0x8d) [0x7f63e51a7d5d]
    #19 /usr/lib/x86_64-linux-gnu/libtevent.so.0(tevent_common_loop_wait+0x1b) [0x7f63e51a7efb]
    #20 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(smbd_process+0x6c9) [0x7f63e82021c9]
    #21 smbd(+0x96b6) [0x55a1bb5026b6]
    #22 /usr/lib/x86_64-linux-gnu/libsmbconf.so.0(run_events_poll+0x16c) [0x7f63e654e95c]
    #23 /usr/lib/x86_64-linux-gnu/libsmbconf.so.0(+0x25bb0) [0x7f63e654ebb0]
    #24 /usr/lib/x86_64-linux-gnu/libtevent.so.0(_tevent_loop_once+0x8d) [0x7f63e51a7d5d]
    #25 /usr/lib/x86_64-linux-gnu/libtevent.so.0(tevent_common_loop_wait+0x1b) [0x7f63e51a7efb]
    #26 smbd(main+0x15b4) [0x55a1bb5006c4]
    #27 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f63e4e00ec5]
    #28 smbd(+0x7a96) [0x55a1bb500a96]
    [2017/10/30 18:06:26.608035, 0] ../source3/lib/util.c:801(smb_panic_s3)
    smb_panic(): calling panic action [/usr/share/samba/panic-action 4689]
    [2017/10/30 18:06:26.610762, 0] ../source3/lib/util.c:809(smb_panic_s3)
    smb_panic(): action returned status 0
    [2017/10/30 18:06:26.610838, 0] ../source3/lib/dumpcore.c:303(dump_core)
    dumping core in /var/log/samba/cores/smbd
    [2017/10/30 18:06:26.782523, 0] ../source3/lib/popt_common.c:68(popt_s3_talloc_log_fn)
    Bad talloc magic value – unknown value
    [2017/10/30 18:06:26.782565, 0] ../source3/lib/util.c:789(smb_panic_s3)
    PANIC (pid 4693): Bad talloc magic value – unknown value
    [2017/10/30 18:06:26.783567, 0] ../source3/lib/util.c:900(log_stack_trace)
    BACKTRACE: 28 stack frames:
    #0 /usr/lib/x86_64-linux-gnu/samba/libsmbregistry.so.0(log_stack_trace+0x1a) [0x7f63e78b61da]
    #1 /usr/lib/x86_64-linux-gnu/samba/libsmbregistry.so.0(smb_panic_s3+0x20) [0x7f63e78b62b0]
    #2 /usr/lib/x86_64-linux-gnu/libsamba-util.so.0(smb_panic+0x2f) [0x7f63e862d8df]
    #3 /usr/lib/x86_64-linux-gnu/libtalloc.so.2(_talloc_free+0x4de) [0x7f63e53b52fe]
    #4 /usr/lib/x86_64-linux-gnu/libsamba-util.so.0(+0x1246c) [0x7f63e862446c]
    #5 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(+0x18b567) [0x7f63e826f567]
    #6 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(get_share_mode_lock+0x17e) [0x7f63e827002e]
    #7 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(+0xfc6ce) [0x7f63e81e06ce]
    #8 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(+0x100d6c) [0x7f63e81e4d6c]
    #9 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(create_file_default+0x1cf) [0x7f63e81e61ff]
    #10 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(+0x1d973e) [0x7f63e82bd73e]
    #11 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(smb_vfs_call_create_file+0xd8) [0x7f63e81eca38]
    #12 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(smbd_smb2_request_process_create+0x1a24) [0x7f63e821b354]
    #13 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(smbd_smb2_request_dispatch+0xc4d) [0x7f63e8212dfd]
    #14 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(+0x12fa82) [0x7f63e8213a82]
    #15 /usr/lib/x86_64-linux-gnu/libsmbconf.so.0(run_events_poll+0x16c) [0x7f63e654e95c]
    #16 /usr/lib/x86_64-linux-gnu/libsmbconf.so.0(+0x25bb0) [0x7f63e654ebb0]
    #17 /usr/lib/x86_64-linux-gnu/libtevent.so.0(_tevent_loop_once+0x8d) [0x7f63e51a7d5d]
    #18 /usr/lib/x86_64-linux-gnu/libtevent.so.0(tevent_common_loop_wait+0x1b) [0x7f63e51a7efb]
    #19 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(smbd_process+0x6c9) [0x7f63e82021c9]
    #20 smbd(+0x96b6) [0x55a1bb5026b6]
    #21 /usr/lib/x86_64-linux-gnu/libsmbconf.so.0(run_events_poll+0x16c) [0x7f63e654e95c]
    #22 /usr/lib/x86_64-linux-gnu/libsmbconf.so.0(+0x25bb0) [0x7f63e654ebb0]
    #23 /usr/lib/x86_64-linux-gnu/libtevent.so.0(_tevent_loop_once+0x8d) [0x7f63e51a7d5d]
    #24 /usr/lib/x86_64-linux-gnu/libtevent.so.0(tevent_common_loop_wait+0x1b) [0x7f63e51a7efb]
    #25 smbd(main+0x15b4) [0x55a1bb5006c4]
    #26 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f63e4e00ec5]
    #27 smbd(+0x7a96) [0x55a1bb500a96]
    [2017/10/30 18:06:26.783687, 0] ../source3/lib/util.c:801(smb_panic_s3)
    smb_panic(): calling panic action [/usr/share/samba/panic-action 4693]
    [2017/10/30 18:06:26.786447, 0] ../source3/lib/util.c:809(smb_panic_s3)
    smb_panic(): action returned status 0
    [2017/10/30 18:06:26.786520, 0] ../source3/lib/dumpcore.c:303(dump_core)
    dumping core in /var/log/samba/cores/smbd
    [2017/10/30 18:06:26.957783, 0] ../source3/lib/popt_common.c:68(popt_s3_talloc_log_fn)
    talloc: access after free error – first free may be at ../source3/smbd/open.c:4026
    [2017/10/30 18:06:26.957824, 0] ../source3/lib/popt_common.c:68(popt_s3_talloc_log_fn)
    Bad talloc magic value – access after free
    [2017/10/30 18:06:26.957844, 0] ../source3/lib/util.c:789(smb_panic_s3)
    PANIC (pid 4697): Bad talloc magic value – access after free
    [2017/10/30 18:06:26.958497, 0] ../source3/lib/util.c:900(log_stack_trace)
    BACKTRACE: 34 stack frames:
    #0 /usr/lib/x86_64-linux-gnu/samba/libsmbregistry.so.0(log_stack_trace+0x1a) [0x7f63e78b61da]
    #1 /usr/lib/x86_64-linux-gnu/samba/libsmbregistry.so.0(smb_panic_s3+0x20) [0x7f63e78b62b0]
    #2 /usr/lib/x86_64-linux-gnu/libsamba-util.so.0(smb_panic+0x2f) [0x7f63e862d8df]
    #3 /usr/lib/x86_64-linux-gnu/libtalloc.so.2(+0x1b5f) [0x7f63e53b4b5f]
    #4 /usr/lib/x86_64-linux-gnu/libtalloc.so.2(_talloc_steal_loc+0xab) [0x7f63e53bb77b]
    #5 /usr/lib/x86_64-linux-gnu/libtalloc.so.2(_talloc_move+0x13) [0x7f63e53bb7b3]
    #6 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(+0x18b3d8) [0x7f63e826f3d8]
    #7 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(+0x18b7e1) [0x7f63e826f7e1]
    #8 /usr/lib/x86_64-linux-gnu/samba/libdbwrap.so.0(+0x51ed) [0x7f63e287b1ed]
    #9 /usr/lib/x86_64-linux-gnu/libtdb.so.1(+0x8745) [0x7f63df628745]
    #10 /usr/lib/x86_64-linux-gnu/libtdb.so.1(tdb_parse_record+0x6c) [0x7f63df623edc]
    #11 /usr/lib/x86_64-linux-gnu/samba/libdbwrap.so.0(+0x5559) [0x7f63e287b559]
    #12 /usr/lib/x86_64-linux-gnu/samba/libdbwrap.so.0(dbwrap_parse_record+0x1b) [0x7f63e2878dbb]
    #13 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(fetch_share_mode_unlocked+0x54) [0x7f63e8270454]
    #14 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(get_file_infos+0x60) [0x7f63e8269420]
    #15 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(smbd_dirptr_get_entry+0x738) [0x7f63e8192188]
    #16 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(smbd_dirptr_lanman2_entry+0x1c5) [0x7f63e81c6095]
    #17 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(+0x140f90) [0x7f63e8224f90]
    #18 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(smbd_smb2_request_process_query_directory+0x2e4) [0x7f63e8225604]
    #19 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(smbd_smb2_request_dispatch+0xcad) [0x7f63e8212e5d]
    #20 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(+0x12fa82) [0x7f63e8213a82]
    #21 /usr/lib/x86_64-linux-gnu/libsmbconf.so.0(run_events_poll+0x16c) [0x7f63e654e95c]
    #22 /usr/lib/x86_64-linux-gnu/libsmbconf.so.0(+0x25bb0) [0x7f63e654ebb0]
    #23 /usr/lib/x86_64-linux-gnu/libtevent.so.0(_tevent_loop_once+0x8d) [0x7f63e51a7d5d]
    #24 /usr/lib/x86_64-linux-gnu/libtevent.so.0(tevent_common_loop_wait+0x1b) [0x7f63e51a7efb]
    #25 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(smbd_process+0x6c9) [0x7f63e82021c9]
    #26 smbd(+0x96b6) [0x55a1bb5026b6]
    #27 /usr/lib/x86_64-linux-gnu/libsmbconf.so.0(run_events_poll+0x16c) [0x7f63e654e95c]
    #28 /usr/lib/x86_64-linux-gnu/libsmbconf.so.0(+0x25bb0) [0x7f63e654ebb0]
    #29 /usr/lib/x86_64-linux-gnu/libtevent.so.0(_tevent_loop_once+0x8d) [0x7f63e51a7d5d]
    #30 /usr/lib/x86_64-linux-gnu/libtevent.so.0(tevent_common_loop_wait+0x1b) [0x7f63e51a7efb]
    #31 smbd(main+0x15b4) [0x55a1bb5006c4]
    #32 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f63e4e00ec5]
    #33 smbd(+0x7a96) [0x55a1bb500a96]
    [2017/10/30 18:06:26.958620, 0] ../source3/lib/util.c:801(smb_panic_s3)
    smb_panic(): calling panic action [/usr/share/samba/panic-action 4697]
    [2017/10/30 18:06:26.961404, 0] ../source3/lib/util.c:809(smb_panic_s3)
    smb_panic(): action returned status 0
    [2017/10/30 18:06:26.961491, 0] ../source3/lib/dumpcore.c:303(dump_core)
    dumping core in /var/log/samba/cores/smbd

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.