orocos-bayesian-filtering icon indicating copy to clipboard operation
orocos-bayesian-filtering copied to clipboard

shared library calls exit()

Open toeklk opened this issue 7 years ago • 0 comments

exit() is called in multiple parts of the library:

% grep -RiIw exit src src/model/measurementmodel.cpp: exit(-BFL_ERRMISUSE); src/model/measurementmodel.cpp: exit(-BFL_ERRMISUSE); src/model/systemmodel.cpp: exit(-BFL_ERRMISUSE); src/model/systemmodel.cpp: exit(-BFL_ERRMISUSE); src/pdf/pdf.h: exit(-BFL_ERRMISUSE); src/pdf/pdf.h: exit(-BFL_ERRMISUSE); src/pdf/pdf.h: exit(-BFL_ERRMISUSE); src/pdf/pdf.h: exit(-BFL_ERRMISUSE); src/pdf/analyticconditionalgaussian.cpp: exit(-BFL_ERRMISUSE); src/pdf/filterproposaldensity.cpp: exit(-BFL_ERRMISUSE);

Calling exit() is considered to be bad practice for shared libraries and produces warnings by the packaging tools rpmlint [1] and lintian [2].

This bug report is part of an effort to package orocos-bfl for Fedora. Fedora's packaging guidelines require to report such issues to upstream.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=469908 [2] https://lintian.debian.org/tags/shlib-calls-exit.html

toeklk avatar Dec 08 '17 18:12 toeklk