The following small patch fixes the segfault when network status is changing.
--- xchat-gnome-0.30.0~git20100421.29cc76.orig/plugins/net-monitor/net-monitor.c +++ xchat-gnome-0.30.0~git20100421.29cc76/plugins/net-monitor/net-monitor.c @@ -176,7 +176,8 @@ set_network_mode (NetworkStatus status) */ res_init(); - g_hash_table_foreach (networks, (GHFunc) connect_to_network, NULL); + if(networks) + g_hash_table_foreach (networks, (GHFunc) connect_to_network, NULL); } } -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xchat-gnome in Ubuntu. https://bugs.launchpad.net/bugs/851058 Title: xchat-gnome crashed with SIGSEGV in g_hash_table_foreach() Status in “xchat-gnome” package in Ubuntu: New Bug description: I'm using the latest Oneiric (upgraded daily from beta1). Xchat-gnome crashed when I disconnect and reconnect to a WIFI AP (to refresh my IP address). Not sure if this would trigger the crash always. File a bug first and would try the same operation later to confirm. ProblemType: Crash DistroRelease: Ubuntu 11.10 Package: xchat-gnome 1:0.30.0~git20100421.29cc76-1ubuntu7 ProcVersionSignature: Ubuntu 3.0.0-11.18-generic 3.0.4 Uname: Linux 3.0.0-11-generic i686 ApportVersion: 1.23-0ubuntu1 Architecture: i386 Date: Fri Sep 16 00:09:31 2011 ExecutablePath: /usr/bin/xchat-gnome InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta i386 (20110901) ProcCmdline: xchat-gnome ProcEnviron: SHELL=/bin/bash PATH=(custom, no user) LANG=en_US.UTF-8 SegvAnalysis: Segfault happened at: 0xf1e63c <g_hash_table_foreach+28>: mov 0x2c(%esi),%ebp PC (0x00f1e63c) ok source "0x2c(%esi)" (0x0000002c) not located in a known VMA region (needed readable region)! destination "%ebp" ok SegvReason: reading NULL VMA Signal: 11 SourcePackage: xchat-gnome StacktraceTop: g_hash_table_foreach () from /lib/i386-linux-gnu/libglib-2.0.so.0 ?? () from /usr/lib/xchat-gnome/plugins/netmonitor.so ?? () from /usr/lib/xchat-gnome/plugins/netmonitor.so dbus_connection_dispatch () from /lib/i386-linux-gnu/libdbus-1.so.3 ?? () from /usr/lib/i386-linux-gnu/libdbus-glib-1.so.2 Title: xchat-gnome crashed with SIGSEGV in g_hash_table_foreach() UpgradeStatus: No upgrade log present (probably fresh install) UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xchat-gnome/+bug/851058/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp