Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with Python Layer: Protobuf Internal Error - Mutex Lock #3671

Closed
paridhisrivastava opened this issue Sep 21, 2017 · 7 comments
Closed
Assignees
Labels
customer issue inactive Denotes the issue/PR has not seen activity in the last 90 days. python wait for user action

Comments

@paridhisrivastava
Copy link

paridhisrivastava commented Sep 21, 2017

Hi,
I am trying to run a Caffe model which includes a python layer. Initially, when I tried to run the model prototxt file, I got an error asking me to update the version of Protocol Buffer to 3.4.0. So I did that by building from the source code. I have also upgraded the protobuf package in python to version 3.4.0. After doing this and rebuilding caffe, I'm getting the following error on running a prototxt file containing the python layer. [Please note that this error does not generate when I run another model without Python layer.]

*** Aborted at 1506013588 (unix time) try "date -d @1506013588" if you are using GNU date ***
PC: @ 0x7f7cb3719516 google::protobuf::internal::Mutex::Lock()
*** SIGSEGV (@0x0) received by PID 26314 (TID 0x7f7d9961e740) from PID 0; stack trace: ***
@ 0x7f7d961dc4b0 (unknown)
@ 0x7f7cb3719516 google::protobuf::internal::Mutex::Lock()
@ 0x7f7cb3719833 google::protobuf::internal::OnShutdown()
@ 0x7f7d994686ba (unknown)
@ 0x7f7d994687cb (unknown)
@ 0x7f7d9946d8e2 (unknown)
@ 0x7f7d99468564 (unknown)
@ 0x7f7d9946cda9 (unknown)
@ 0x7f7d8815ef09 (unknown)
@ 0x7f7d99468564 (unknown)
@ 0x7f7d8815f571 (unknown)
@ 0x7f7d8815efa1 dlopen
@ 0x7f7d969bda69 _PyImport_FindSharedFuncptr
@ 0x7f7d96976ea2 _PyImport_LoadDynamicModuleWithSpec
@ 0x7f7d9697a7e7 (unknown)
@ 0x7f7d96827199 PyCFunction_Call
@ 0x7f7d9694273e PyEval_EvalFrameEx
@ 0x7f7d969d1c0c (unknown)
@ 0x7f7d9693fe09 PyEval_EvalFrameEx
@ 0x7f7d96941509 PyEval_EvalFrameEx
@ 0x7f7d96941509 PyEval_EvalFrameEx
@ 0x7f7d96941509 PyEval_EvalFrameEx
@ 0x7f7d96941509 PyEval_EvalFrameEx
@ 0x7f7d969d1c0c (unknown)
@ 0x7f7d969d1ce3 PyEval_EvalCodeEx
@ 0x7f7d96859a98 (unknown)
@ 0x7f7d969008ee PyObject_Call
@ 0x7f7d968fbf0f _PyObject_CallMethodIdObjArgs
@ 0x7f7d96978824 PyImport_ImportModuleLevelObject
@ 0x7f7d96945588 (unknown)
@ 0x7f7d968271b9 PyCFunction_Call
@ 0x7f7d969008ee PyObject_Call

Also, I'm using Ubuntu 16.04.

Any help/pointers would be appreciated.
Thanks!

@AutoAuto
Copy link

Hi,

What is the status of this issue ? I have the same issue with protobuf and tensorflow.

@kodonnell
Copy link

This?

@anandolee
Copy link
Contributor

Sorry, I can't tell anything from the stack trace... @amauryfa, do you have any idea?

@catskul
Copy link

catskul commented Aug 21, 2018

seeing the same in gazebo:

#0  0x00007fff7a4f1516 in google::protobuf::internal::Mutex::Lock() () from /usr/lib/x86_64-linux-gnu/libprotobuf-lite.so.9
#1  0x00007fff7a4f1833 in google::protobuf::internal::OnShutdown(void (*)()) () from /usr/lib/x86_64-linux-gnu/libprotobuf-lite.so.9
#2  0x00007ffff7de76ba in call_init (l=<optimized out>, argc=argc@entry=1, argv=argv@entry=0x7fffffffcf48, env=env@entry=0x7fffffffcf58) at dl-init.c:72
#3  0x00007ffff7de77cb in call_init (env=0x7fffffffcf58, argv=0x7fffffffcf48, argc=1, l=<optimized out>) at dl-init.c:30
#4  _dl_init (main_map=main_map@entry=0x13ff390, argc=1, argv=0x7fffffffcf48, env=0x7fffffffcf58) at dl-init.c:120
#5  0x00007ffff7dec8e2 in dl_open_worker (a=a@entry=0x7fffffffc2f0) at dl-open.c:575
#6  0x00007ffff7de7564 in _dl_catch_error (objname=objname@entry=0x7fffffffc2e0, errstring=errstring@entry=0x7fffffffc2e8, mallocedp=mallocedp@entry=0x7fffffffc2df, 
    operate=operate@entry=0x7ffff7dec4d0 <dl_open_worker>, args=args@entry=0x7fffffffc2f0) at dl-error.c:187
