ipupdate compiles under libgcc-5 on Ubuntu 16.04.2 LTS but segfaults on execute
Brought to you by:
dollardns
I am able to build ipupdate successfully on Ubuntu 16.04.2 successfully, but on execution the app segfaults.
Attaching core file and build directory for debugging.
./ipupdate
getconfig: loading '/etc/ipupdate.conf'
Detected IP: 24.211.238.20
Segmentation fault (core dumped)
Here is the information on the gcc installation:
After looking at the whatismyip code behavior, I think that I have found a clue as to what the problem is. It looks like whatismyip is using IPv6 to make its call on my machine. I have IPv6 enabled (and would prefer to leave it enabled) and as a result, whatismyip is not returning the expected IPv4 address, which is most likely causing the segfault.
Experimentation:
Using wget to pull-up the whatismyip.com web site:
Is there a way to make whatismyip prefer IPv4 instead of IPv6?
OK, as I get more familiar with what ipupdate is doing, I find that most likely the issue is not with the 'whatismyip' app, since the call to app 'dollardns' is working properly...
Continuing to look further...