> From: Pierre Emeriaud <[email protected]> > Date: Mon, 17 Sep 2018 14:23:39 +0200 > > Hello > > I've been playing with logical domains on a Sun T5120 for a few. > Currently running OpenBSD 6.3 (GENERIC.MP) #486: Sat Mar 24 22:37:16 > MDT 2018 (6.3-release). You can find an old dmesg of 6.1 before > carving here: http://dmesgd.nycbug.org/index.cgi?do=view&id=3223 (the > server now has 16x4GB memory). > > And now when trying to reinstall a new ldom.conf I'm beeing hit by a crash: > > $ doas ldomctl init-system ldom.conf > Segmentation fault > > $ gdb /usr/sbin/ldomctl -c ldomctl.core > GNU gdb 6.3 > 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 "sparc64-unknown-openbsd6.3"... > Core was generated by `ldomctl'. > Program terminated with signal 11, Segmentation fault. > Loaded symbols for /usr/sbin/ldomctl > Reading symbols from /usr/lib/libc.so.92.3...done. > Loaded symbols for /usr/lib/libc.so.92.3 > Reading symbols from /usr/libexec/ld.so...done. > Loaded symbols for /usr/libexec/ld.so > #0 0x000000eeba0046ec in md_add_prop (md=Variable "md" is not available. > ) at /usr/src/usr.sbin/ldomctl/mdesc.c:165 > 165 /usr/src/usr.sbin/ldomctl/mdesc.c: No such file or directory. > in /usr/src/usr.sbin/ldomctl/mdesc.c > (gdb) bt > #0 0x000000eeba0046ec in md_add_prop (md=Variable "md" is not available. > ) at /usr/src/usr.sbin/ldomctl/mdesc.c:165 > #1 0x000000eeba004734 in md_add_prop_arc (md=0xf129fb5700, node=0x0, > name=0xeeba117d00 "back", target_node=0xf13bcdaa80) at > /usr/src/usr.sbin/ldomctl/mdesc.c:215 > #2 0x000000eeba008c34 in hvmd_finalize_guest (md=0xf129fb5700, > guest=0xf131958e00) at /usr/src/usr.sbin/ldomctl/config.c:1102 > #3 0x000000eeba008d90 in hvmd_finalize_guests (md=0xf129fb5700) at > /usr/src/usr.sbin/ldomctl/config.c:1126 > #4 0x000000eeba00bac4 in hvmd_finalize () at > /usr/src/usr.sbin/ldomctl/config.c:1191 > #5 0x000000eeba00d824 in build_config (filename=Variable "filename" > is not available. > ) at /usr/src/usr.sbin/ldomctl/config.c:2365 > #6 0x000000eeba001cc8 in main (argc=3, argv=0xfffffffffffc8820) at > /usr/src/usr.sbin/ldomctl/ldomctl.c:152 > > - all disk images are found where expected in the configuration file, > but not on the system disk (if that matters...) > - I deleted the files from a ldom before re-dumping them from the SP, no > change > - I tried deleting the current ldom configuration from the SP before > re-pushing it, same, no luck. > > I can provide the ldom.conf as well as the ldomctl.core if needed.
It is crucial that you use the hv.md, pri and primary.md files as dumped from the factory-default configuration when creating a new configuration using init-system. What you wrote above suggests that you may not have done that. Also, I just made some improvements to ldomctl(8) in 6.4-beta, a.k.a. -current. I'm pretty sure the new code will build fine on 6.3 so you can try checking out the -current source tree and do: # cd usr.sbin/ldomctl # make obj # make # make install to see if my changes fix this issue. Cheers, Mark
