-
Notifications
You must be signed in to change notification settings - Fork 44
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
Subscription crashes broker when using HTTPS URIs #1615
Comments
ok, noted. |
Think I know which one you mean: |
Nah, what I found is similar but not similar enough.
Might be just a log message using that NULL pointer. |
Yes, that's the one I was thinking of |
Alright, hopefully you'll find something! |
I did find something, and it is related to the empty URL PATH of the notification endpoint. |
So, hopefully fixed the issue, please try again with the newest image on dockerhub and close this issue if all is OK. |
It's working!! Thanks for the fast reply, and fix. What was the issue, if I may ask? Tried to understand the changes, but not sure why this was causing the crash. |
Yeah, it was a stupidity. Not enough QA :(
While this provokes the crash:
The piece pf code getting Segmentation Fault was this:
Very easy fix: if |
That sounds logical, and already what I expected after viewing the changes. Funny enough, that I hadn't tested a variant with a path, in which case I could have probably made a more direct case in the issue :D Thanks for the explanation, and keep up the good work! |
The Issue
The context broker completely crashes when a subscription exists which has an HTTPS notification URI. Using an HTTP notification URI, the subscription seems to work as expected.
Environment
Locally using Docker (see composer below), but it also crashes my cloud hosted container.
Orion-LD: v1.5.1, but I've also tried the latest v1.6.0-pre-1609 image
MongoDB: v6.0
Replication and logs
Create subscription:
Result: 201 Created
Retrieve subscription
Result:
Update entity
Result: Crashes container
Logs
I've tried multiple startup commands to increase the amount of insight in the logs. As you can see in the composer snippet, I'm currently using
-logLevel DEBUG -t 0-5,20-22,31,41-47
which yields the most info. Although, I haven't seen an actualERROR
/FATAL
log which explains the crash. The container hosted in the cloud crashes withUncaught signal: 11, pid=1, tid=44, fault_addr=0.
.I've replaced the actual URI with {HTTPS_URL}
If any additional information is required, please ask.
Thanks in advance!
The text was updated successfully, but these errors were encountered: