Error in starting configuration manager ds - archiver

Hi All,

I'm facing following error while starting archiver ds(configuration manager)-

terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_M_construct null not valid
Aborted (core dumped)


Please find attached file for same. Any help would be much appreciated. :)
Regards,
TCS_GMRT
Edited 5 years ago
Hi,

Any update on it ??
Regards,
TCS_GMRT
Hi All,

Can anyone help me on it?? :(
Regards,
TCS_GMRT
Hi,

It looks like a null pointer is passed to a string constructor somewhere in the code.
What version of hdbpp-cm are you using?
On which operating system are you running it?

The best to debug this kind of problem would be to use gdb and to execute the program step by step to find out where this exception is thrown.
You could also add some traces in hdbpp-cm source code and recompile it.

What you could also try is to do the following if you are on Linux:
Execute the following command to enable the generation of core files:

ulimit -c unlimited


Then execute your program in the same shell terminal as you executed the previous command. (hdb++cm-srv must have been compiled in debug mode to get enough debug information).

Then it should generate a core file.
Then you can execute the following command to analyze the core file :


gdb -c <core_file_name> <full_path_to_hdb++cm-srv>


Depending on your configuration, the core file might be generated in a specific directory like /var/core…
So for instance, if the core file named hdb++cm-srv.core.1575 was generated in your current directory and if hdb++cm-srv is located in /usr/bin, you would need to type the following command:

gdb -c ./hdb++cm-srv.core.1575 /usr/bin/hdb++cm-srv

In gdb execute the command:
thread apply all bt

and send us the result.

You could also add some traces in hdbpp-cm source code and recompile it.
It looks like you are encountering a problem in HdbConfigurationManager::init_device() method.
If you can recompile hdbpp-cm, you could add some traces in HdbConfigurationManager::init_device(), recompile it and run it again until you find out where it stops.

What is the value of your ArchiverList property?
Rosenberg's Law: Software is easy to make, except when you want it to do something new.
Corollary: The only software that's worth making is software that does something new.
Hi Reynald,

Thanks for your prompt reply. I'll go with the steps that you suggested.
Here are following details -
version of hdbpp-cm - version is 1.0.0
operating system - Linux (Ubuntu 16.04 LTS)
Please find attached screen shot for ArchiverList property.
Regards,
TCS_GMRT
Hi,

I think the problem you encountered is the same one as the one reported in this issue: https://github.com/tango-controls-hdbpp/hdbpp-cm/issues/6
I think it is fixed in the following PR: https://github.com/tango-controls-hdbpp/hdbpp-cm/pull/9

Hoping this helps,
Reynald
Rosenberg's Law: Software is easy to make, except when you want it to do something new.
Corollary: The only software that's worth making is software that does something new.
 
Register or login to create to post a reply.