Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 726652 - app-emulation/dynamips-0.2.21 crashing, error: Dynamips hypervisor process has stopped, return code: -11
Summary: app-emulation/dynamips-0.2.21 crashing, error: Dynamips hypervisor process h...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-01 14:54 UTC by Kenton Groombridge
Modified: 2021-07-11 22:07 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kenton Groombridge 2020-06-01 14:54:55 UTC
For the past couple weeks I am unable to use GNS3 as dynamips immediately crashes when starting the nodes in GNS3.

=> Dynamips hypervisor process has stopped, return code: -11
C3725 'Ghost': generic_nvram_extract_config: Unknown error -61605

I don't notice anything odd in the logs in the GNS3 project folder except for this error.

Tried several things, compiled dynamips with GCC 9.3.0 and 10.1.0 and tried reverting to previous package versions with no joy.

Found info online saying to use a 32 bit version of dynamips although that appears a bit kludgy as the 64 bit version has worked for me up until now:

https://github.com/GNS3/gns3-server/issues/1363

I have three systems with GNS3 and all were affected at the same time.



emerge --info
Portage 2.3.100 (python 3.7.7-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-10.1.0, glibc-2.31-r3, 5.6.15-gentoo x86_64)
=================================================================
System uname: Linux-5.6.15-gentoo-x86_64-Intel-R-_Core-TM-_i7-6800K_CPU_@_3.40GHz-with-gentoo-2.7
KiB Mem:    65797208 total,  57213108 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Mon, 01 Jun 2020 00:35:31 +0000
Head commit of repository gentoo: 742892ab76a2d1ec3bfd13c4dd724f55db6155a4

sh bash 5.0_p17
ld GNU ld (Gentoo 2.34 p4) 2.34.0
distcc 3.3.3 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          5.0_p17::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.2-r2::gentoo
dev-lang/python:          2.7.18::gentoo, 3.6.10-r2::gentoo, 3.7.7-r2::gentoo, 3.8.3::gentoo, 3.9.0_beta1::gentoo
dev-util/cmake:           3.17.3::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.16.2::gentoo
sys-devel/binutils:       2.34-r1::gentoo
sys-devel/gcc:            9.3.0-r1::gentoo, 10.1.0::gentoo
sys-devel/gcc-config:     2.3::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.6::gentoo (virtual/os-headers)
sys-libs/glibc:           2.31-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo
    priority: -1000

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ace
    location: /var/lib/layman/ace
    masters: gentoo
    priority: 50

pentoo
    location: /var/lib/layman/pentoo
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -mtune=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
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/vmware-installer"
CXXFLAGS="-O2 -pipe -march=native -mtune=native"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://192.168.1.115/ ftp://192.168.1.101/ http://gentoo.mirrors.pair.com/ http://gentoo.osuosl.org/ http://mirrors.rit.edu/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j13"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac aacplus acpi activities afpacket alsa alsa-plugin amd64 bbswitch berkdb binary-drivers bluetooth branding bzip2 cairo caps-ng cdda cdr cli client crypt cups dbus declarative dhcpcd dri3 dts dvb dvd dvdr efi efiemu elogind emboss encode evdev exif external-fuse fdk ff-card ffmpeg file-inspect flac flash fortran gdbm gif git gles2 gpm gstreamer gtk gtk3 hex hpcups hpn iconv icu ipv6 java javascript jit jpeg kipi kwallet lcms ldap legacy-systray libglvnd libnotify libtirpc lightdm lm_sensors mad maxminddb mjpeg mng mp3 mp4 mpeg multilib ncurses nfs nfsv4 nls nptl nsplugin nss ntfs ntfsprogs ntp nvidia ogg openal opencl opengl openmp openssl ovftool pam pango pcre pcsc-lite pdf phonon pkcs11 plasma png policykit ppds prelink proprietary-codecs pulseaudio python qemu qml qt5 rar readline samba scanner sdl seccomp secure-delete semantic-desktop sensors shm smartcard sna spell split-usr sqlite ssl startup-notification svc svg tcpd theora threads tiff touchpad truetype udev udisks unicode usb uvm uxa v4l v4l2 vaapi vdpau vix vnc vorbis vpx wayland widevine widgets winbind wma wxwidgets x264 x265 xattr xcb xml xnest xorg xv xvid xvmc zip zlib" ABI_X86="64" ADA_TARGET="gnat_2018" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en_US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python3_7 python3_8" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="nvidia" 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"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Kenton Groombridge 2020-06-10 16:57:22 UTC
Certainly I am not alone with this problem. To test the "fix" of using a 32 bit version of dynamips I used a compiled version from this:

https://rpmfind.net/linux/opensuse/tumbleweed/repo/oss/i586/dynamips-0.2.21-1.2.i586.rpm

as dynamips on gentoo doesn't support the abi_x86_32 USE flag.

This does work and I am able to run dynamips under GNS3.

I can't pinpoint the exact day I used a working 64 bit version of dynamips, but I am thinking it was in the last week of June. Again this is onn all three of my systems. I did my best to resolve it myself, but never got it to work again until today (although this isn't truly a fix).

Although adding the abi_x86_32 USE flag to dynamips would work, it doesn't solve the underlying issue of the 64 bit version not working.
Comment 2 Aleksander Zatserkovnyy 2021-07-11 22:07:27 UTC
I got the same problem some time ago.
Yesteday I look at it via gdb:
  (gdb) bt full
#0  0x00007f114e10b2bf in ?? () from /lib64/libc.so.6
No symbol table info available.
#1  0x00007f114e10d608 in strftime_l () from /lib64/libc.so.6
No symbol table info available.
#2  0x000000000041639f in m_flog (fd=0x2112980, module=0x4aa01e "ROM", fmt=0x4b261c "%s", ap=ap@entry=0x7f11434f0c68) at /usr/src/other/dynamips/common/utils.c:268
        spec = {tv_sec = 1625999598, tv_nsec = 775408819}
        tmn = {tm_sec = 18, tm_min = 33, tm_hour = 10, tm_mday = 11, tm_mon = 6, tm_year = 121, tm_wday = 0, tm_yday = 191, tm_isdst = 0, tm_gmtoff = 0, tm_zone = 0x7f114e1d0c4b "GMT"}
        buf = "sr/src/o", '\000' <repeats 16 times>, "\002\000\000\000\000\000\000\000\016\000\000\000\000\000\000\200", '\000' <repeats 48 times>, "\004\001\000\000\005\001\000\000\006\001\000\000\a\001\000\000\000\001\000\000\001\001\000\000\002\001\000\000\003\001\000\000\000\000\000\000\000\000\000\000[\000\000\000n", '\000' <repeats 19 times>, "w\000\000\000|\000\000\000\021\000\000\000\000\000\000\000 \000\000<\021\177\000\000\260\004\002\000\000\000\000\000 \000\000<\021\177\000\000\060\001\000\000\000\000\000\000"...
#3  0x00000000004245a4 in vm_flog (vm=<optimized out>, module=0x498456 "%b %d %H:%M:%S", format=0x498456 "%b %d %H:%M:%S", ap=0x7f11434f0c68) at /usr/src/other/dynamips/stable/vm.c:260
No locals.
#4  vm_log (vm=vm@entry=0x2110700, module=0x498456 "%b %d %H:%M:%S", format=0x498456 "%b %d %H:%M:%S") at /usr/src/other/dynamips/stable/vm.c:270
        ap = {{gp_offset = 24, fp_offset = 48, overflow_arg_area = 0x7f11434f0d48, reg_save_area = 0x7f11434f0c88}}
...

--------------------------------
I use the dirty hack: just comment the error source in common/utils.c:
/* Logging function */
void m_flog(FILE *fd,char *module,char *fmt,va_list ap)
{
   struct timespec spec;
   struct tm tmn;
   char buf[256];

   /*if (fd != NULL) {
      clock_gettime(CLOCK_REALTIME, &spec);
      gmtime_r(&spec.tv_sec, &tmn);

      strftime(buf,sizeof(buf),"%b %d %H:%M:%S",&tmn);

      fprintf(fd,"%s.%03ld %s: ",buf,(long)spec.tv_nsec/1000000,module);
      vfprintf(fd,fmt,ap);
      fflush(fd);
   }*/
}

As result dynamips (and gns3 ) works with IOSs.