cloudius-systems / osv

OSv, a new operating system for the cloud.
osv.io
Other
4.06k stars 603 forks source link

iperf -c <IP> causes SIGSEGV on VMware #412

Open syuu1228 opened 9 years ago

syuu1228 commented 9 years ago

On VMware I got SIGSEGV after benchmark finished. It looks like iperf trying to access invalid address, but only happen on VMware, not on KVM.

OSv v0.10-412-g83276d2
1 CPUs detected
VFS: mounting ramfs at /
VFS: mounting devfs at /dev
RAM disk at 0x0xffff800002bf5040 (4096K bytes)
net: initializing - done
vga: Add VGA device instance
eth0: ethernet address: 0:c:29:19:59:1e
vmw-pvscsi: Add pvscsi device target=0, lun=0   as vblk0, devsize=10842275840
Warning: No hardware source of entropy available to your platform,
    CSPRNG will rely on software source of entropy to provide high-quality randomness.
random: <Software, Yarrow> initialized
VFS: unmounting /dev
VFS: mounting zfs at /zfs
zfs: mounting osv/zfs from device /dev/vblk0.1
random: device unblocked.
VFS: mounting devfs at /dev
VFS: mounting procfs at /proc
BSD shrinker: event handler list found: 0xffffa00003083900
    BSD shrinker found: 1
BSD shrinker: unlocked, running
[I/26 dhcp]: Waiting for IP...
[I/187 dhcp]: Server acknowledged IP for interface eth0
eth0: 172.16.11.130
[I/187 dhcp]: Configuring eth0: ip 172.16.11.130 subnet mask 255.255.255.0 gateway 172.16.11.2 MTU 1500
Running from /init/10-httpserver: /libhttpserver.so &!

could not load libtools.so
------------------------------------------------------------
Client connecting to 192.168.122.1, TCP port 5001
TCP window size: 80.8 KByte (default)
------------------------------------------------------------
[  9] local 172.16.11.130 port 31936 connected with 192.168.122.1 port 5001
[ ID] Interval       Transfer     Bandwidth
[  9]  0.0-10.0 sec   484 MBytes   406 Mbits/sec
Aborted

[backtrace]
0x0000000000428851 <osv::generate_signal(siginfo&, exception_frame*)+49>
0x00000000004288ba <osv::handle_mmap_fault(unsigned long, int, exception_frame*)+26>
0x00000000003261f2 <mmu::vm_fault(unsigned long, exception_frame*)+146>
0x00000000003732d9 <page_fault+105>
0x00000000003721c6 <???+3613126>
0x000010000080d3d7 <???+8442839>
0x00001000008131b8 <???+8466872>
0x00000000004247c5 <???+4343749>
0x00000000003c161a <thread_main_c+26>
0x0000000000373145 <???+3617093>
dmitryfleytman commented 9 years ago

I think this issue was discussed here already. The problem is either alarm of thread left by iperf on exit.

On Jul 25, 2014, at 22:08 PM, Takuya ASADA notifications@github.com wrote:

On VMware I got SIGSEGV after benchmark finished. It looks like iperf trying to access invalid address, but only happen on VMware, not on KVM.

OSv v0.10-412-g83276d2 1 CPUs detected VFS: mounting ramfs at / VFS: mounting devfs at /dev RAM disk at 0x0xffff800002bf5040 (4096K bytes) net: initializing - done vga: Add VGA device instance eth0: ethernet address: 0:c:29:19:59:1e vmw-pvscsi: Add pvscsi device target=0, lun=0 as vblk0, devsize=10842275840 Warning: No hardware source of entropy available to your platform, CSPRNG will rely on software source of entropy to provide high-quality randomness. random: <Software, Yarrow> initialized VFS: unmounting /dev VFS: mounting zfs at /zfs zfs: mounting osv/zfs from device /dev/vblk0.1 random: device unblocked. VFS: mounting devfs at /dev VFS: mounting procfs at /proc BSD shrinker: event handler list found: 0xffffa00003083900 BSD shrinker found: 1 BSD shrinker: unlocked, running [I/26 dhcp]: Waiting for IP... [I/187 dhcp]: Server acknowledged IP for interface eth0 eth0: 172.16.11.130 [I/187 dhcp]: Configuring eth0: ip 172.16.11.130 subnet mask 255.255.255.0 gateway 172.16.11.2 MTU 1500 Running from /init/10-httpserver: /libhttpserver.so &!

could not load libtools.so

Client connecting to 192.168.122.1, TCP port 5001

TCP window size: 80.8 KByte (default)

[ 9] local 172.16.11.130 port 31936 connected with 192.168.122.1 port 5001 [ ID] Interval Transfer Bandwidth [ 9] 0.0-10.0 sec 484 MBytes 406 Mbits/sec Aborted

[backtrace] 0x0000000000428851 <osv::generate_signal(siginfo&, exception_frame)+49> 0x00000000004288ba <osv::handle_mmap_fault(unsigned long, int, exception_frame)+26> 0x00000000003261f2 <mmu::vm_fault(unsigned long, exception_frame*)+146> 0x00000000003732d9 <page_fault+105> 0x00000000003721c6 <???+3613126> 0x000010000080d3d7 <???+8442839> 0x00001000008131b8 <???+8466872> 0x00000000004247c5 <???+4343749> 0x00000000003c161a <thread_main_c+26> 0x0000000000373145 <???+3617093> — Reply to this email directly or view it on GitHub.