c++ - abort() hanging indefinitely -


the code (my original code used assert, shorter sscce)

#include <cstdlib>  int main() {     abort();     return 0; } 

compiler version:

$ g++ --version g++ (gcc) 4.8.0 copyright (c) 2013 free software foundation, inc. free software; see source copying conditions.  there no warranty; not merchantability or fitness particular purpose. 

compiled with:

$ g++ test.cpp -o test 

runtime:

$ ./test 

hangs indefinitely. checking top notice abrt-hook-ccpp (as root) taking whole cpu (pegged @ 75%, ./test taking 25%).

other notes: behaviour appears flaky, happening 80% of time. tried @ each level of optimization (o0 through o4) , had no differences.

additionally cannot reproduce behaviour on local machine (g++ 4.8.1)

it's bug in redhat's automatic bug reporting tool. try disabling abrt service , see if works.

you can either disable abrt-ccpp:

# chkconfig abrt-ccpp off # service abrt-ccpp stop 

or whole service:

# chkconfig abrtd off # service abrtd stop 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -