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

Error verifying module #8

Open
alepatacca opened this issue Oct 25, 2015 · 8 comments
Open

Error verifying module #8

alepatacca opened this issue Oct 25, 2015 · 8 comments

Comments

@alepatacca
Copy link

Hello!
I followed your Readme, but when I try to start the master with the hook module TestHook, the execution fails with this message:

Error loading modules: Error verifying module 'org_apache_mesos_TestHook': Unknown module kind: Hook
*** Error in `/home/my_home/mesos-0.24.0/build/src/.libs/lt-mesos-master': double free or corruption (fasttop): 0x0000000001fa9950 ***
Aborted (core dumped)

Can you please help me understand where I am wrong? It seems that it doesn't recognize the Hook module kind!
Thanks

@karya0
Copy link
Contributor

karya0 commented Oct 26, 2015

Could you provide us the commandline that you used to launch the master?
Also, if you don't mind, can you share the bits related to the module
declaration part in you module sources (the stuff starting with
"mesos::modules::Module ....")?

That will help us get started on debugging this issue.

Best,
Kapil

On Sun, Oct 25, 2015 at 7:00 AM, alepatacca [email protected]
wrote:

Hello!
I followed your Readme, but when I try to start the master with the hook
module TestHook, the execution fails with this message:

Error loading modules: Error verifying module 'org_apache_mesos_TestHook':
Unknown module kind: Hook
*** Error in `/home/my_home/mesos-0.24.0/build/src/.libs/lt-mesos-master':
double free or corruption (fasttop): 0x0000000001fa9950 ***
Aborted (core dumped)

Can you please help me understand where I am wrong? It seems that it
doesn't recognize the Hook module kind!
Thanks


Reply to this email directly or view it on GitHub
#8.

@alepatacca
Copy link
Author

Hi!
I'm launching the master with this command:

./bin/mesos-master.sh --ip=172.17.0.1 --hostname=172.17.0.1 --work_dir=/var/lib/mesos --quorum=1 --modules="file:///home/my_home/modules/hook/modules.json.in" --hooks=TestHook

The folder /modules is the one i cloned from github, and I left the source files unchanged, so the declaration of the hook module is the following:

mesos::modules::Module<Hook> org_apache_mesos_TestHook(
    MESOS_MODULE_API_VERSION,
    MESOS_VERSION,
    "Apache Mesos",
    "[email protected]",
    "Test Hook module.",
    NULL,
    createHook);

The only thing i changed is the path of the shared library in modules.json.in:

{
  "libraries": [
    {
      "file": "/home/my_home/modules/build/.libs/libtesthook.so",
      "modules": [
        {
          "name": "org_apache_mesos_TestHook"
        }
      ]
    }
  ]
}

@karya0
Copy link
Contributor

karya0 commented Oct 26, 2015

Instead of --hooks=TestHook, you need --hooks=org_apache_mesos_TestHook. Looks like we need to fix the error message as well.

@alepatacca
Copy link
Author

Nope, I'm receiving the same error!
I also noticed that if I launch the master without --hooks=org_apache_mesos_TestHook I continue to receive the same error!

@karya0
Copy link
Contributor

karya0 commented Oct 26, 2015

This doesn't make sense. For sanity check, can you replace mesos::modules::Module<Hook> with mesos::modules::Module<Isolator> and try again?

@alepatacca
Copy link
Author

I replaced it and make fails with this error (and many others related):

../hook/test_hook_module.cpp:158:24: error: 'Isolator' was not declared in this scope
 mesos::modules::Module<Isolator> org_apache_mesos_TestHook(

@karya0
Copy link
Contributor

karya0 commented Oct 27, 2015

Aah, you need #include <mesos/module/isolator.hpp> as well.

On Tue, Oct 27, 2015 at 5:03 AM, Alessandro Patacca <
[email protected]> wrote:

I replaced it and make fails with this error (and many others related):

../hook/test_hook_module.cpp:158:24: error: 'Isolator' was not declared in this scope
mesos::modules::Module org_apache_mesos_TestHook(


Reply to this email directly or view it on GitHub
#8 (comment).

@alepatacca
Copy link
Author

Still not working. Same error.

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

No branches or pull requests

2 participants