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

multifile: crashes on some file names #2124

Closed
markus2330 opened this issue Jul 27, 2018 · 3 comments
Closed

multifile: crashes on some file names #2124

markus2330 opened this issue Jul 27, 2018 · 3 comments

Comments

@markus2330
Copy link
Contributor

markus2330 commented Jul 27, 2018

Steps to Reproduce the Problem

kdb mount -R multifile -c storage="ini",pattern="*",resolver="resolver" "`pwd`" "system/here" 
touch \(\\
kdb ls system/here

Expected Result

List content of files.

Actual Result

Program terminated with signal SIGABRT, Aborted.
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51      ../sysdeps/unix/sysv/linux/raise.c: Datei oder Verzeichnis nicht gefunden.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x00007f1f5afd542a in __GI_abort () at abort.c:89
#2  0x00005611a6360b2c in catchSignal (signum=<optimized out>) at /home/jenkins/workspace/libelektra_master-Q2SIBK3KE2NBEMJ4WVGJXAXCSCB77DUBUULVLZDKHQEV3WNDXBMA@3/libelektra/src/tools/kdb/main.cpp:110
#3  <signal handler called>
#4  libelektra_resolver_fm_hpu_b_LTX_elektraPluginget (handle=0x5611a6d627a0, returned=0x5611a6cb4430, parentKey=0x5611a6c198c0)
    at /home/jenkins/workspace/libelektra_master-Q2SIBK3KE2NBEMJ4WVGJXAXCSCB77DUBUULVLZDKHQEV3WNDXBMA@3/libelektra/src/plugins/resolver/resolver.c:506
#5  0x00007f1f59015c77 in resolverGet (parentKey=0x5611a6c198c0, returned=0x5611a6cb4430, s=0x5611a6d62360)
    at /home/jenkins/workspace/libelektra_master-Q2SIBK3KE2NBEMJ4WVGJXAXCSCB77DUBUULVLZDKHQEV3WNDXBMA@3/libelektra/src/plugins/multifile/multifile.c:316
#6  updateFiles (parentKey=<optimized out>, returned=0x5611a6cb4430, mc=0x5611a6c0c620) at /home/jenkins/workspace/libelektra_master-Q2SIBK3KE2NBEMJ4WVGJXAXCSCB77DUBUULVLZDKHQEV3WNDXBMA@3/libelektra/src/plugins/multifile/multifile.c:487
#7  elektraMultifileGet (handle=0x5611a6c0e950, returned=0x5611a6cb4430, parentKey=<optimized out>)
    at /home/jenkins/workspace/libelektra_master-Q2SIBK3KE2NBEMJ4WVGJXAXCSCB77DUBUULVLZDKHQEV3WNDXBMA@3/libelektra/src/plugins/multifile/multifile.c:611
#8  0x00007f1f5baede20 in elektraGetCheckUpdateNeeded (parentKey=<optimized out>, split=<optimized out>)
    at /home/jenkins/workspace/libelektra_master-Q2SIBK3KE2NBEMJ4WVGJXAXCSCB77DUBUULVLZDKHQEV3WNDXBMA@3/libelektra/src/libs/elektra/kdb.c:468
#9  kdbGet (handle=0x5611a6be8aa0, ks=ks@entry=0x5611a6c178b0, parentKey=0x5611a6c198c0) at /home/jenkins/workspace/libelektra_master-Q2SIBK3KE2NBEMJ4WVGJXAXCSCB77DUBUULVLZDKHQEV3WNDXBMA@3/libelektra/src/libs/elektra/kdb.c:804
#10 0x00005611a633049f in kdb::KDB::get (parentKey=..., returned=<synthetic pointer>..., this=0x5611a6be8a38)
    at /home/jenkins/workspace/libelektra_master-Q2SIBK3KE2NBEMJ4WVGJXAXCSCB77DUBUULVLZDKHQEV3WNDXBMA@3/libelektra/src/bindings/cpp/include/kdb.hpp:183
#11 CpCommand::execute (this=0x5611a6be8a30, cl=...) at /home/jenkins/workspace/libelektra_master-Q2SIBK3KE2NBEMJ4WVGJXAXCSCB77DUBUULVLZDKHQEV3WNDXBMA@3/libelektra/src/tools/kdb/cp.cpp:57
#12 0x00005611a6314d14 in main (argc=<optimized out>, argv=0x7ffe9315a238) at /home/jenkins/workspace/libelektra_master-Q2SIBK3KE2NBEMJ4WVGJXAXCSCB77DUBUULVLZDKHQEV3WNDXBMA@3/libelektra/src/tools/kdb/main.cpp:198

Seems like the resolver is not correctly initialized in such cases, maybe kdbOpen() is not called?

System Information

  • Elektra Version: master
@markus2330
Copy link
Contributor Author

@tom-wa any progress here?

@stale
Copy link

stale bot commented May 5, 2020

I mark this issue 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 the issue by writing a message here or create a new issue with the remainder of this issue.
Thank you for your contributions 💖

@stale stale bot added the stale label May 5, 2020
@stale
Copy link

stale bot commented May 19, 2020

I closed this issue 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 💖

@stale stale bot closed this as completed May 19, 2020
@markus2330 markus2330 changed the title multiresolver: crashes on some file names multifile: crashes on some file names May 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants