dynamips
dynamips copied to clipboard
JIT compiler causes crashes on FreeBSD 11.1 11.2 RELEASE
When running dynamips it crashes every time with the following error:
blades@ryzen:~/GNS3/images/IOS % dynamips c7200-adventerprisek9-mz.124-11.t1.image Cisco Router Simulation Platform (version 0.2.16-amd64/FreeBSD stable) Copyright (c) 2005-2011 Christophe Fillot. Build date: Sep 4 2017 10:42:56
IOS image file: c7200-adventerprisek9-mz.124-11.t1.image
CPU0: carved JIT exec zone of 64 Mb into 2048 pages of 32 Kb. NVRAM is empty, setting config register to 0x2142 C7200 instance 'default' (id 0): VM Status : 0 RAM size : 256 Mb IOMEM size : 0 Mb NVRAM size : 128 Kb NPE model : npe-400 Midplane : vxr IOS image : c7200-adventerprisek9-mz.124-11.t1.image
Loading ELF file 'c7200-adventerprisek9-mz.124-11.t1.image'... ELF entry point: 0x80008000
C7200 'default': starting simulation (CPU0 PC=0xffffffffbfc00000), JIT enabled. ROMMON emulation microcode.
Bus error (core dumped)
gdb show the following:
(gdb) down
#4 0x0000000801268c4b in strftime_l (s=0x7fffde5f0ca8 "Sep ", maxsize=
FreeBSD 11.1 and 11.2 RELEASE are effected.
On a personal note I would love to get this running so I can run VMs in GNS3 2.0.3!
Bug also posted to FreeBSD bugzilla: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222047
Possible solution is to compile the 32-bit version of Dynamips: https://github.com/GNS3/dynamips/issues/83#issuecomment-363770174
The backtrace points to strftime, so this is probably fixed by #229