Bug 725824

Summary: Crash in OCaml bindings in guestfs-browser while doing guestfs_du
Product: [Community] Virtualization Tools Reporter: Richard W.M. Jones <rjones>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED UPSTREAM QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: mbooth, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-26 18:03:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Richard W.M. Jones 2011-07-26 16:57:49 UTC
Loaded up a Fedora 14 guest and clicked on the show disk
usage for the root directory.

guestfs-browser crashed at some point during the operation.

Appears to be a bug in the OCaml bindings, perhaps related
to the event API?

Stack trace:

(gdb) thread 1
[Switching to thread 1 (Thread 0x7f0c9853d9a0 (LWP 21154))]
#0  0x0000000000636d30 in caml_oldify_local_roots ()
(gdb) bt
#0  0x0000000000636d30 in caml_oldify_local_roots ()
#1  0x0000000000639b35 in caml_empty_minor_heap ()
#2  0x0000000000639c7d in caml_minor_collection ()
#3  0x000000000063ac1c in caml_alloc_small ()
#4  0x00000000006340a5 in unix_select ()
#5  0x0000000000648228 in caml_c_call ()
#6  0x0000000000000003 in ?? ()
#7  0x00000000004b0500 in camlGtkThread__do_jobs_1088 ()
#8  0x00000000004b06a5 in camlGtkThread__thread_main_real_1090 ()
#9  0x00000000005e398b in ml_g_main_pending ()
#10 0x00000000004b06dc in camlGtkThread__thread_main_real_1090 ()
#11 0x00007fff0f5716f0 in ?? ()
#12 0x00000000004b0569 in camlGtkThread__thread_main_real_1090 ()
#13 0x0000000002338b51 in ?? ()
#14 0x0000000000000001 in ?? ()
#15 0x0000000000000001 in ?? ()
#16 0x000000000049d4a2 in camlMain__entry ()
#17 0x00007f0c982adc58 in ?? ()
#18 0x0000000000000001 in ?? ()
#19 0x00000000008aabe8 in camlBitstring__47 ()
#20 0x0000000000499279 in caml_program ()
#21 0x000000000038d528 in ?? ()
#22 0x000000000064827e in caml_start_program ()
#23 0x0000000000000000 in ?? ()

(gdb) thread 2
[Switching to thread 2 (Thread 0x7f0c91bf4700 (LWP 21158))]
#0  0x000000335c4dd2f3 in select () from /lib64/libc.so.6
(gdb) bt
#0  0x000000335c4dd2f3 in select () from /lib64/libc.so.6
#1  0x00000038f4e601f9 in ?? () from /usr/lib64/libguestfs.so.0
#2  0x00000038f4e60469 in ?? () from /usr/lib64/libguestfs.so.0
#3  0x00000038f4e60469 in ?? () from /usr/lib64/libguestfs.so.0
#4  0x00000038f4e60469 in ?? () from /usr/lib64/libguestfs.so.0
#5  0x00000038f4e60469 in ?? () from /usr/lib64/libguestfs.so.0
#6  0x00000038f4e60469 in ?? () from /usr/lib64/libguestfs.so.0
#7  0x00000038f4e60469 in ?? () from /usr/lib64/libguestfs.so.0
#8  0x00000038f4e60469 in ?? () from /usr/lib64/libguestfs.so.0
#9  0x00000038f4e60469 in ?? () from /usr/lib64/libguestfs.so.0
#10 0x00000038f4e60f2a in ?? () from /usr/lib64/libguestfs.so.0
#11 0x00000038f4e3128e in guestfs_du () from /usr/lib64/libguestfs.so.0
#12 0x000000000060afc2 in ocaml_guestfs_du ()
#13 0x0000000000648228 in caml_c_call ()
#14 0x00000000008a36a8 in camlFiletree_type__24 ()
#15 0x000000000050adaa in camlStd__finally_1126 ()
#16 0x00007f0c91bf3aa0 in ?? ()
#17 0x000000000050ad81 in camlStd__finally_1126 ()
#18 0x00000000008a4810 in camlSlave__44 ()
#19 0x00007f0c9828e000 in ?? ()
#20 0x0000000000000001 in ?? ()
#21 0x00000000004aa97c in camlSlave__execute_command_1497 ()
#22 0x00007f0c982aadc0 in ?? ()
#23 0x00000000008a36a8 in camlFiletree_type__24 ()
#24 0x00007f0c9828dfd8 in ?? ()
#25 0x000000000063162b in caml_mutex_unlock ()
#26 0x00000000004b011e in camlGtkThread__with_jobs_1052 ()
#27 0x0000000000000001 in ?? ()
#28 0x00000000004ab1b0 in camlSlave__loop_1496 ()
#29 0x00007f0c91bf3ad0 in ?? ()
#30 0x00000000004ab153 in camlSlave__loop_1496 ()
#31 0x00007f0c9853a718 in ?? ()
#32 0x0000000000000001 in ?? ()
#33 0x00007f0c9853be38 in ?? ()
#34 0x00000000005aaf4e in camlThread__fun_1101 ()
#35 0x00007f0c91bf3af0 in ?? ()
#36 0x00000000005aaeec in camlThread__fun_1101 ()
#37 0x0000000000000001 in ?? ()
#38 0x000000000064827e in caml_start_program ()
#39 0x0000000000000000 in ?? ()

Comment 1 Richard W.M. Jones 2011-07-26 16:59:29 UTC
* libguestfs-1.12.0-4.fc16.x86_64
* guestfs-browser-0.1.6-2.fc15.x86_64
* ocaml-3.12.0-5.fc15.x86_64