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

Load lib error #64

Merged
merged 4 commits into from
Aug 31, 2023
Merged

Load lib error #64

merged 4 commits into from
Aug 31, 2023

Conversation

superptitsam
Copy link

Overview

While starting a new service executed by a FPM, the getStatus service return the following error:

<?xml version="1.0" encoding="utf-8"?>
<ows:ExceptionReport xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/ows/1.1 http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd" xml:lang="en-US" version="1.1.0">
    <ows:Exception exceptionCode="InternalError">
        <ows:ExceptionText>Unable to load C Library (null)</ows:ExceptionText>
    </ows:Exception>
</ows:ExceptionReport>

The error is due to a test on the nulity of a string whereas a malloc is always perform for this string but a value is not always copy in this string. So a memory space is used in the case of C libraries loading (like getStatus service) with weird data that create the issue.

Also some code compilations errors appear when activating the DEBUG mode.

Contributions and Licensing

(as per https://zoo-project.github.io/docs/contribute/howto.html#licensing)

  • I'd like to contribute [feature X|bugfix Y|docs|something else] to ZOO-Project. I confirm that my contributions to ZOO-Project will be compatible with the ZOO-Project license guidelines at the time of contribution.
  • I have already previously agreed to the ZOO-Project Contributions and Licensing Guidelines

sabarre and others added 4 commits August 29, 2023 11:03
Small changes to remove placeholder for a char pointer as we don't provide any.
Don't try to access the default attribute to avoid segmentation violation in case it is NULL
@gfenoy gfenoy merged commit ba0e4b9 into ZOO-Project:main Aug 31, 2023
1 of 8 checks passed
@superptitsam superptitsam deleted the load_lib_error branch September 5, 2023 09:10
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

Successfully merging this pull request may close these issues.

None yet

3 participants