Skip to content

the lock of lpush #703

Closed
Closed
@cogbee

Description

@cogbee

when I use lpush,accidentally the program stop here(use log to locate).I am sure that redis is working perfectly becasue the other machines is working well.
the more information is here:

[Switching to thread 29 (Thread 0x7fba5d86a700 (LWP 14668))]#0 0x000000376620d720 in sem_wait () from /lib64/libpthread.so.0
(gdb) bt
#0 0x000000376620d720 in sem_wait () from /lib64/libpthread.so.0
#1 0x00000000004ddc18 in PyThread_acquire_lock (lock=0x7fba541e2fa0, waitflag=) at Python/thread_pthread.h:324
#2 0x00000000004e2232 in lock_PyThread_acquire_lock (self=0x2e41df0, args=) at ./Modules/threadmodule.c:52
#3 0x00000000004a8b40 in call_function (f=, throwflag=) at Python/ceval.c:4021
#4 PyEval_EvalFrameEx (f=, throwflag=) at Python/ceval.c:2666
#5 0x00000000004aa627 in PyEval_EvalCodeEx (co=0x7fba63977330, globals=, locals=, args=, argcount=1, kws=0x7fba54001320, kwcount=0,

defs=0x7fba632ad0a8, defcount=1, closure=0x0) at Python/ceval.c:3253

#6 0x00000000004a87d4 in fast_function (f=, throwflag=) at Python/ceval.c:4117
#7 call_function (f=, throwflag=) at Python/ceval.c:4042
#8 PyEval_EvalFrameEx (f=, throwflag=) at Python/ceval.c:2666
#9 0x00000000004aa627 in PyEval_EvalCodeEx (co=0x7fba6245f1b0, globals=, locals=, args=, argcount=1, kws=0x7fba540010f8, kwcount=0,

defs=0x7fba6245aec0, defcount=2, closure=0x0) at Python/ceval.c:3253

#10 0x00000000004a87d4 in fast_function (f=, throwflag=) at Python/ceval.c:4117
#11 call_function (f=, throwflag=) at Python/ceval.c:4042
#12 PyEval_EvalFrameEx (f=, throwflag=) at Python/ceval.c:2666
#13 0x00000000004aa627 in PyEval_EvalCodeEx (co=0x2bea7b0, globals=, locals=, args=, argcount=5, kws=0x7fba69913068, kwcount=0, defs=0x2bf25b8,

defcount=3, closure=0x0) at Python/ceval.c:3253

#14 0x000000000050db78 in function_call (func=0x2bf0c80, arg=0x2e29a70, kw=0x2bd4360) at Objects/funcobject.c:526
#15 0x00000000004197c7 in PyObject_Call (func=0x2bf0c80, arg=, kw=) at Objects/abstract.c:2529
#16 0x00000000004a748a in ext_do_call (f=, throwflag=) at Python/ceval.c:4334
#17 PyEval_EvalFrameEx (f=, throwflag=) at Python/ceval.c:2705
#18 0x00000000004a9ab5 in fast_function (f=, throwflag=) at Python/ceval.c:4107
#19 call_function (f=, throwflag=) at Python/ceval.c:4042
#20 PyEval_EvalFrameEx (f=, throwflag=) at Python/ceval.c:2666
#21 0x00000000004a9ab5 in fast_function (f=, throwflag=) at Python/ceval.c:4107
#22 call_function (f=, throwflag=) at Python/ceval.c:4042
#23 PyEval_EvalFrameEx (f=, throwflag=) at Python/ceval.c:2666
#24 0x00000000004aa627 in PyEval_EvalCodeEx (co=0x7fba6397f330, globals=, locals=, args=, argcount=1, kws=0x0, kwcount=0, defs=0x0, defcount=0,

closure=0x0) at Python/ceval.c:3253

#25 0x000000000050da7e in function_call (func=0x7fba632c41b8, arg=0x2e2b110, kw=0x0) at Objects/funcobject.c:526
#26 0x00000000004197c7 in PyObject_Call (func=0x7fba632c41b8, arg=, kw=) at Objects/abstract.c:2529
#27 0x00000000004223ef in instancemethod_call (func=0x7fba632c41b8, arg=0x2e2b110, kw=0x0) at Objects/classobject.c:2602
#28 0x00000000004197c7 in PyObject_Call (func=0x252ef00, arg=, kw=) at Objects/abstract.c:2529
#29 0x00000000004a2413 in PyEval_CallObjectWithKeywords (func=0x252ef00, arg=0x7fba69913050, kw=) at Python/ceval.c:3890
#30 0x00000000004e26f2 in t_bootstrap (boot_raw=0x2c86190) at ./Modules/threadmodule.c:614
#31 0x0000003766207851 in start_thread () from /lib64/libpthread.so.0
#32 0x0000003765ee767d in clone () from /lib64/libc.so.6

so is there any suggestion and help? is the problem of Lock?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions