ports/182082: emulators/dynamips-community upgrade to 0.2.10 and head problem report

Remy Nonnenmacher remy.nonnenmacher at activnetworks.com
Tue Oct 15 09:50:02 UTC 2013


The following reply was made to PR ports/182082; it has been noted by GNATS.

From: Remy Nonnenmacher <remy.nonnenmacher at activnetworks.com>
To: bug-followup at FreeBSD.org, olivier at cochard.me
Cc:  
Subject: Re: ports/182082: emulators/dynamips-community upgrade to 0.2.10
 and head problem report
Date: Tue, 15 Oct 2013 11:43:47 +0200

 Hi,
 
 It seems that "some" file-targeted printf end up in coredump.
 (I say "some" because first few succeeds without clear reason. Ie: first 
 few logs work (and end up in the file) then one makes dumping guts also 
 without good reason)
 
 Removing logs from source allows the emulator to run until it hits 
 another log.
 
 System is 11-CURRENT, r256440, amd64
 
 exemple (recompiled with -g):
 --------------------------------------
 
   [SNIP]
   .
   .
 Installed image archive
 Cisco 7206VXR (NPE-G2) processor (revision B) with 229376K/16384K bytes 
 of memory.
 Processor board ID 4279256517
 MPC7448 CPU at 1916Mhz, Implementation 0, Rev 2.1
 6 slot VXR midplane, Version 2.1
 
 Last reset from power-on
 
 PCI bus mb1 (Slots 1, 3 and 5) has a capacity of 600 bandwidth points.
 Current configuration on bus mb1 has a total of 0 bandwidth points.
 This configuration is within the PCI bus capacity and is supported.
 
 PCI bus mb2 (Slots 2, 4 and 6) has a capacity of 600 bandwidth points.
 Current configuration on bus mb2 has a total of 0 bandwidth points.
 This configuration is within the PCI bus capacity and is supported.
 
 Please refer to the following document "Cisco 7200 Series Port Adaptor
 Hardware Configuration Guidelines" on Cisco.com <http://www.cisco.com>
 for c7200 bandwidth points oversubscription and usage guidelines.
 
 
 3 Gigabit Ethernet interfaces
 2045K bytes of NVRAM.
 Bus error (core dumped)
 [root-dvl5:~/GNS3]# gdb 
 /usr/ports/emulators/dynamips-community/work/dynamips-0.2.8-RC3-community/dynamips.stable 
 dynamips.stable.core
 GNU gdb 6.1.1 [FreeBSD]
 Copyright 2004 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General Public License, and you are
 welcome to change it and/or distribute copies of it under certain 
 conditions.
 Type "show copying" to see the conditions.
 There is absolutely no warranty for GDB.  Type "show warranty" for details.
 This GDB was configured as "amd64-marcel-freebsd"...
 Core was generated by `dynamips.stable'.
 Program terminated with signal 10, Bus error.
 Reading symbols from /usr/local/lib/libelf.so.0...done.
 Loaded symbols for /usr/local/lib/libelf.so.0
 Reading symbols from /usr/local/lib/libuuid.so.1...done.
 Loaded symbols for /usr/local/lib/libuuid.so.1
 Reading symbols from /lib/libpcap.so.8...done.
 Loaded symbols for /lib/libpcap.so.8
 Reading symbols from /lib/libthr.so.3...done.
 Loaded symbols for /lib/libthr.so.3
 Reading symbols from /lib/libc.so.7...done.
 Loaded symbols for /lib/libc.so.7
 Reading symbols from /usr/local/lib/libintl.so.9...done.
 Loaded symbols for /usr/local/lib/libintl.so.9
 Reading symbols from /libexec/ld-elf.so.1...done.
 Loaded symbols for /libexec/ld-elf.so.1
 #0  0x000000080126c35a in vfprintf_l () from /lib/libc.so.7
 [New Thread 80700e400 (LWP 100553/dynamips.stable)]
 [New Thread 801c09c00 (LWP 100552/dynamips.stable)]
 [New Thread 801c09800 (LWP 100551/dynamips.stable)]
 [New Thread 801c09400 (LWP 100550/dynamips.stable)]
 [New Thread 801c09000 (LWP 100549/dynamips.stable)]
 [New Thread 801c08c00 (LWP 100548/dynamips.stable)]
 [New Thread 801c08800 (LWP 100547/dynamips.stable)]
 [New Thread 801c08400 (LWP 100546/dynamips.stable)]
 [New Thread 801c08000 (LWP 100545/dynamips.stable)]
 [New Thread 801c07c00 (LWP 100544/dynamips.stable)]
 [New Thread 801c07800 (LWP 100543/dynamips.stable)]
 [New Thread 801c07400 (LWP 100542/dynamips.stable)]
 [New Thread 801c07000 (LWP 100541/dynamips.stable)]
 [New Thread 801c06c00 (LWP 100540/dynamips.stable)]
 [New Thread 801c06800 (LWP 100539/dynamips.stable)]
 [New Thread 801c06400 (LWP 101035/dynamips.stable)]
 (gdb) bt
 #0  0x000000080126c35a in vfprintf_l () from /lib/libc.so.7
 #1  0x000000080126c077 in vfprintf_l () from /lib/libc.so.7
 #2  0x000000080125d820 in fprintf () from /lib/libc.so.7
 #3  0x00000000004637ae in rommon_var_update_file (rvl=<value optimized 
 out>) at ../common/rommon_var.c:60
 #4  0x000000000043393c in dev_remote_control_access (cpu=<value 
 optimized out>, dev=<value optimized out>,
      offset=<value optimized out>, op_size=<value optimized out>, 
 op_type=<value optimized out>, data=<value optimized out>)
      at ../common/dev_remote.c:255
 #5  0x0000000000422434 in ppc32_mem_access (cpu=<value optimized out>, 
 vaddr=<value optimized out>, cid=<value optimized out>,
      op_code=<value optimized out>, op_size=4, op_type=1, 
 data=0x7ffffe1f0f58) at device.h:94
 #6  0x0000000000422973 in ppc32_stw (cpu=0x801c09c00, vaddr=100552, 
 reg=<value optimized out>) at ppc32_mem.c:809
 #7  0x000000080358b875 in ?? ()
 #8  0x0000000000425565 in ppc32_jit_run_cpu (gen=0x801ed0000) at 
 ppc32_amd64_trans.h:65
 #9  0x0000000800f2c4a4 in pthread_create () from /lib/libthr.so.3
 #10 0x0000000000000000 in ?? ()
 
 
 Code is: (>> = Line 60)
 
 /* Write a file with all ROMMON variables */
 int rommon_var_update_file(struct rommon_var_list *rvl)
 {
     struct rommon_var *var;
     FILE *fd;
 
     if (!rvl->filename)
        return(-1);
 
     if (!(fd = fopen(rvl->filename,"w"))) {
        fprintf(stderr,"%s: unable to create file %s (%s)\n",
                __func__,rvl->filename,strerror(errno));
        return(-1);
     }
 
     for(var=rvl->var_list;var;var=var->next)
  >>      fprintf(fd,"%s=%s\n",var->name,var->value ? var->value : "");
 
     fclose(fd);
     return(0);
 }
 
 
 


More information about the freebsd-ports-bugs mailing list