When I run "virt-builder --list" from the command line , it gets stuck eating 100% of a single CPU for many minutes. It also happens as root. To reproduce "urpmi libguestfs-tools".
CC: (none) => rjones
Stack trace at suspected crash point: (gdb) bt #0 0x00007ffff649d8a0 in __read_nocancel () at ../sysdeps/unix/syscall-template.S:84 #1 0x00007ffff642bb59 in __GI__IO_file_xsgetn (fp=0x903260, data=<optimized out>, n=8192) at fileops.c:1434 #2 0x00007ffff6421226 in __GI__IO_fread (buf=<optimized out>, size=1, count=8192, fp=0x903260) at iofread.c:42 #3 0x00000000004f560f in yy_get_next_buffer () #4 0x00000000004f58b4 in input () #5 0x00000000004f5c22 in yylex () #6 0x00000000004f7149 in yyparse () #7 0x00000000004f7335 in do_parse () #8 0x00000000004f7488 in virt_builder_parse_index () #9 0x000000000042e5d4 in camlIni_reader__read_ini_1059 () #10 0x000000000042ad39 in camlIndex_parser__get_index_1069 () #11 0x000000000048f3b1 in camlList__map_1040 () #12 0x0000000000422c82 in camlBuilder__main_1137 () #13 0x000000000043f709 in camlCommon_utils__run_main_and_handle_errors_1327 () #14 0x00000000004245f7 in camlBuilder__entry () #15 0x0000000000413669 in caml_program () #16 0x000000000050b73a in caml_start_program () #17 0x0000000000000000 in ?? ()
Stack trace frame 11 above corresponds to this code: https://github.com/libguestfs/libguestfs/blob/d6c42a6c587028bfb29ccfcdf343fa00d86b6e52/builder/builder.ml#L203
Assigning to maintainer
CC: (none) => marja11Assignee: bugsquad => joequantSource RPM: (none) => libguestfs
What it's doing here is downloading http://download.opensuse.org/repositories/Virtualization:/virt-builder-images/images/index and then trying to parse that file using the code in https://github.com/libguestfs/libguestfs/blob/master/builder/index-scan.l https://github.com/libguestfs/libguestfs/blob/master/builder/index-parse.y (However it is not hanging for me, so maybe we are seeing different file contents, although hanging while parsing a file is never acceptable whatever the contents are).
Upstream fix is: https://github.com/libguestfs/libguestfs/commit/0a808d986afbf242b5a9a47a948ef4f5150affb6
I fixed it locally by updating the libguestfs mgarepo checkout to 1.34.2, rebuilding it , and upgrading the packages. I can commit my changes with the permission of joequant.
@Shlomi: If it builds and works locally, can you please submit the update to 1.34.3 for Cauldron?
CC: (none) => ngompa13
works fine on latest mga7.
Status: NEW => RESOLVEDResolution: (none) => FIXED