Closed pwt closed 3 years ago
OK, this has now stopped happening on the network in question. Inconvenient. I'm sure I've seen something similar quite a while ago, on a different network: core dumps that I couldn't explain, which also stopped happening without intervention.
My hunch is that there are UPnP devices that sometimes return malformed information. So, I wonder whether the calls to XMLGetFirstDocumentItem() should be checked for a NULL return before their values are used?
I pushed up a simple PR (#287). I've built, run and tested a binary including this change, but I don't know if it actually makes any difference to the error above because of its intermittent nature.
I've set a fix in 0.2.28.1
Looks good -- thanks!
Let's assume that v0.2.28.1 provides the fix. Thanks to @philippe44 for the fast response.
Hi Philippe: I wonder if you can help with this.
In one particular network environment,
airupnp-arm
is crashing reliably when used with the-o
option, as described below. I suspect it's something to do with the devices on that particular network.airupnp-arm
, I get the following output and the program continues to run:-o
option to specify which device model number(s) I want to include, I get a core dump every time:It doesn't matter what I specify after the
-o
: same result. The issue doesn't occur with the-m
and-n
options.I've also tried v0.2.26.1, with the same result, so it's not a new issue in the code. I'll also take a look at the relevant parts of the implementation in case I see anything obvious. Let me know if I can gather any further diagnostic information for you.
Thanks, Peter