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

CRIU 3.12 cross-compile issue: compel-host-bin (stack smashing detected) #924

Closed
shrkamat opened this issue Jan 22, 2020 · 2 comments · Fixed by #978
Closed

CRIU 3.12 cross-compile issue: compel-host-bin (stack smashing detected) #924

shrkamat opened this issue Jan 22, 2020 · 2 comments · Fixed by #978

Comments

@shrkamat
Copy link

I am facing CRIU cross-compile failure for aarch64 target
Looks like some problem with running compel-host-bin for intermediate code generation

Compile options

export PKG_CONFIG_PATH=/output/aarch64/lib/pkgconfig
make ARCH=aarch64 CROSS_COMPILE=/usr/bin/aarch64-linux-gnu- USERCFLAGS="-I/output/aarch64/include -I/output/aarch64/include/libnl3 -I/usr/aarch64-linux-gnu/include -L/usr/aarch64-linux-gnu/lib -L//output/
aarch64/lib64 -L//output/aarch64/lib -lprotobuf-c -lpthread -lrt"

Error

./compel/compel-host hgen -f criu/pie/parasite.built-in.o -o criu/pie/parasite-blob.h
*** stack smashing detected ***: <unknown> terminated
criu/pie/Makefile:49: recipe for target 'criu/pie/parasite-blob.h' failed
make[2]: *** [criu/pie/parasite-blob.h] Aborted (core dumped)
make[2]: *** Deleting file 'criu/pie/parasite-blob.h'
criu/Makefile:61: recipe for target 'pie' failed
make[1]: *** [pie] Error 2
Makefile:228: recipe for target 'criu' failed
make: *** [criu] Error 2

Steps to reproduce

git clone https://github.com/shrkamat/criu-aarch64
cd criu-aarch64
./run.sh
# Inside docker shell
source ./build.sh

P.S. I had to make one small change to Makefiles.packages
https://github.com/shrkamat/criu-aarch64/blob/master/criu/patches/Fix-CRIU-find-packages.patch
I am not clear why the try-cc step fails, does it not use cross-compiler ?

@shrkamat shrkamat changed the title CRIU 3.12 cross compile issues with compel-host-bin (stack smashing detected) CRIU 3.12 cross-compile issues: compel-host-bin (stack smashing detected) Jan 22, 2020
@shrkamat shrkamat changed the title CRIU 3.12 cross-compile issues: compel-host-bin (stack smashing detected) CRIU 3.12 cross-compile issue: compel-host-bin (stack smashing detected) Jan 22, 2020
@avagin
Copy link
Member

avagin commented Feb 24, 2020

Cc: @0x7f454c46

@0x7f454c46
Copy link
Member

Thanks for the Cc.
I'll check it next week - a little sick right now.

0x7f454c46 added a commit to 0x7f454c46/criu that referenced this issue Mar 5, 2020
Fixes: checkpoint-restore#924
Signed-off-by: Dmitry Safonov <dima@arista.com>
0x7f454c46 added a commit to 0x7f454c46/criu that referenced this issue Mar 5, 2020
Fixes: checkpoint-restore#924
Signed-off-by: Dmitry Safonov <dima@arista.com>
avagin pushed a commit that referenced this issue Mar 9, 2020
Fixes: #924
Signed-off-by: Dmitry Safonov <dima@arista.com>
avagin pushed a commit to avagin/criu that referenced this issue Mar 9, 2020
Fixes: checkpoint-restore#924
Signed-off-by: Dmitry Safonov <dima@arista.com>
avagin pushed a commit to avagin/criu that referenced this issue Mar 27, 2020
Fixes: checkpoint-restore#924
Signed-off-by: Dmitry Safonov <dima@arista.com>
Snorch pushed a commit to Snorch/criu that referenced this issue Mar 30, 2020
Fixes: checkpoint-restore#924
Signed-off-by: Dmitry Safonov <dima@arista.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants