Created attachment 519823 [details] test.rb Description of problem: See attached program. Note the bug was found by Marek Goldmann in Boxgrinder. Version-Release number of selected component (if applicable): libguestfs 1.10 through 1.13.7. How reproducible: 100% Steps to Reproduce: 1. Run the attached program. 2. 3. Actual results: At the end of the program the even handler gets into a funny state where it gives lots of errors like this: libguestfs: exception in callback: wrong argument type Proc (expected Data)libguestfs: exception in callback: wrong argument type Proc (expected Data)libguestfs: exception in callback: wrong argument type Proc (expected Data)libguestfs: exception in callback: wrong argument type Proc (expected Data)libguestfs: exception in callback: wrong argument type Proc (expected Data)... Expected results: Should not do that. Additional info:
I won't pretend I really understand what's going on here, but I have posted this workaround: https://www.redhat.com/archives/libguestfs/2011-August/msg00148.html BTW the error messages look scary but are completely benign -- just some unwanted output to stderr. It doesn't crash the Ruby interpreter or libguestfs.
Pushed: http://git.annexia.org/?p=libguestfs.git;a=commitdiff;h=0cd5b9ac15c62eb570ec74d19b4aebde4990fd82 http://git.annexia.org/?p=libguestfs.git;a=commitdiff;h=675f336319058fdbaf11ee004968b4543a5a9815 http://git.annexia.org/?p=libguestfs.git;a=commitdiff;h=1a4f1df77eecee053eaae35d5544f151d37342e2 The first two commits are just tidy-up, but are worth including in the full fix anyway.