Firstly, it will not build unless CXXFLAGS+=' -std=c++11' but even after building it has issues with string handling. Attempts to connect from save entries or from command line parameters are unsuccessful, failing with Hostname not found errors. The issue is that string handling is mangling the hostname and password fields. The mangling seems to be sensitive to the size of the text entry. Looking at the source, the culprit seems to be in GLIB::ustring being saved as c_str() through a toCString macro. Connections can be made through the quickconnect feature by filling in the fields. Connections made in this way are working normally. However the last_connection field that should populate the quickconnect dialog after a successful connection are also mangled after disconnect.
note the same issue is filed as a bug on Ubuntu-1510
Created attachment 422376 [details, diff] patch to fix string processing with gcc-5.3 I found this patch on Ubuntu. I can confirm it fixes the string processing breakage when compiled with gcc-5.3
Before we add the patch to the tree, please give us the standard rundown. You know, build log, emerge --info etc.
I do not have a working ebuild. I applied the patch to build directory after interrupting it before compile. The current ebuild in the tree will not compile with gcc-5.3. I am adding CXXFLAGS+=' -std=c++11 -Wno-narrowing' using bashrc in paludis. There is only a build log up to my abort which is not too useful. I have been running the patched mangler for the last few days with no issues. In my use case I am in listen only mode but the bug concerned connecting to servers and I have done that dozens of times. If you can put together a new ebuild I would be happy to test it. Portage 2.2.26 (python 3.5.1-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-5.3.0, glibc-2.22-r1, 4.3.3-gentoo x86_64) ================================================================= System uname: Linux-4.3.3-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_970_@_3.20GHz-with-gentoo-2.2 KiB Mem: 24680596 total, 142324 free KiB Swap: 62914548 total, 62913820 free Timestamp of repository gentoo: Wed, 13 Jan 2016 15:45:01 +0000 sh bash 4.3_p42-r1 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 app-shells/bash: 4.3_p42-r1::<unknown repository> dev-java/java-config: 2.2.0::<unknown repository> dev-lang/perl: 5.22.1::<unknown repository> dev-lang/python: 2.7.11-r2::<unknown repository>, 3.3.5-r7::<unknown repository>, 3.4.3-r7::<unknown repository>, 3.5.1-r2::<unknown repository> dev-util/cmake: 3.4.1::<unknown repository> dev-util/pkgconfig: 0.29::<unknown repository> sys-apps/baselayout: 2.2::<unknown repository> sys-apps/openrc: 0.19.1::<unknown repository> sys-apps/sandbox: 2.10-r1::<unknown repository> sys-devel/autoconf: 2.13::<unknown repository>, 2.69-r1::<unknown repository> sys-devel/automake: 1.10.3-r2::<unknown repository>, 1.11.6-r2::<unknown repository>, 1.12.6-r1::<unknown repository>, 1.13.4-r1::<unknown repository>, 1.14.1-r1::<unknown repository>, 1.15-r1::<unknown repository> sys-devel/binutils: 2.25.1-r1::<unknown repository> sys-devel/gcc: 4.9.3::gentoo, 5.3.0::gentoo sys-devel/gcc-config: 1.8::<unknown repository> sys-devel/libtool: 2.4.6-r1::<unknown repository> sys-devel/make: 4.1-r1::<unknown repository> sys-kernel/linux-headers: 4.4::<unknown repository> (virtual/os-headers) sys-libs/glibc: 2.22-r1::<unknown repository> Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://ftp.romnet.org priority: -1000 gnome location: /var/lib/layman/gnome masters: gentoo priority: 50 miramir location: /var/lib/layman/miramir masters: gentoo priority: 50 sublime-text location: /var/lib/layman/sublime-text masters: gentoo priority: 50 vmware location: /var/lib/layman/vmware masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://gentoo.gossamerhost.com ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://lug.mtu.edu/gentoo/ http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" USE="ABI_X86_32 X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli colord cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fortran gdbm gif glamor gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk3 gtreamer iconv introspection ipv6 jpeg lcms ldap libnotify libsecret mad mmx mmxext mng modules mp3 mp4 mpeg multilib nautilus ncurses nls nptl nvidia ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support qt4 readline sdl seccomp session sound spell sse sse2 ssl startup-notification svg systemd tcpd tiff tracker truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid xvmc zlib" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python3_3" PYTHON_TARGETS="python2_7 python3_4 python3_3 python3_5" RUBY_TARGETS="ruby21 ruby22 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" USE_PYTHON="2.7 3.3 3.4" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Harris, I cannot reproduce the bug. Hence, please do upload a build.log, even if its just for me to see the active USE flags. In addition, please give a link to the Ubuntu bug, or where you found the patch.
Created attachment 423056 [details] mangler build.log
This is the url of the ubuntu bug. The patch is towards the end of the thread. You will also see there how to reproduce the bug. https://bugs.launchpad.net/ubuntu/+source/mangler/+bug/1507232