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

"malloc(): unsorted double linked list corrupted" problem on raspberry pi4 when I run the C++ demo smart_classroom_demo #1852

Closed
ghost opened this issue Nov 28, 2020 · 20 comments
Labels
ARM ARM based platform RaspberryPi OpenVINO for RapsberryPi package

Comments

@ghost
Copy link

ghost commented Nov 28, 2020

when I run the C++ demo smart_classroom_demo on Ubuntu it's working well,
but when I run the C++ demo smart_classroom_demo on raspberry pi4,
I got the error message "malloc(): unsorted double linked list corrupted"
I want to know how to solve this problem.
thanks

pi@raspberrypi:~/open_model_zoo/demos/build/armv7l/Release $ ./smart_classroom_demo -m_fd ~/model/face-detection-adas-0001.xmlGi -m_act ~/model/person-detection-action-recognition-0005.xml -i ~/ncs2_test/May.mp4 -d_act MYRIAD -d_fd MYRIAD -d_lm MYRIAD -d_reid MYRIAD
[ INFO ] InferenceEngine: 	API version ......... 2.1
	Build ........... 2021.1.0-1237-bece22ac675-releases/2021/1
[ INFO ] Parsing input parameters
[ INFO ] Loading Inference Engine
[ INFO ] Device info: 
	MYRIAD
	myriadPlugin version ......... 2.1
	Build ........... 2021.1.0-1237-bece22ac675-releases/2021/1

malloc(): unsorted double linked list corrupted
已經終止

btw. on Ubuntu it's working well

dvlab@dvlab-Z370M-D3H:~/inference_engine_demos_build/intel64/Release$ ./smart_classroom_demo -m_act ~/models/person-detection-action-recognition-0005.xml -m_fd ~/models/face-detection-adas-0001.xml -i /home/dvlab/下載/sit.mp4 -d_act MYRIAD -d_fd MYRIAD -d_lm MYRIAD -d_reid MYRIAD
[ INFO ] InferenceEngine: 	API version ......... 2.1
	Build ........... 2021.1.0-1237-bece22ac675-releases/2021/1
[ INFO ] Parsing input parameters
[ INFO ] Loading Inference Engine
[ INFO ] Device info: 
	MYRIAD
	myriadPlugin version ......... 2.1
	Build ........... 2021.1.0-1237-bece22ac675-releases/2021/1

[ WARNING ] Face recognition models are disabled!
To close the application, press 'CTRL+C' here or switch to the output window and press ESC key

[ INFO ] Mean FPS: 3.67467
[ INFO ] Frames processed: 15

[ INFO ] Execution successful
@vladimir-dudnik
Copy link
Contributor

@terfendail could you please check this on RasperryPi board and OpenVINO 2021.1?

@terfendail
Copy link

I've reproduced the issue using OpenVINO 2021.1 for Raspbian and native compilation of smart_classroom_demo. Going to investigate it further

@ghost
Copy link
Author

ghost commented Dec 1, 2020

thank you guys
Let me know if you need any further test or any information that i could offer

@terfendail
Copy link

@ilya-lavrenov Could you please share your thoughts on this?

@ghost
Copy link
Author

ghost commented Dec 2, 2020

In my opinion maybe it's because of the 32-bit raspbian OS.
It's too small to memory allocation or what. sorry I'm not good at it.

@vladimir-dudnik
Copy link
Contributor

@engineer0204 the issue might be related with the fact that OpenVINO RaspberryPi package built by cross-compilation tools, not native one (although versions of gcc are the same). And then, when you build application by native tools and link with OpenVINO libraries built by cross-compiler tools, there are some runtime issues. We are investigating this.

@asuhov FYI

@thiagortk
Copy link

Hey guys,

Any news about that?

@dkurt
Copy link
Contributor

dkurt commented Apr 14, 2021

Hi! Please add compilation instructions. Have you added -DCMAKE_CXX_FLAGS="-march=armv7-a" flag?

@qdym188
Copy link

qdym188 commented Apr 22, 2021

@dkurt , Hi, I have the same error with @engineer0204 , I have tried -DCMAKE_CXX_FLAGS="-march=armv7-a", still same error....

@sepehr78
Copy link

Any fixes?

@vladimir-dudnik
Copy link
Contributor

@sepehr78 unfortunately the root cause of issue still not identified yet.

@ilya-lavrenov @asuhov @dkurt @alvoron CC

@ilya-lavrenov
Copy link
Contributor

@vladimir-dudnik we still don't know where the problem is located - inside demo builds or inside OpenVINO binaries..

@terfendail
Copy link

@cosmos1982 Could you please share whole build command you use? It could be useful to try to reproduce your case

@alvoron
Copy link
Contributor

alvoron commented Jul 15, 2021

@ilya-lavrenov the same issue was observed recently: #2589
I verified that the flag -DCMAKE_CXX_FLAGS="-march=armv7-a" solves the issue, it helps the author as well.
Vitaly Tuzov has reproduced this issue some time ago and this flag works for him as well.
Should we add this flag explicitly?

@dkurt
Copy link
Contributor

dkurt commented Jul 26, 2021

@alvoron, this is an issue related to Raspbian GCC compiler. By default, it specifies armv6 instruction set.

@alvoron
Copy link
Contributor

alvoron commented Jul 26, 2021

@dkurt I have found that gcc 8 specifies armv6, however gcc 10 uses armv7-a.
I had a talk with Ilya Lavrenov, we decided to set architecture to armv7-a in demo\sample build scripts if the platform is ARM x32 and it's not cross-compilation.
Are you OK with such solution?

@dkurt
Copy link
Contributor

dkurt commented Jul 26, 2021

@alvoron, it's better to check for CPU arch. I recommend to set -march=armv7-a if uname -m returns armv7l

@alvoron
Copy link
Contributor

alvoron commented Aug 23, 2021

@vladimir-dudnik I suppose, this issue could be closed since OMZ fix has been merged.

@vladimir-dudnik
Copy link
Contributor

@alvoron yes, I'll close it once OpenVINO 2021.4.1 will be published

@vladimir-dudnik
Copy link
Contributor

OpenVINO 2021.4.1 which provides fix for the issue just published, so I'm going to close this. Feel free to reopen if you still experience throubles

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ARM ARM based platform RaspberryPi OpenVINO for RapsberryPi package
Projects
None yet
Development

No branches or pull requests

8 participants