#7  0x00007ffff7debda9 in _dl_open (file=0x13ff188 "/home/asomerville/work/knight/extinstall/plugins/platformthemes/libqgtk3.so", mode=-2147479551, caller_dlopen=0x7ffff6a5b73d, nsid=-2, argc=<optimized out>, 
    argv=<optimized out>, env=0x7fffffffcf58) at dl-open.c:660
#8  0x00007ffff296af09 in dlopen_doit (a=a@entry=0x7fffffffc520) at dlopen.c:66
#9  0x00007ffff7de7564 in _dl_catch_error (objname=0xc59cb0, errstring=0xc59cb8, mallocedp=0xc59ca8, operate=0x7ffff296aeb0 <dlopen_doit>, args=0x7fffffffc520) at dl-error.c:187
#10 0x00007ffff296b571 in _dlerror_run (operate=operate@entry=0x7ffff296aeb0 <dlopen_doit>, args=args@entry=0x7fffffffc520) at dlerror.c:163
#11 0x00007ffff296afa1 in __dlopen (file=<optimized out>, mode=<optimized out>) at dlopen.c:87
#12 0x00007ffff6a5b73d in ?? () from /home/asomerville/work/knight/extinstall/lib/libQt5Core.so.5
#13 0x00007ffff6a54785 in ?? () from /home/asomerville/work/knight/extinstall/lib/libQt5Core.so.5
#14 0x00007ffff6a4a9ce in QFactoryLoader::instance(int) const () from /home/asomerville/work/knight/extinstall/lib/libQt5Core.so.5
#15 0x00007ffff12142a1 in QPlatformThemeFactory::create(QString const&, QString const&) () from /home/asomerville/work/knight/extinstall/lib/libQt5Gui.so.5
#16 0x00007ffff121fb78 in QGuiApplicationPrivate::createPlatformIntegration() () from /home/asomerville/work/knight/extinstall/lib/libQt5Gui.so.5
#17 0x00007ffff122054d in QGuiApplicationPrivate::createEventDispatcher() () from /home/asomerville/work/knight/extinstall/lib/libQt5Gui.so.5
#18 0x00007ffff6a66c29 in QCoreApplicationPrivate::init() () from /home/asomerville/work/knight/extinstall/lib/libQt5Core.so.5
#19 0x00007ffff122229e in QGuiApplicationPrivate::init() () from /home/asomerville/work/knight/extinstall/lib/libQt5Gui.so.5
#20 0x00007ffff49357e9 in QApplicationPrivate::init() () from /home/asomerville/work/knight/extinstall/lib/libQt5Widgets.so.5
#21 0x00007ffff721beba in gazebo::gui::load() () from /home/asomerville/work/knight/extinstall/lib/libgazebo_gui.so.9
#22 0x00007ffff721c0e4 in gazebo::gui::run(int, char**) () from /home/asomerville/work/knight/extinstall/lib/libgazebo_gui.so.9
#23 0x000000000040295c in ?? ()
#24 0x00007ffff54e1830 in __libc_start_main (main=0x402930, argc=1, argv=0x7fffffffcf48, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffcf38)
    at ../csu/libc-start.c:291
#25 0x0000000000402bf9 in _start ()

@anandolee
Copy link
Contributor

3.4 is too old, wondering if it still an issue for our new version?

Copy link

We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please add a comment.

This issue is labeled inactive because the last activity was over 90 days ago.

@github-actions github-actions bot added the inactive Denotes the issue/PR has not seen activity in the last 90 days. label Jun 16, 2024
Copy link

github-actions bot commented Jul 1, 2024

We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please reopen it.

This issue was closed and archived because there has been no new activity in the 14 days since the inactive label was added.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer issue inactive Denotes the issue/PR has not seen activity in the last 90 days. python wait for user action
Projects
None yet
Development

No branches or pull requests

8 participants