You are not logged in.
Since last month, I ran into the issue where whenever I need to compile code for especially for Arduino using either Arduino or PlatformIO, a few instance of gcc will run with the command
/bin/bash /usr/lib/hardening-wrapper/bin/gcc -B/usr/lib/hardening-wrapper/bin -pie -fstack-check -fstack-protector-strong -B/usr/lib/hardening-wrapper/bin -pie -fstack-check -fstack-protector-strong
where -B/usr/lib/hardening-wrapper/bin -pie -fstack-check -fstack-protector-strong will repeat many times.
If I killall gcc, g++ will run instead
/bin/bash /usr/lib/hardening-wrapper/bin/g++ -B/usr/lib/hardening-wrapper/bin -pie -fstack-check -fstack-protector-strong
with similar pattern.
If I killall g++, sometime clang will run, but not all the time.
The actual compilation of my Arduino code will only start after I kill gcc and g++. I can't find where this is being triggered and why. I've tried leaving it running overnight, and it didn't stop. I don't compile code for Arduino often, so I wasn't sure when this started. I've also notice gcc/g++ running when I'm not compiling for Arduino, though I can't pinpoint which application trigger that, and it doesn't happen very often.
Below is a snapshot of the tree view for PlatfornIO on Atom from ps auxf, truncated by the terminal width
gcc:
| \_ /usr/lib/electron/electron --app=/usr/lib/atom
| \_ /usr/lib/electron/electron --type=zygote --no-sandbox
| | \_ /usr/lib/electron/electron --type=renderer --enable-experimental-web-platform-features --no-sandbox --primordial-pipe-token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx --lang=en-US --app
| | | \_ /home/xxxx/.platformio/penv/bin/python2.7 /home/xxxx/.platformio/penv/bin/platformio run
| | | \_ /home/xxxx/.platformio/penv/bin/python2.7 /home/xxxx/.platformio/packages/tool-scons/script/scons -Q -j 8 --warn=no-no-parallel-support -f /home/xxxx/.platformio
| | | \_ /bin/bash /usr/lib/hardening-wrapper/bin/gcc -B/usr/lib/hardening-wrapper/bin -pie -fstack-check -fstack-protector-strong -B/usr/lib/hardening-wrapper/bin -pie -fs
| | \_ /usr/lib/electron/electron --type=renderer --enable-experimental-web-platform-features --no-sandbox --primordial-pipe-token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx --lang=en-US --app
| \_ /usr/lib/electron/electron --type=gpu-process --no-sandbox --supports-dual-gpus=false --gpu-driver-bug-workarounds=7,23,71 --gpu-vendor-id=0x10de --gpu-device-id=0x1392 --gpu-driv
g++:
\_ /usr/lib/electron/electron --app=/usr/lib/atom
| \_ /usr/lib/electron/electron --type=zygote --no-sandbox
| | \_ /usr/lib/electron/electron --type=renderer --enable-experimental-web-platform-features --no-sandbox --primordial-pipe-token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx --lang=en-US --app
| | | \_ /home/xxxx/.platformio/penv/bin/python2.7 /home/xxxx/.platformio/penv/bin/platformio run
| | | \_ /home/xxxx/.platformio/penv/bin/python2.7 /home/xxxx/.platformio/packages/tool-scons/script/scons -Q -j 8 --warn=no-no-parallel-support -f /home/xxxx/.platformio
| | | \_ /bin/bash /usr/lib/hardening-wrapper/bin/g++ -B/usr/lib/hardening-wrapper/bin -pie -fstack-check -fstack-protector-strong -B/usr/lib/hardening-wrapper/bin -pie -fs
| | \_ /usr/lib/electron/electron --type=renderer --enable-experimental-web-platform-features --no-sandbox --primordial-pipe-token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx --lang=en-US --app
| \_ /usr/lib/electron/electron --type=gpu-process --no-sandbox --supports-dual-gpus=false --gpu-driver-bug-workarounds=7,23,71 --gpu-vendor-id=0x10de --gpu-device-id=0x1392 --gpu-dri
Any idea what's going on with gcc/g++?
Last edited by faultylee (2018-01-08 07:30:04)
Offline
Stop using hardening-wrapper, it was always fragile to begin with and is now completely unnecessary since all the options it offered are now enabled as the default in gcc itself.
And yes, your hanging issue is so indicative of hardening-wrapper, that at this point I can tell you were using hardening-wrapper just from reading the thread title.
Last edited by eschwartz (2018-01-08 07:24:58)
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline
finally found some mention regarding this https://www.reddit.com/r/archlinux/comm … ngwrapper/
So I need to remove hardening-wrapper. Not sure why pacman didn't suggest to remove it before this.
pacman -R hardening-wrapper
Offline