Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 550166 - =x11-misc/synergy-1.7.2 - qsynergy: terminate called after throwing an instance of 'std::runtime_error' (missing /usr/bin/syntool)
Summary: =x11-misc/synergy-1.7.2 - qsynergy: terminate called after throwing an instan...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Desktop Misc. Team
URL: https://github.com/synergy/synergy/is...
Whiteboard:
Keywords:
: 550224 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-05-22 13:11 UTC by Dmytro 'daks' Fomenko
Modified: 2015-05-28 05:37 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild including syntool (synergy-1.7.2.ebuild.patch,290 bytes, patch)
2015-05-22 23:43 UTC, Mihai Donțu
Details | Diff
synergy-1.7.2-r1.ebuild (synergy-1.7.2-r1.ebuild,2.48 KB, text/plain)
2015-05-22 23:46 UTC, Mihai Donțu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmytro 'daks' Fomenko 2015-05-22 13:11:55 UTC
x11-misc/synergy-1.7.2 (1.7.1 too) crashes because it tries to run /usr/bin/syntool:

ux51vz ~ % /usr/bin/qsynergy
terminate called after throwing an instance of 'std::runtime_error'
  what():  Code: 0
Error: Unknown
[1]    3749 abort      /usr/bin/qsynergy

Start with strace tool gives us the reason:

