libelektra icon indicating copy to clipboard operation
libelektra copied to clipboard

kdb export missing plugin

Open kodebach opened this issue 2 years ago • 3 comments
trafficstars

kdb export should not segfault, if a plugin cannot be loaded. It is very much an expected failure, that a plugin is missing or broken and a nice error message should be displayed.

See also #4884.

Note: This issue should be fixed in the new C implementation of kdb.

kodebach avatar Mar 18 '23 12:03 kodebach

Interestingly, I cannot reproduce this. For me it just prints out that the plugin cannot be found:

$ kdb export system:/elektra nonexisting
The command kdb export terminated unsuccessfully with the info:
No plugin that provides nonexisting could be found
Please report the issue at https://issues.libelektra.org/

atmaxinger avatar Mar 28 '23 16:03 atmaxinger

Interestingly, I cannot reproduce this. For me it just prints out that the plugin cannot be found:

$ kdb export system:/elektra nonexisting
The command kdb export terminated unsuccessfully with the info:
No plugin that provides nonexisting could be found
Please report the issue at https://issues.libelektra.org/

Have you maybe tried with the steps I put into this issue https://github.com/ElektraInitiative/libelektra/issues/4884? For me it SIGSEGV when the yajl plugin is missing. May it works fine for the other. 🤔

tmakar avatar Apr 01 '23 11:04 tmakar

Yes, I also tried the command that is listed in the logs, same result

kdb export "user:/sw/elektra/web/#0/current/instances" yajl "/tmp/elektra-web.1679136074943.buffer.json"
The command kdb export terminated unsuccessfully with the info:
No plugin that provides yajl could be found, got errors: Was not able to load such a plugin!

Maybe you misspelled it, there is no such plugin or the loader has problems.
You might want to try to set LD_LIBRARY_PATH, use kdb-full or kdb-static.
Errors/Warnings during loading were:
 Sorry, 1 warning was issued ;(
 1: Module kdb issued the warning C01200:
        Installation: Dlopen failed. Could not load module libelektra-yajl.so. Reason: libelektra-yajl.so: cannot open shared object file: No such file or directory
        Mountpoint: /
        Configfile: 
        At: /home/maximilianirlinger/src/libelektra/src/libs/loader/dl.c:90
,
Please report the issue at https://issues.libelektra.org/

Whatever causes the issue, it's not something that I can reproduce on Fedora.

atmaxinger avatar Apr 01 '23 13:04 atmaxinger

I mark this stale as it did not have any activity for one year. I'll close it in two weeks if no further activity occurs. If you want it to be alive again, ping by writing a message here or create a new issue with the remainder of this issue. Thank you for your contributions :sparkling_heart:

github-actions[bot] avatar Apr 01 '24 01:04 github-actions[bot]

I closed this now because it has been inactive for more than one year. If I closed it by mistake, please do not hesitate to reopen it or create a new issue with the remainder of this issue. Thank you for your contributions :sparkling_heart:

github-actions[bot] avatar Apr 15 '24 02:04 github-actions[bot]