You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to run mutilate in agent mode:
$ mutilate -A -T 16
But it crashes. Here is the output from GDB.
Program received signal SIGFPE, Arithmetic exception.
Value can't be converted to integer.
0x0000000000404a0e in args_to_options (options=options@entry=0x7fffffffdbc0) at mutilate.cc:1061
1061 options->records = args.records_arg / options->server_given;
The text was updated successfully, but these errors were encountered:
==45727== Process terminating with default action of signal 8 (SIGFPE)
==45727== Integer divide by zero at address 0x403C468B2
==45727== at 0x4049E5: args_to_options(options_t*) (mutilate.cc:1061)
==45727== by 0x409B2F: main (mutilate.cc:468)
Duplicated on CentOS. Weird thing is that in Ubuntu 12.04 it worked fine. Not only that, I am unable to connect to agents under CentOS...
I saw the same problem on CentOS 7.
$./mutilate -T 12 -A
Floating point exception
It was because libzmp is not currently installed, especially the zeromp c++ binding (zmp.hpp). If I check the config.h created by scons, the HAVE_LIBZMQ is not defined, meaning libzmp is not found. This would cause the "divide by zero" problem when run as an agent.
Fix:
download lastest zeromq from http://zeromq.org/area:download, and build from source by
$./configure
$make
$sudo make install
checkout zeromq c++ binding, which is now a separated project hosted at https://github.com/zeromq/cppzmq
$cp zmp.hpp /usr/local/include
rebuild project
$scons -c
$scons
Make sure you have HAVE_LIBZMQ defined in your config.h. Otherwise, your libzmp is still not installed correctly.
I'm trying to run mutilate in agent mode:
$ mutilate -A -T 16
But it crashes. Here is the output from GDB.
Program received signal SIGFPE, Arithmetic exception.
Value can't be converted to integer.
0x0000000000404a0e in args_to_options (options=options@entry=0x7fffffffdbc0) at mutilate.cc:1061
1061 options->records = args.records_arg / options->server_given;
The text was updated successfully, but these errors were encountered: