Hello,

I just tried to run with real weather fetch, but the network cable was 
not plugged. This produced a segfault after about a minute, see below. 
Somewhere the information that the lookup has finally failed seems to 
get lost. After re-plugging the cable, everything was fine.

Best regards,
        Andreas


FGEnvironmentMgr::update: updating closest airport
NoaaMetarRealWxController::update(): spawning load request for 
station-id 'KSFO'
getaddrinfo failed for 'weather.noaa.gov' : No address associated with 
hostname

Program received signal SIGSEGV, Segmentation fault.
0x08b97b8a in simgear::IPAddress::setPort (this=0xbfffe518, port=80)
     at /home/simul/FlightGear/SimGear-git/simgear/io/raw_socket.cxx:334
334         addr->sin_port = htons(port);
(gdb) p port
$1 = 80
(gdb) p addr
$2 = (sockaddr_in *) 0x0
(gdb) bt
#0  0x08b97b8a in simgear::IPAddress::setPort (this=0xbfffe518, port=80)
     at /home/simul/FlightGear/SimGear-git/simgear/io/raw_socket.cxx:334
#1  0x08ba1e83 in simgear::NetChannel::handleResolve (this=0x8dd57288)
     at /home/simul/FlightGear/SimGear-git/simgear/io/sg_netChannel.cxx:213
#2  0x08ba1fcb in simgear::NetChannel::poll (timeout=0)
     at /home/simul/FlightGear/SimGear-git/simgear/io/sg_netChannel.cxx:254
#3  0x08ba43e1 in simgear::HTTP::Client::update (this=0xacff21f4)
     at /home/simul/FlightGear/SimGear-git/simgear/io/HTTPClient.cxx:388
#4  0x086cfb3e in Environment::NoaaMetarRealWxController::update (
     this=0xacff21a0, dt=1.0166666666666673) at realwx_ctrl.cxx:305


------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to