[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libguestfs] [PATCH v2] lib: update inspect_list_applications to return all installed RPMs (RHBZ#859885)

valgrind finds a segfault in this patch:

==26325== Invalid read of size 1
==26325==    at 0x4A091C2: __GI_strlen (mc_replace_strmem.c:404)
==26325==    by 0x3577885C35: strdup (strdup.c:41)
==26325==    by 0x4C4280B: guestfs_safe_strdup (guestfs.c:607)
==26325==    by 0x4CB1E18: add_application.constprop.3 (inspect-apps.c:580)
==26325==    by 0x4CB26DB: read_package (inspect-apps.c:276)
==26325==    by 0x4CAB57F: read_db_dump_line (dbdump.c:155)
==26325==    by 0x4CAA80B: process_line_buffer (command.c:691)
==26325==    by 0x4CAA588: loop (command.c:567)
==26325==    by 0x4CAADEF: guestfs___cmd_run (command.c:623)
==26325==    by 0x4CAB694: guestfs___read_db_dump (dbdump.c:80)
==26325==    by 0x4CB2A24: guestfs__inspect_list_applications (inspect-apps.c:320)
==26325==    by 0x403DDD: main (virt-inspector.c:714)
==26325==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26325== Process terminating with default action of signal 11 (SIGSEGV): dumping core


Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]