GNOME Bugzilla – Bug 643726
xmlNanoHTTPMethod fails with "error : Invalid argument" on 64 bit operation
Last modified: 2021-07-05 13:26:57 UTC
Created attachment 182304 [details] Example of error Hello During a 64 bit migration of telco software we found that on HP-UX B.11.31 ia64 xmlNanoHTTPMethod fails with error "error : Invalid argument" dumped on stderr. It also returns NULL. It is beeing used to call webservices on a middleware component of a telco. It works ok on windows (32 bit) and hp-ux B.11.11 pa-risc (32 bit) In attach there is an example to reproduce the error compiled with: aCC -Ae +DD64 +w64bit +W829 +W2837 +W4298 +W2231 +W2375 +W2236 -L/lib/hpux64 -I/home1/pclprp2/tools/libxml2/include/libxml2 -c testh.c aCC -Ae +DD64 +w64bit +W829 +W2837 +W4298 +W2231 +W2375 +W2236 -L/lib/hpux64 -o testh testh.o /home1/pclprp2/tools/libxml2/lib/libxml2.a -lm sw: libxml2 2.7.8 compiled with aCC 64 bit mode Thanks Filipe Machado Filipe
We made an workaround on nanohttp.c changing #ifdef SO_ERROR to #define SO_ERRORxxxxx so getsockopt(s, SO_ERROR ..) is never used to get current socket error on current tcp connect with timeout implementation.
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/libxml2/-/issues/ Thank you for your understanding and your help.