Dear Friends, How are you doing?
I found some free time to play around with OSv and I just finished a set of patches to upgrade Tomcat from 8 to 9 Built the image with the following command line: netto@morpheus:~/Desktop/osv/osv-tomcat9$ scripts/build image=openjdk8-zulu-full,tomcat Everything seemed okay but when I tried to shutdown the Tomcat 9 I had this issue below netto@morpheus:~/Desktop/osv/osv-tomcat9$ sudo scripts/run.py -nV OSv v0.51.0-33-gf725e256 4 CPUs detected Firmware vendor: SeaBIOS bsd: initializing - done VFS: mounting ramfs at / VFS: mounting devfs at /dev net: initializing - done vga: Add VGA device instance eth0: ethernet address: 52:54:00:12:34:56 virtio-blk: Add blk device instances 0 as vblk0, devsize=10737418240 random: virtio-rng registered as a source. random: intel drng, rdrand registered as a source. random: <Software, Yarrow> initialized VFS: unmounting /dev VFS: mounting rofs at /rofs failed to mount /rofs, error = No error information 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 program zpool.so returned 1 BSD shrinker: event handler list found: 0xffffa000016ec280 BSD shrinker found: 1 BSD shrinker: unlocked, running [I/42 dhcp]: Broadcasting DHCPDISCOVER message with xid: [2033584664] [I/42 dhcp]: Waiting for IP... [I/42 dhcp]: Broadcasting DHCPDISCOVER message with xid: [119166545] [I/42 dhcp]: Waiting for IP... [I/252 dhcp]: Received DHCPOFFER message from DHCP server: 192.168.122.1 regarding offerred IP address: 192.168.122.76 [I/252 dhcp]: Broadcasting DHCPREQUEST message with xid: [119166545] to SELECT offered IP: 192.168.122.76 [I/252 dhcp]: DHCP received hostname: osv [I/252 dhcp]: Received DHCPACK message from DHCP server: 192.168.122.1 regarding offerred IP address: 192.168.122.76 [I/252 dhcp]: Server acknowledged IP 192.168.122.76 for interface eth0 with time to lease in seconds: 3600 eth0: 192.168.122.76 [I/252 dhcp]: Configuring eth0: ip 192.168.122.76 subnet mask 255.255.255.0 gateway 192.168.122.1 MTU 1500 [I/252 dhcp]: Set hostname to: osv java.so: Starting JVM app using: io/osv/nonisolated/RunNonIsolatedJvmApp java.so: Setting Java system classloader to NonIsolatingOsvSystemClassLoader 04-Sep-2018 18:47:59.056 INFO [Thread-1] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/9.0.11 04-Sep-2018 18:47:59.086 INFO [Thread-1] org.apache.catalina.startup.VersionLoggerListener.log Server built: Aug 11 2018 19:47:23 UTC 04-Sep-2018 18:47:59.087 INFO [Thread-1] org.apache.catalina.startup.VersionLoggerListener.log Server number: 9.0.11.0 04-Sep-2018 18:47:59.089 INFO [Thread-1] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux 04-Sep-2018 18:47:59.091 INFO [Thread-1] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 3.7.0 04-Sep-2018 18:47:59.092 INFO [Thread-1] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64 04-Sep-2018 18:47:59.094 INFO [Thread-1] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/lib/jvm/java/jre 04-Sep-2018 18:47:59.096 INFO [Thread-1] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_181-b02 04-Sep-2018 18:47:59.098 INFO [Thread-1] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Azul Systems, Inc. 04-Sep-2018 18:47:59.100 INFO [Thread-1] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /usr/tomcat 04-Sep-2018 18:47:59.102 INFO [Thread-1] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /usr/tomcat 04-Sep-2018 18:47:59.104 INFO [Thread-1] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.system.class.loader=io.osv.nonisolated.NonIsolatingOsvSystemClassLoader 04-Sep-2018 18:47:59.107 INFO [Thread-1] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dosv.version=v0.51.0-33-gf725e256 04-Sep-2018 18:47:59.110 INFO [Thread-1] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib] 04-Sep-2018 18:47:59.250 INFO [Thread-1] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-8081"] 04-Sep-2018 18:47:59.337 INFO [Thread-1] org.apache.catalina.startup.Catalina.load Initialization processed in 785 ms 04-Sep-2018 18:47:59.376 INFO [Thread-1] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina] 04-Sep-2018 18:47:59.378 INFO [Thread-1] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/9.0.11 04-Sep-2018 18:47:59.434 INFO [Thread-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/tomcat/webapps/manager] 04-Sep-2018 18:47:59.798 INFO [Thread-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/tomcat/webapps/manager] has finished in [364] ms 04-Sep-2018 18:47:59.800 INFO [Thread-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/tomcat/webapps/ROOT] 04-Sep-2018 18:47:59.818 INFO [Thread-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/tomcat/webapps/ROOT] has finished in [18] ms 04-Sep-2018 18:47:59.820 INFO [Thread-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/tomcat/webapps/host-manager] 04-Sep-2018 18:47:59.847 INFO [Thread-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/tomcat/webapps/host-manager] has finished in [27] ms 04-Sep-2018 18:47:59.850 INFO [Thread-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/tomcat/webapps/docs] 04-Sep-2018 18:47:59.867 INFO [Thread-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/tomcat/webapps/docs] has finished in [17] ms 04-Sep-2018 18:47:59.873 INFO [Thread-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/tomcat/webapps/examples] 04-Sep-2018 18:48:00.208 INFO [Thread-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/tomcat/webapps/examples] has finished in [334] ms 04-Sep-2018 18:48:00.212 INFO [Thread-1] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-8081"] 04-Sep-2018 18:48:00.216 INFO [Thread-1] org.apache.catalina.startup.Catalina.start Server startup in 877 ms 04-Sep-2018 19:01:44.519 INFO [Thread-6] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-8081"] 04-Sep-2018 19:01:44.626 INFO [Thread-6] org.apache.catalina.core.StandardService.stopInternal Stopping service [Catalina] 04-Sep-2018 19:01:44.766 INFO [Thread-6] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-8081"] pthread_kill() stubbed 04-Sep-2018 19:01:45.769 INFO [Thread-6] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-8081"] [registers] RIP: 0x00000000003e1200 <memory::pool::collect_garbage()+128> RFL: 0x0000000000010282 CS: 0x0000000000000008 SS: 0x0000000000000010 RAX: 0xffff80000840d010 RBX: 0x0000000000000001 RCX: 0x0000000000000000 RDX: 0xffff80001996e781 RSI: 0xe8ffff8000199b4f RDI: 0xffff80001996e010 RBP: 0xffff8000015d5f80 R8: 0x0000000000c2e5c8 R9: 0xffff800000f48140 R10: 0xffff8000014d2170 R11: 0x0000000000000001 R12: 0x0000000000000000 R13: 0xffff800000f48140 R14: 0xffff8000014d2170 R15: 0x0000000000000001 RSP: 0xffff8000015d5f50 general protection fault [backtrace] 0x00000000003988ca <general_protection+138> 0x0000000000395dc2 <???+3759554> 0x00000000003e12a8 <???+4068008> 0x0000000000417af7 <workman::call_of_duty()+215> 0x0000000000417c68 <???+4291688> 0x00000000003f4e96 <thread_main_c+38> 0x0000000000396d82 <???+3763586> Some times the error is the following: ... 04-Sep-2018 19:07:47.557 INFO [Thread-6] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-8081"] page fault outside application, addr: 0x0000000000000000 [registers] RIP: 0x00000000003d2e17 <lockfree::mutex::lock()+39> RFL: 0x0000000000010202 CS: 0x0000000000000008 SS: 0x0000000000000010 RAX: 0x0000000000000001 RBX: 0xfffffffffffff8e0 RCX: 0x0000000000246c00 RDX: 0xffffa00009305e80 RSI: 0x0000000080000000 RDI: 0x0000000000000000 RBP: 0x0000200022aff680 R8: 0xfffffffffffff8e0 R9: 0x0000000000c2e5f8 R10: 0x00002000004195e2 R11: 0x0000100002542b80 R12: 0x0000000000000000 R13: 0x0000000000c2e5f8 R14: 0x00002000004195e2 R15: 0x0000100002542b80 RSP: 0x0000200022aff640 Aborted [backtrace] 0x00000000003344c5 <???+3359941> 0x0000000000336be9 <mmu::vm_fault(unsigned long, exception_frame*)+185> 0x0000000000396fae <page_fault+142> 0x0000000000395e06 <???+3759622> 0x0000000000246c19 <socket_file::epoll_del(epoll_ptr)+25> 0x0000000000415528 <epoll_file::close()+88> 0x000000000043851b <fdrop+75> 0x00000000004386a5 <fdclose(int)+69> 0x0000000000432687 <close+23> 0x0000100003807936 <Java_sun_nio_ch_EPollPort_close0+22> 0x000020000041960d <???+4298253> 0x000020000040801c <???+4227100> 0x000020000040801c <???+4227100> 0x000020000040801c <???+4227100> 0x0000200000408061 <???+4227169> 0x000020000040050a <???+4195594> 0x000010000225ebba <???+36039610> 0x000010000225ffd6 <???+36044758> 0x0000100002260496 <???+36045974> 0x00001000022ada70 <???+36362864> 0x00001000025f24f0 <???+39789808> 0x00001000025f26d7 <???+39790295> 0x00001000024af501 <???+38466817> 0x000000000045aca5 <???+4566181> 0x00000000003f4e96 <thread_main_c+38> 0x0000000000396d82 <???+3763586> 0x01910065004100ff <???+4260095> 0x00000000003f488f <???+4147343> 0x4156415741e58947 <???+1105561927> Kind Regards, Geraldo Netto Sapere Aude => Non dvcor, dvco http://exdev.sf.net/ -- 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 osv-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.