ux51vz ~ % strace -f -tt -s65535 /usr/bin/qsynergy
................<cutted>....................
[pid  3849] 16:05:11.164954 execve("/usr/bin/syntool", ["/usr/bin/syntool", "--get-profile-dir"], [/* 57 vars */]) = -1 ENOENT (No such file or directory)
[pid  3849] 16:05:11.165111 write(17, "N\0o\0 \0s\0u\0c\0h\0 \0f\0i\0l\0e\0 \0o\0r\0 \0d\0i\0r\0e\0c\0t\0o\0r\0y\0", 50 <unfinished ...>
[pid  3842] 16:05:11.165157 <... select resumed> ) = 1 (in [16], left {29, 999752})
[pid  3849] 16:05:11.165175 <... write resumed> ) = 50
[pid  3842] 16:05:11.165207 write(3, "\1\0\0\0\0\0\0\0", 8 <unfinished ...>
[pid  3849] 16:05:11.165228 close(17 <unfinished ...>
[pid  3842] 16:05:11.165243 <... write resumed> ) = 8
[pid  3849] 16:05:11.165254 <... close resumed> ) = 0
[pid  3842] 16:05:11.165272 read(16, "N\0o\0 \0s\0u\0c\0h\0 \0f\0i\0l\0e\0 \0o\0r\0 \0d\0i\0r\0e\0c\0t\0o\0r\0y\0", 1024) = 50
[pid  3849] 16:05:11.165308 exit_group(-1) = ?
[pid  3842] 16:05:11.165345 write(3, "\1\0\0\0\0\0\0\0", 8) = 8
[pid  3842] 16:05:11.165394 close(16)   = 0
[pid  3842] 16:05:11.165477 read(18, 0x7ffe05db5453, 1) = -1 EAGAIN (Resource temporarily unavailable)
[pid  3842] 16:05:11.165550 wait4(3849, 0x7ffe05db5454, WNOHANG, NULL) = 0
[pid  3842] 16:05:11.165622 write(3, "\1\0\0\0\0\0\0\0", 8) = 8
[pid  3842] 16:05:11.165701 write(3, "\1\0\0\0\0\0\0\0", 8) = 8
[pid  3842] 16:05:11.165771 write(3, "\1\0\0\0\0\0\0\0", 8) = 8
[pid  3842] 16:05:11.165837 close(11)   = 0
[pid  3842] 16:05:11.165891 close(13)   = 0
[pid  3842] 16:05:11.165946 close(10)   = 0
[pid  3842] 16:05:11.166004 close(19)   = 0
[pid  3842] 16:05:11.166060 close(18)   = 0
[pid  3842] 16:05:11.166179 futex(0x7f75c01d31d0, FUTEX_WAKE_PRIVATE, 2147483647) = 0
[pid  3849] 16:05:11.166222 +++ exited with 255 +++
[pid  3842] 16:05:11.166238 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=3849, si_uid=0, si_status=255, si_utime=0, si_stime=0} ---
[pid  3842] 16:05:11.166272 write(5, "\0", 1) = 1
[pid  3848] 16:05:11.166318 <... select resumed> ) = 1 (in [4])
[pid  3842] 16:05:11.166337 rt_sigreturn({mask=[]} <unfinished ...>
[pid  3848] 16:05:11.166356 read(4,  <unfinished ...>
[pid  3842] 16:05:11.166372 <... rt_sigreturn resumed> ) = 0
[pid  3848] 16:05:11.166383 <... read resumed> "\0", 1) = 1
[pid  3848] 16:05:11.166416 select(5, [4], NULL, NULL, NULL <unfinished ...>
[pid  3842] 16:05:11.166475 write(2, "terminate called after throwing an instance of '", 48terminate called after throwing an instance of ') = 48
[pid  3842] 16:05:11.166545 write(2, "std::runtime_error", 18std::runtime_error) = 18
[pid  3842] 16:05:11.166606 write(2, "'\n", 2'
) = 2
[pid  3842] 16:05:11.166681 write(2, "  what():  ", 11  what():  ) = 11
[pid  3842] 16:05:11.166737 write(2, "Code: 0\nError: Unknown", 22Code: 0
Error: Unknown) = 22
[pid  3842] 16:05:11.166800 write(2, "\n", 1
) = 1
[pid  3842] 16:05:11.166864 rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
[pid  3842] 16:05:11.166925 tgkill(3842, 3842, SIGABRT) = 0
[pid  3842] 16:05:11.166982 --- SIGABRT {si_signo=SIGABRT, si_code=SI_TKILL, si_pid=3842, si_uid=0} ---
[pid  3848] 16:05:11.167053 +++ killed by SIGABRT +++
16:05:11.168360 +++ killed by SIGABRT +++
[1]    3840 abort      strace -f -tt -s65535 /usr/bin/qsynergy
ux51vz ~ %

The syntool is a part of the synergy package, it is successfully compiled, but for some reason it doesn't installed by ebuild. This is the snippet from ebuild:

src_install () {
        dobin bin/${PN}{c,s}

The problem fixes by adding 
        dobin bin/syntool
to the ebuild.



ux51vz bin % emerge --info
Portage 2.2.20 (python 2.7.9-final-0, default/linux/amd64/13.0, gcc-4.9.2, glibc-2.20-r2, 3.19.5-zen-50-g99345ab-dirty x86_64)
=================================================================
System uname: Linux-3.19.5-zen-50-g99345ab-dirty-x86_64-Intel-R-_Core-TM-_i7-3632QM_CPU_@_2.20GHz-with-gentoo-2.2
KiB Mem:    10191236 total,   1005116 free
KiB Swap:   12582908 total,  12582908 free
Timestamp of repository gentoo: Fri, 22 May 2015 09:00:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25 p1.0) 2.25
app-shells/bash:          4.3_p39::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2-r1::gentoo
dev-lang/python:          2.7.9-r2::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.2.2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.16.3::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25::gentoo
sys-devel/gcc:            4.9.2::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.0::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

local-overlay
    location: /usr/local/local-overlay
    masters: gentoo
    priority: 0

bumblebee
    location: /var/lib/layman/bumblebee
    sync-type: laymansync
    sync-uri: git://github.com/Bumblebee-Project/bumblebee-gentoo
    masters: gentoo
    priority: 50

daks
    location: /var/lib/layman/daks
    sync-type: laymansync
    sync-uri: https://github.com/daks-ua/daks-overlay
    masters: gentoo
    priority: 50

mozilla
    location: /var/lib/layman/mozilla
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/mozilla.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -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/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 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--ask-enter-invalid --keep-going --with-bdeps=y --complete-graph=y --quiet-build=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news nodoc parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://portage.org.ua/ http://gentoo.kiev.ua/ftp/ http://mirror.yandex.ru/gentoo-distfiles/"
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--bwlimit=150"
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="256-color 3dnow 3dnowext X aac aacplus acl acpi alsa amd64 avx bash-completion berkdb bluetooth btrfs bzip2 cli consolekit cracklib crypt cxx dbus dri exif flac fortran gdbm gpm gstreamer iconv icu idn ipv6 jpeg lastfm libav libnotify mmx mmxext modules mp3 mp4 multilib ncurses nls nptl nsplugin ogg openmp pam pcre png policykit readline session speex spell spice sse sse2 ssl syslog system-cairo system-icu system-jpeg system-sqlite tcpd truetype udev unicode usb vim-syntax vorbis wavpack webstart zlib zsh-completion" ABI_X86="64" 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 adc65 agfa_cl20 aox ax203 barbie canon casio_qv clicksmart310 digigr8 digita dimagev dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 jl2005a jl2005c kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm mars mustek panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 pccam300 pccam600 pentax polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ricoh ricoh_g3 samsung sierra sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 st2205 stv0674 stv0680 sx330z topfield toshiba_pdrm11 tp6801" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" DRACUT_MODULES="btrfs" 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" GRUB_PLATFORMS="efi-32 efi-64" INPUT_DEVICES="evdev synaptics mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher" LINGUAS="en ru ru_RU uk uk_UA" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nouveau intel i965" 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"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Mihai Donțu 2015-05-22 23:43:24 UTC
Created attachment 403792 [details, diff]
ebuild including syntool

The attached patch adds syntool to the list of installed binaries
Comment 2 Mihai Donțu 2015-05-22 23:46:18 UTC
Created attachment 403794 [details]
synergy-1.7.2-r1.ebuild

The previous patch was a reversed one (sorry). Here's a full ebuild instead.
Comment 3 Hubert Kowalski 2015-05-24 11:44:17 UTC
This ebuild solves problem :)
Comment 4 Alex Barker 2015-05-27 15:13:26 UTC
Can this be bumped to 1.7.3, it looks like that was just released today.  Renaming the above ebuild seems to work.  I am getting a NOTE: crypto disabled because of ns plugin not available error and another error about unknown linux package when running setup.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2015-05-28 05:13:42 UTC
*** Bug 550224 has been marked as a duplicate of this bug. ***
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2015-05-28 05:14:52 UTC
Comment on attachment 403794 [details]
synergy-1.7.2-r1.ebuild

--- synergy-1.7.2.ebuild
+++ synergy-1.7.2.ebuild
@@ -88,7 +88,7 @@
 }

 src_install () {
-       dobin bin/${PN}{c,s}
+       dobin bin/${PN}{c,s} bin/syntool

        if use qt4 ; then
                newbin bin/${PN} qsynergy
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2015-05-28 05:37:58 UTC
Fixed in 1.7.3.