-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Add support for QNX #988
base: master
Are you sure you want to change the base?
Add support for QNX #988
Conversation
|
Hi, @leethomason Thanks for responding to my pull request.
Yes, QNX is cross compiled from a Ubuntu machine, so
I tested this sample program on my Ubuntu Linux machine, and I was able to print a null pointer:
The output is When I run the same program in QNX I get: Process 1302562 (a.out) terminated SIGSEGV code=1 fltno=11 ip=00000035fabe9c58 mapaddr=0000000000072c58 ref=0000000000000000
Memory fault (core dumped)
[pass] XMLDocument::Value() returns null? [(null)][(null)] whereas QNX crashes becuase it cannot print null pointers. |
@leethomason According to C11 and C99 standards published by ISO.
The behavior of passing null pointer to TLDR, there is an undefined behavior in the test program. The fix for QNX should be generalized. |
Modifications:
__QNXNTO__
to__QNX__
because__QNXNTO__
is deprecatedBuild and test instuction for QNX:
https://github.com/chachoi-world/qnx-ports/blob/main/tinyxml2/README.md
Thanks.