2014-11-12 23:09
avsm changed the topic of #mirage to: mirage 2 released! party on!
00:13
brson has quit [Ping timeout: 265 seconds]
00:24
brson has joined #mirage
00:34
seangrove has joined #mirage
00:40
seangrove has quit [Ping timeout: 240 seconds]
00:45
brson has quit [Ping timeout: 265 seconds]
01:01
brson has joined #mirage
01:11
brson has quit [Ping timeout: 252 seconds]
01:56
brson has joined #mirage
02:29
brson has quit [Ping timeout: 265 seconds]
03:02
rgrinberg has quit [Ping timeout: 250 seconds]
03:05
rgrinberg has joined #mirage
03:25
brson has joined #mirage
03:44
copy` has quit [Quit: Connection closed for inactivity]
04:12
jermar has joined #mirage
04:14
rgrinberg has quit [Quit: WeeChat 1.5]
05:05
brson has quit [Quit: leaving]
05:09
jermar has quit [Ping timeout: 265 seconds]
05:40
tet has quit [Ping timeout: 244 seconds]
06:48
jermar has joined #mirage
07:41
tet has joined #mirage
08:43
mort___ has joined #mirage
09:05
GemmaG has joined #mirage
10:32
miragebot has joined #mirage
10:32
miragebot has left #mirage [#mirage]
10:32
miragebot has joined #mirage
10:32
miragebot has left #mirage [#mirage]
10:32
miragebot has joined #mirage
10:32
miragebot has left #mirage [#mirage]
10:33
miragebot has joined #mirage
10:33
miragebot has left #mirage [#mirage]
10:33
miragebot has joined #mirage
10:33
miragebot has left #mirage [#mirage]
10:33
miragebot has joined #mirage
10:33
miragebot has left #mirage [#mirage]
10:33
miragebot has joined #mirage
10:33
miragebot has left #mirage [#mirage]
10:33
miragebot has joined #mirage
10:33
miragebot has left #mirage [#mirage]
10:34
miragebot has joined #mirage
10:34
miragebot has left #mirage [#mirage]
10:34
miragebot has joined #mirage
10:34
miragebot has left #mirage [#mirage]
10:34
miragebot has joined #mirage
10:34
miragebot has left #mirage [#mirage]
10:34
miragebot has joined #mirage
10:34
miragebot has left #mirage [#mirage]
10:34
miragebot has left #mirage [#mirage]
10:34
miragebot has joined #mirage
10:34
miragebot has joined #mirage
10:34
miragebot has left #mirage [#mirage]
10:35
miragebot has joined #mirage
10:35
miragebot has left #mirage [#mirage]
10:35
miragebot has joined #mirage
10:35
miragebot has left #mirage [#mirage]
10:35
miragebot has joined #mirage
10:35
miragebot has left #mirage [#mirage]
10:40
miragebot has left #mirage [#mirage]
10:40
miragebot has joined #mirage
10:42
apache2_ has joined #mirage
10:42
apache2 has quit [Remote host closed the connection]
10:57
<
mato >
hannes: the binary you linked to in #80 triple faults for me as well
10:58
<
hannes >
mattg: travis has OSX support (look at e.g. opam-repository how to add OSX into the matrix), maybe mirage-clock-* repo should run a MacOSX travis build slave as well
10:58
<
hannes >
mato: good news!?
10:58
<
mato >
hannes: also, it doesn't look like it's built against the latest master, since the bss is too small (#80 statically allocates tons of pkt buffers, so i see a BSS of ~25mb)
10:58
<
mato >
hannes: (which i need to fix, but that's a different issue)
10:58
<
mato >
hannes: having said that, test_ping_serve on master doesn't acutally work, but at least it doesn't triple fault
10:59
<
hannes >
(and now lunch)
11:00
<
mattg >
oooh, interesting hannes, i will investigate. but first, lunch
11:04
<
mato >
hannes: interesting, your binary has xmit_bufs and recv_bufs in the wrong place (both at the same address and in COMMON rather than .bss)
11:04
<
mato >
hannes: so that's definitely wrong
11:14
<
mato >
your linker is putting a bunch of stuff in the wrong place, it seems
11:14
<
mato >
which linker are you using again, the ancient freebsd "ld"?
11:22
mort___ has quit [Quit: Leaving.]
11:43
<
mato >
ok, i think i know how to fix this, and the bitrot in test_ping_serve along the way
11:49
<
hannes >
mato: oh, you might be right that the test there is still using ancient ld..
11:49
<
hannes >
sorry about that, but I got the same issue for mirage-skeleton/ping
11:52
<
mato >
yes, you will get the same
11:53
<
hannes >
also using /usr/local/bin/ld I get an issue at the same location..
11:55
<
mato >
i don't particularly want to rabbithole into fixing the COMMON issue, so i'll just eliminate all truly global variables instead
11:55
<
mato >
looks like i'll have to kill test_ping_serve entirely, not really worth trying to "fix" it
11:56
<
hannes >
fair enough
12:07
<
hannes >
(in case this is of any interest)
12:10
<
mato >
same problem
12:10
<
mato >
hannes: are you building with clang or with gcc?
12:16
<
mato >
(you'll need to use mirage to provide the tcp stack)
12:20
<
hannes >
mato: I get lots of output in the form of got irq 5 at 0x7275b777a15
12:20
<
mato >
ok, that's better
12:21
<
hannes >
and no ping gets replied, but also no crash
12:21
<
mato >
what does the start of the console log say?
12:21
<
mato >
(about interrupt lines)
12:22
<
hannes >
[13:21 hannes@aternefas:ping] sudo bhyve -A -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap0 -l com1,stdio -m 256M test
12:22
<
hannes >
\__ \ ( | | ( | ) |
12:22
<
hannes >
__| _ \ | _ \ __ \
12:22
<
hannes >
____/\___/ _|\___/____/
12:22
<
hannes >
multiboot: Using memory: 0x100000 - 0x10000000
12:22
<
hannes >
TSC frequency estimate is 2594162380 Hz
12:22
<
hannes >
virtio_config: device_id=1, interrupt_line=5
12:22
<
hannes >
Found virtio network device with MAC: 00 a0 98 cc 6a 96
12:22
<
hannes >
Solo5: new bindings
12:22
<
hannes >
STUB: getenv() called
12:22
<
hannes >
Netif: plugging into tap0 with mac 00:a0:98:cc:6a:96
12:22
<
hannes >
Netif: connect tap0
12:22
<
hannes >
starting...
12:22
<
hannes >
2016-09-08 15:34.50: INF [ethif] Connected Ethernet interface 00:a0:98:cc:6a:96
12:22
<
hannes >
2016-09-08 15:34.50: INF [arpv4] Connected arpv4 device on 00:a0:98:cc:6a:96
12:22
<
hannes >
got irq 5 at 0x746b28bcea6
12:22
<
hannes >
got irq 5 at 0x746b28f11fa
12:23
<
mato >
ok, can you add "case 0x05:" to the switch in kernel/virtio/low_level_interrupts.c:low_level_handle_irq() and rebuild?
12:24
<
mato >
(horrible hack, but should fix the problem)
12:25
<
hannes >
rebuilding
12:29
<
hannes >
no data via tcp..
12:29
<
hannes >
2016-09-08 15:48.06: INF [arpv4] ARP: timeout 10.0.0.1
12:29
<
hannes >
is what the ping unikernel tells me
12:29
<
mato >
that's normal
12:30
<
mato >
can you ping the unikernel at all?
12:30
<
hannes >
on the tap0 interface I get via tcpdump:
12:30
<
hannes >
13:29:10.625080 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 10.0.0.2 tell 10.0.0.1, length 28
12:30
<
hannes >
0x0020: 0000 0000 0000 0a00 0002
12:30
<
hannes >
0x0010: 0800 0604 0001 00bd c781 f900 0a00 0001
12:30
<
hannes >
0x0000: ffff ffff ffff 00bd c781 f900 0806 0001
12:30
<
hannes >
13:29:10.625217 00:00:00:00:00:00 > 00:00:00:00:00:00 Null Information, send seq 0, rcv seq 0, Flags [Command], length 46
12:30
<
hannes >
0x0000: 0000 0000 0000 0000 0000 0000 0000 0000
12:30
<
hannes >
0x0010: 0000 0000 0000 0000 0000 0000 0000 0000
12:30
<
hannes >
0x0020: 0000 0000 0000 0000 0000 0000 0000 0000
12:30
<
hannes >
0x0030: 0000 0000 0000 0000 0000 0000
12:30
<
hannes >
I configured host to be 10.0.0.1 (I should then see arp requests and replies from the unikernel to the host, shouldn't I)?
12:31
<
hannes >
there is no icmp echo reply from the ping unikernel, but it seems a bunch of zeroes
12:31
<
hannes >
(there's not even arp replies from the unikernel)
12:31
<
mato >
right, so there's something wrong on the tx path
12:32
<
mato >
still, much better than triple-faulting
12:32
<
hannes >
well, not sure whether the rx path is good..
12:33
mort___ has joined #mirage
12:34
<
mato >
ok, one thing at a time, i'll finish fixing the linker issue first
12:35
<
hannes >
mato: fair enough, just mention my name here when you want me to test something :)
12:35
<
mato >
and see if i can make a simple fix for #32, though that really calls for a proper cleanup of the irq handler code
12:35
<
mato >
hannes: sure. thanks!
12:36
<
hannes >
(will procrastinate with some opam signing test cases again)
12:38
copy` has joined #mirage
12:46
GemmaG has quit [Quit: Leaving.]
12:48
yomimono has joined #mirage
13:20
yomimono has quit [Ping timeout: 276 seconds]
13:22
rgrinberg has joined #mirage
13:23
jermar has quit [Ping timeout: 265 seconds]
13:23
GemmaG has joined #mirage
13:25
GemmaG has quit [Client Quit]
13:33
GemmaG has joined #mirage
13:37
yomimono has joined #mirage
13:38
GemmaG has quit [Ping timeout: 276 seconds]
13:42
agarwal1975 has joined #mirage
13:46
mort___ has quit [Quit: Leaving.]
13:54
GemmaG has joined #mirage
13:58
GemmaG has quit [Ping timeout: 244 seconds]
14:10
yomimono has quit [Ping timeout: 244 seconds]
14:11
mort___ has joined #mirage
14:13
yomimono has joined #mirage
14:27
brson has joined #mirage
15:05
jermar has joined #mirage
15:09
brson has quit [Ping timeout: 260 seconds]
15:34
brson has joined #mirage
15:43
brson has quit [Ping timeout: 260 seconds]
15:52
djs55 has quit [Quit: Leaving.]
15:55
brson has joined #mirage
16:00
mort___ has quit [Quit: Leaving.]
16:28
rgrinberg has quit [Ping timeout: 240 seconds]
16:40
<
mato >
hannes: ok, current solo5 master now has the fixes for both globals and irq 5 (just the hack)
16:40
<
mato >
hannes: i've also rewritten test_ping_serve (since it
*is* useful), so you should be able to test with that
16:40
<
mato >
hannes: however, it does not do ARP, so you want one of:
16:41
<
mato >
ping -b -I tap100 10.0.0.255
16:41
<
mato >
sudo arping -i tap100 52:54:00:12:34:56
16:41
<
mato >
(replacing the MAC with whichever MAC it reports on startup)
16:59
rgrinberg has joined #mirage
17:02
agarwal1975 has quit [Quit: agarwal1975]
17:03
agarwal1975 has joined #mirage
17:07
<
hannes >
mato: aha. so, the ping test actually sends back replies, but they're all 0
17:08
<
hannes >
(as reported 4.5 hours ago)
17:10
<
hannes >
and exactly 58 bytes
17:34
<
mato >
hannes: great..., so there's something wrong on the tx path. can you file an issue?
17:34
<
mato >
hannes: still much better than as of this morning :)
17:44
<
hannes >
mato: yes, thank you very much!
17:44
<
hannes >
I'll throw in some printfs and look whether I can come a bit further
17:47
djs55 has joined #mirage
17:57
yomimono has quit [Ping timeout: 240 seconds]
18:58
yomimono has joined #mirage
19:41
yomimono has quit [Ping timeout: 244 seconds]
19:45
GemmaG has joined #mirage
19:48
insitu has joined #mirage
19:50
GemmaG has quit [Ping timeout: 264 seconds]
20:08
insitu has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:09
rgrinberg has quit [Ping timeout: 244 seconds]
21:45
rgrinberg has joined #mirage
22:12
agarwal1975 has quit [Quit: agarwal1975]
22:27
jermar has quit [Ping timeout: 244 seconds]
23:46
GemmaG has joined #mirage
23:51
GemmaG has quit [Ping timeout: 244 seconds]