Gasper in CC original console output:
OSv v0.24-364-g3cb3ccc
eth0: 10.32.3.20
java.so: Starting JVM app using: io/osv/isolated/RunIsolatedJvmApp
java.so: Setting Java system classloader to IsolatingOsvSystemClassLoader and 
logging manager to IsolatingLogManager
page fault outside application, addr: 0xffffffff098d9000
[registers]
RIP: 0x000000000069bcc6 <strlen+81>
RFL: 0x0000000000010246  CS:  0x0000000000000008  SS:  0x0000000000000010
RAX: 0xffffffff098d97c0  RBX: 0x00002000040ff660  RCX: 0x00002000040ff640  RDX: 
0x0000000000000002
RSI: 0x0000000000002000  RDI: 0xffffffff098d97c0  RBP: 0x00002000040ff5f0  R8:  
0x00002000040ffab0
R9:  0x0000000000000400  R10: 0x0000000000000000  R11: 0x0000000000000200  R12: 
0x00002000040ff660
R13: 0x0000000000000400  R14: 0x0000000000000000  R15: 0x0000000000000200  RSP: 
0x00002000040ff5f0
Aborted
[backtrace]
0x000000000022cc16 <abort(char const*, ...)+270>
0x00000000003bd37a <???+3920762>
0x00000000003bd519 <mmu::vm_fault(unsigned long, exception_frame*)+350>
0x0000000000480afa <page_fault+315>
0x000000000047f956 <???+4716886>
0x0000100003807144 <Java_java_net_Inet4AddressImpl_getLocalHostName+212>
0x0000200000413ad5 <???+4274901>
0x00002000004068e0 <???+4221152>
0x0000200000406232 <???+4219442>
0x00002000004068e0 <???+4221152>
0x00002000004068e0 <???+4221152>
0x0000200000406232 <???+4219442>
0x0000200000406057 <???+4218967>
0x0000200000406057 <???+4218967>
0x000020000040050a <???+4195594>
0x00001000019ef168 <???+27193704>
0x00001000019eebc7 <???+27192263>
0x0000100001c4b6e7 <???+29669095>
0x0000100001c4c837 <???+29673527>
0x0000100001a3c542 <JVM_InvokeMethod+402>
0x0000200000413ad5 <???+4274901>
0x0000200000406232 <???+4219442>
0x0000200000406232 <???+4219442>
0x00002000004068e0 <???+4221152>
0x0000200000406232 <???+4219442>
0x0000200000406057 <???+4218967>
0x0000200000406057 <???+4218967>
0x000020000040050a <???+4195594>
0x00001000019ef168 <???+27193704>
0x00001000019ede2d <???+27188781>
0x0000100001a2b5a3 <???+27440547>
0x0000100001d0ffe9 <???+30474217>
0x0000100001d1034f <???+30475087>
0x0000100001bd0f21 <???+29167393>
0x000000000069ecbe <???+6941886>
0x00000000006a1789 <???+6952841>
0x00000000004437d1 <std::function<void ()>::operator()() const+49>
0x00000000005ba237 <sched::thread::main()+27>
0x00000000005b610b <thread_main_c+38>
0x00000000004808d2 <???+4720850>

This one is nearly useless.
With openjdk-1.7, I had to add printf into libc/network/getaddrinfo.c, to 
figure out that something DNS related is problem.
Initially, I thought getaddrinfo() is problem - but that one fails at
https://github.com/cloudius-systems/osv/blob/master/libc/network/getaddrinfo.c#L197
 ,
so it returns a nullprt for res, which is a valid error.

After "manually" replacing openjdk with files from fedora 25, rebuild, etc.:
[I/196 dhcp]: Configuring eth0: ip 10.32.3.20 subnet mask 255.255.255.0 gateway 
10.32.3.1 MTU 1450
[I/196 dhcp]: Set hostname to: host-10-32-3-20
java.so: Starting JVM app using: io/osv/isolated/RunIsolatedJvmApp
java.so: Setting Java system classloader to IsolatingOsvSystemClassLoader and 
logging manager to IsolatingLogManager
17/06/07 19:48:18 INFO Worker: Started daemon with process name: 0@localhost
17/06/07 19:48:18 INFO SignalUtils: Registered signal handler for TERM
17/06/07 19:48:18 INFO SignalUtils: Registered signal handler for HUP
17/06/07 19:48:18 INFO SignalUtils: Registered signal handler for INT
io.osv.isolated.ContextFailedException: java.net.UnknownHostException: 
host-10-32-3-20: host-10-32-3-20: Name does not resolve
        at io.osv.isolated.Context.join(Context.java:63)
        at io.osv.isolated.IsolatedJvm.runSync(IsolatedJvm.java:159)
        at io.osv.RunJvmAppHelper.runSync(RunJvmAppHelper.java:40)
        at io.osv.isolated.RunIsolatedJvmApp.main(RunIsolatedJvmApp.java:35)
Caused by: java.net.UnknownHostException: host-10-32-3-20: host-10-32-3-20: 
Name does not resolve
...
[I/0 dhcp]: Unicasting DHCPRELEASE message with xid: [1256107423] from client: 
10.32.3.20 to server: 10.32.3.2
VFS: unmounting /dev

Now, java app shows error message, than both app and OSv exit nicely.
This is desired behavior I wish for.

On our openstack, I could get app up by ensuring that "dig host-10-32-3-20" 
returns the VM IP.

The easiest solution for me is to just update openjdk to 1.8.0 from FC25.
But could that break some other java apps?
Alternative could be to have build time option to select openjdk 1.7 or 1.8.

Justin

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to