Vampire a Samba4 domain to Samba3?
Matthieu Patou
mat at samba.org
Fri Mar 18 00:47:16 MDT 2011
On 18/03/2011 05:29, Taylor, Jonn wrote:
> On 03/17/2011 05:18 PM, Matthieu Patou wrote:
>> Hi Taylor& Christian
>>>> The default, ldb.
>>>>
>>>> I assume we would need to get the dc replication up as a simple
>>>> rsync of
>>>> (parts of) samba/private wouldn't suffice as replication?
>>>>
>>>>
>>> This is the same problem that I have been having. I was seeming is stuck
>>> ldb transactions or samba4 would completely crash. I even sent you logs
>>> and dumps on this problem.
>>>
>> Well normally the replication for ldb using vampire should just work I
>> vampirized a domain one more time with success last days.
>>
>> Can you resend the logs related to your pb (or point me the message).
>> I might have just forget about it !
>> Sorry !
>>
>> Matthieu.
>>
> Mat, I forwarded you the 2 messages that I sent you.
>
Yeah got them, at least one didn't ring a bell at all for me so I don't
remember reading it ;-(.
In order to have a more useful backtrace we need a real dump of samba to
see how it was when it crashed.
This can be done by adding:
panic action = /usr/local/src/samba4/selftest/gdb_backtrace %PID%
Then you should get something like this:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
INTERNAL ERROR: Signal 11 in pid 5506 (4.0.0alpha15-GIT-8087790)
Please read the file BUGS.txt in the distribution
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
smb_panic(): calling panic action
[/usr/local/src/samba4/selftest/gdb_backtrace 5506 %PROC%]
gdb_backtrace: Trying to use /usr/bin/gdb on /proc/5506/exe on PID 5506
[Thread debugging using libthread_db enabled]
0xb7860430 in __kernel_vsyscall ()
#0 0xb7860430 in __kernel_vsyscall ()
No symbol table info available.
#1 0xb72cac53 in __waitpid_nocancel () at
../sysdeps/unix/syscall-template.S:82
No locals.
#2 0xb726b343 in do_system (line=<value optimized out>) at
../sysdeps/posix/system.c:149
__result = -512
_buffer = {__routine = 0xb726b700 <cancel_handler>, __arg =
0xbfc16d74, __canceltype = 0, __prev = 0x0}
_avail = 1
status = <value optimized out>
save = -1077842732
pid = 5523
sa = {__sigaction_handler = {sa_handler = 0x1, sa_sigaction =
0x1}, sa_mask = {__val = {65536, 0 <repeats 31 times>}}, sa_flags = 0,
sa_restorer = 0}
omask = {__val = {7808, 0, 3217124660, 176045392, 3074024137,
0, 3074409853, 1, 3078216910, 3072980886, 1, 4278190080, 0, 0,
3217124644, 67, 3074437108, 3072558016, 3074316312, 3074430954,
4294967295, 3079135220, 3074024137, 1, 3217124720, 3079074102,
3074315400, 3063217152, 1, 1, 0, 1}}
#3 0xb73a99dd in system (line=0xbfc16dd0
"/usr/local/src/samba4/selftest/gdb_backtrace 5506 %PROC%") at
pt-system.c:29
No locals.
#4 0xb77a0deb in smb_panic (why=0xb77a8328 "internal error") at
../lib/util/fault.c:134
pidstr =
"5506\000v\301\277\330n\301\277\220M\207\267\220\336\023\n"
cmdstring = "/usr/local/src/samba4/selftest/gdb_backtrace 5506
%PROC%\000\000\000\000}\305?\267\001\000\000\000\276\331y\267\226\367)\267\245\221x\267\000\000\000\267\000\000\000\000\000\000\000\000Dn\301\277\237\221x\267\364/@\267Xn\301\277\311\305?\267\352\027@\267\220\274\376\t@\322y\267\340\262|\267\000\000\000\000\377\377\377\377\364߇\267\276\331y\267\001\000\000\000\240n\301\277\066\361\206\267\230\264|\267\320\n\225\266\001\000\000\000\001\000\000\000\000\000\000\000\001\000\000\000`\331y\267X\360\000\000\000\300y\267@\322y\267\364\257z\267"
result = 1
__FUNCTION__ = "smb_panic"
#5 0xb77a10e0 in fault_report (sig=11) at ../lib/util/fault.c:167
counter = 0
__FUNCTION__ = "fault_report"
#6 0xb77a1115 in sig_fault (sig=11) at ../lib/util/fault.c:182
No locals.
#7 <signal handler called>
No symbol table info available.
#8 0xb7860430 in __kernel_vsyscall ()
No symbol table info available.
#9 0xb7302fa8 in __epoll_wait_nocancel () at
../sysdeps/unix/syscall-template.S:82
No locals.
#10 0xb778675e in epoll_event_loop (std_ev=0x9ffff08, tvalp=0xbfc174f4)
at ../lib/tevent/tevent_standard.c:264
ret = 950324
i = 4
events = {{events = 1, data = {ptr = 0xb777eff4, fd =
-1216876556, u32 = 3078090740, u64 = 20257959924}}}
timeout = 4951
#11 0xb7787009 in std_event_loop_once (ev=0x9fffe98, location=0x80550f3
"../source4/smbd/server.c:481") at ../lib/tevent/tevent_standard.c:548
std_ev = 0x9ffff08
tval = {tv_sec = 4, tv_usec = 950324}
#12 0xb7782be0 in _tevent_loop_once (ev=0x9fffe98, location=0x80550f3
"../source4/smbd/server.c:481") at ../lib/tevent/tevent.c:494
ret = 0
nesting_stack_ptr = 0x0
#13 0xb7782dff in tevent_common_loop_wait (ev=0x9fffe98,
location=0x80550f3 "../source4/smbd/server.c:481") at
../lib/tevent/tevent.c:595
ret = 0
#14 0xb7782eb1 in _tevent_loop_wait (ev=0x9fffe98, location=0x80550f3
"../source4/smbd/server.c:481") at ../lib/tevent/tevent.c:614
No locals.
#15 0x08050ed0 in binary_smbd_main (binary_name=0x8054ad3 "samba",
argc=6, argv=0xbfc17814) at ../source4/smbd/server.c:481
opt_daemon = false
opt_interactive = true
opt = -1
pc = 0x9fea028
static_init = {0xb77d4c5c <server_service_auth_init>,
0xb77d71a1 <server_service_echo_init>, 0}
shared_init = 0xa00f620
event_ctx = 0x9fffe98
stdin_event_flags = 1
status = {v = 0}
model = 0x9febb40 "single"
max_runtime = 0
long_options = {{longName = 0x0, shortName = 0 '\000', argInfo
= 4, arg = 0xb739a100, val = 0, descrip = 0x8054c77 "Help options:",
argDescrip = 0x0}, {longName = 0x8054c85 "daemon", shortName = 68 'D',
argInfo = 0, arg = 0x0, val = 1000, descrip = 0x8054c8c "Become a daemon
(default)", argDescrip = 0x0}, {longName = 0x8054ca6 "interactive",
shortName = 105 'i', argInfo = 0, arg = 0x0, val = 1001, descrip =
0x8054cb4 "Run interactive (not a daemon)", argDescrip = 0x0}, {longName
= 0x8054cd3 "model", shortName = 77 'M', argInfo = 1, arg = 0x0, val =
1002, descrip = 0x8054cd9 "Select process model", argDescrip = 0x8054cee
"MODEL"}, {longName = 0x8054cf4 "maximum-runtime", shortName = 0 '\000',
argInfo = 2, arg = 0xbfc17700, val = 0, descrip = 0x8054d04 "set maximum
runtime of the server process, till autotermination", argDescrip =
0x8054d44 "seconds"}, {longName = 0x8054d4c "show-build", shortName = 98
'b', argInfo = 0, arg = 0x0, val = 1003, descrip = 0x8054d57 "show build
info", argDescrip = 0x0}, {longName = 0x0, shortName = 0 '\000', argInfo
= 4, arg = 0x80573e0, val = 0, descrip = 0x8054d67 "Common samba
options:", argDescrip = 0x0}, {longName = 0x0, shortName = 0 '\000',
argInfo = 4, arg = 0x80574e0, val = 0, descrip = 0x8054d67 "Common samba
options:", argDescrip = 0x0}, {longName = 0x0, shortName = 0 '\000',
argInfo = 0, arg = 0x0, val = 0, descrip = 0x0, argDescrip = 0x0}}
__FUNCTION__ = "binary_smbd_main"
#16 0x08050f26 in main (argc=6, argv=0xbfc17814) at
../source4/smbd/server.c:492
No locals.
Thread 1 (Thread 0xb694c6e0 (LWP 5506)):
#0 0xb7860430 in __kernel_vsyscall ()
No symbol table info available.
#1 0xb72cac53 in __waitpid_nocancel () at
../sysdeps/unix/syscall-template.S:82
No locals.
#2 0xb726b343 in do_system (line=<value optimized out>) at
../sysdeps/posix/system.c:149
__result = -512
_buffer = {__routine = 0xb726b700 <cancel_handler>, __arg =
0xbfc16d74, __canceltype = 0, __prev = 0x0}
_avail = 1
status = <value optimized out>
save = -1077842732
pid = 5523
sa = {__sigaction_handler = {sa_handler = 0x1, sa_sigaction =
0x1}, sa_mask = {__val = {65536, 0 <repeats 31 times>}}, sa_flags = 0,
sa_restorer = 0}
omask = {__val = {7808, 0, 3217124660, 176045392, 3074024137,
0, 3074409853, 1, 3078216910, 3072980886, 1, 4278190080, 0, 0,
3217124644, 67, 3074437108, 3072558016, 3074316312, 3074430954,
4294967295, 3079135220, 3074024137, 1, 3217124720, 3079074102,
3074315400, 3063217152, 1, 1, 0, 1}}
#3 0xb73a99dd in system (line=0xbfc16dd0
"/usr/local/src/samba4/selftest/gdb_backtrace 5506 %PROC%") at
pt-system.c:29
No locals.
#4 0xb77a0deb in smb_panic (why=0xb77a8328 "internal error") at
../lib/util/fault.c:134
pidstr =
"5506\000v\301\277\330n\301\277\220M\207\267\220\336\023\n"
cmdstring = "/usr/local/src/samba4/selftest/gdb_backtrace 5506
%PROC%\000\000\000\000}\305?\267\001\000\000\000\276\331y\267\226\367)\267\245\221x\267\000\000\000\267\000\000\000\000\000\000\000\000Dn\301\277\237\221x\267\364/@\267Xn\301\277\311\305?\267\352\027@\267\220\274\376\t@\322y\267\340\262|\267\000\000\000\000\377\377\377\377\364߇\267\276\331y\267\001\000\000\000\240n\301\277\066\361\206\267\230\264|\267\320\n\225\266\001\000\000\000\001\000\000\000\000\000\000\000\001\000\000\000`\331y\267X\360\000\000\000\300y\267@\322y\267\364\257z\267"
result = 1
__FUNCTION__ = "smb_panic"
#5 0xb77a10e0 in fault_report (sig=11) at ../lib/util/fault.c:167
counter = 0
__FUNCTION__ = "fault_report"
#6 0xb77a1115 in sig_fault (sig=11) at ../lib/util/fault.c:182
No locals.
#7 <signal handler called>
No symbol table info available.
#8 0xb7860430 in __kernel_vsyscall ()
No symbol table info available.
#9 0xb7302fa8 in __epoll_wait_nocancel () at
../sysdeps/unix/syscall-template.S:82
No locals.
#10 0xb778675e in epoll_event_loop (std_ev=0x9ffff08, tvalp=0xbfc174f4)
at ../lib/tevent/tevent_standard.c:264
ret = 950324
i = 4
events = {{events = 1, data = {ptr = 0xb777eff4, fd =
-1216876556, u32 = 3078090740, u64 = 20257959924}}}
timeout = 4951
#11 0xb7787009 in std_event_loop_once (ev=0x9fffe98, location=0x80550f3
"../source4/smbd/server.c:481") at ../lib/tevent/tevent_standard.c:548
std_ev = 0x9ffff08
tval = {tv_sec = 4, tv_usec = 950324}
#12 0xb7782be0 in _tevent_loop_once (ev=0x9fffe98, location=0x80550f3
"../source4/smbd/server.c:481") at ../lib/tevent/tevent.c:494
ret = 0
nesting_stack_ptr = 0x0
#13 0xb7782dff in tevent_common_loop_wait (ev=0x9fffe98,
location=0x80550f3 "../source4/smbd/server.c:481") at
../lib/tevent/tevent.c:595
ret = 0
#14 0xb7782eb1 in _tevent_loop_wait (ev=0x9fffe98, location=0x80550f3
"../source4/smbd/server.c:481") at ../lib/tevent/tevent.c:614
No locals.
#15 0x08050ed0 in binary_smbd_main (binary_name=0x8054ad3 "samba",
argc=6, argv=0xbfc17814) at ../source4/smbd/server.c:481
opt_daemon = false
opt_interactive = true
opt = -1
pc = 0x9fea028
static_init = {0xb77d4c5c <server_service_auth_init>,
0xb77d71a1 <server_service_echo_init>, 0}
shared_init = 0xa00f620
event_ctx = 0x9fffe98
stdin_event_flags = 1
status = {v = 0}
model = 0x9febb40 "single"
max_runtime = 0
long_options = {{longName = 0x0, shortName = 0 '\000', argInfo
= 4, arg = 0xb739a100, val = 0, descrip = 0x8054c77 "Help options:",
argDescrip = 0x0}, {longName = 0x8054c85 "daemon", shortName = 68 'D',
argInfo = 0, arg = 0x0, val = 1000, descrip = 0x8054c8c "Become a daemon
(default)", argDescrip = 0x0}, {longName = 0x8054ca6 "interactive",
shortName = 105 'i', argInfo = 0, arg = 0x0, val = 1001, descrip =
0x8054cb4 "Run interactive (not a daemon)", argDescrip = 0x0}, {longName
= 0x8054cd3 "model", shortName = 77 'M', argInfo = 1, arg = 0x0, val =
1002, descrip = 0x8054cd9 "Select process model", argDescrip = 0x8054cee
"MODEL"}, {longName = 0x8054cf4 "maximum-runtime", shortName = 0 '\000',
argInfo = 2, arg = 0xbfc17700, val = 0, descrip = 0x8054d04 "set maximum
runtime of the server process, till autotermination", argDescrip =
0x8054d44 "seconds"}, {longName = 0x8054d4c "show-build", shortName = 98
'b', argInfo = 0, arg = 0x0, val = 1003, descrip = 0x8054d57 "show build
info", argDescrip = 0x0}, {longName = 0x0, shortName = 0 '\000', argInfo
= 4, arg = 0x80573e0, val = 0, descrip = 0x8054d67 "Common samba
options:", argDescrip = 0x0}, {longName = 0x0, shortName = 0 '\000',
argInfo = 4, arg = 0x80574e0, val = 0, descrip = 0x8054d67 "Common samba
options:", argDescrip = 0x0}, {longName = 0x0, shortName = 0 '\000',
argInfo = 0, arg = 0x0, val = 0, descrip = 0x0, argDescrip = 0x0}}
__FUNCTION__ = "binary_smbd_main"
#16 0x08050f26 in main (argc=6, argv=0xbfc17814) at
../source4/smbd/server.c:492
No locals.
No symbol table info available.
A debugging session is active.
Inferior 1 [process 5506] will be detached.
Quit anyway? (y or n) [answered Y; input not from terminal]
smb_panic(): action returned status 0
PANIC: internal error
BACKTRACE: 13 stack frames:
#0
/usr/local/src/samba4/bin/shared/libsamba-util.so.0(call_backtrace+0x2b)
[0xb77a0bc7]
#1
/usr/local/src/samba4/bin/shared/libsamba-util.so.0(smb_panic+0x2a6)
[0xb77a0f3b]
#2 /usr/local/src/samba4/bin/shared/libsamba-util.so.0(+0x50e0)
[0xb77a10e0]
#3 /usr/local/src/samba4/bin/shared/libsamba-util.so.0(fault_setup+0)
[0xb77a1115]
#4 [0xb7860400]
#5 /usr/local/src/samba4/bin/shared/private/libtevent.so.0(+0x7009)
[0xb7787009]
#6
/usr/local/src/samba4/bin/shared/private/libtevent.so.0(_tevent_loop_once+0xdd)
[0xb7782be0]
#7
/usr/local/src/samba4/bin/shared/private/libtevent.so.0(tevent_common_loop_wait+0x26)
[0xb7782dff]
#8
/usr/local/src/samba4/bin/shared/private/libtevent.so.0(_tevent_loop_wait+0x1d)
[0xb7782eb1]
#9 ./bin/samba() [0x8050ed0]
#10 ./bin/samba() [0x8050f26]
#11 /lib/libc.so.6(__libc_start_main+0xe7) [0xb7248ce7]
#12 ./bin/samba() [0x804b3a1]
Abandon
In order to check that your backtrace trapper is working the best is to
start samba and kill it with signal 11:
pkill -11 samba.
--
Matthieu Patou
Samba Team http://samba.org
Private repo http://git.samba.org/?p=mat/samba.git;a=summary
More information about the samba-technical
mailing list