RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 967791 - Error in `/usr/libexec/virt-sandbox-service-util': free(): invalid pointer: 0x000000000248f3f6
Summary: Error in `/usr/libexec/virt-sandbox-service-util': free(): invalid pointer: 0...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libvirt-sandbox
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: rc
: ---
Assignee: Daniel Berrangé
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-28 10:53 UTC by dyuan
Modified: 2019-02-14 02:22 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-10 05:15:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description dyuan 2013-05-28 10:53:58 UTC
Description of problem:
Execute 'touch' command failed for container.

Version-Release number of selected component (if applicable):
libvirt-sandbox-0.2.0-1.el7

How reproducible:
always

Steps to Reproduce:
# /usr/libexec/virt-sandbox-service-util -e 'touch /home/test' -p 18512 apache20 > log.log
Failed to execute touch /home/test: No such file or directory
*** Error in `/usr/libexec/virt-sandbox-service-util': free(): invalid pointer: 0x000000000248f3f6 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x7cef8)[0x7fd2e57f8ef8]
/usr/libexec/virt-sandbox-service-util[0x40213a]
/lib64/libc.so.6(__libc_start_main+0xf5)[0x7fd2e579db75]
/usr/libexec/virt-sandbox-service-util[0x4025c1]
======= Memory map: ========
00400000-00404000 r-xp 00000000 08:02 1052657                            /usr/libexec/virt-sandbox-service-util
00603000-00604000 r--p 00003000 08:02 1052657                            /usr/libexec/virt-sandbox-service-util
00604000-00605000 rw-p 00004000 08:02 1052657                            /usr/libexec/virt-sandbox-service-util
02462000-028c6000 rw-p 00000000 00:00 0                                  [heap]
7fd2d74e7000-7fd2d74f3000 r-xp 00000000 08:02 1060496                    /usr/lib64/libnss_files-2.17.so
7fd2d74f3000-7fd2d76f2000 ---p 0000c000 08:02 1060496                    /usr/lib64/libnss_files-2.17.so
7fd2d76f2000-7fd2d76f3000 r--p 0000b000 08:02 1060496                    /usr/lib64/libnss_files-2.17.so
7fd2d76f3000-7fd2d76f4000 rw-p 0000c000 08:02 1060496                    /usr/lib64/libnss_files-2.17.so
7fd2d76f4000-7fd2d7706000 r-xp 00000000 08:02 1183061                    /usr/lib64/pkcs11/gnome-keyring-pkcs11.so
7fd2d7706000-7fd2d7905000 ---p 00012000 08:02 1183061                    /usr/lib64/pkcs11/gnome-keyring-pkcs11.so
7fd2d7905000-7fd2d7907000 r--p 00011000 08:02 1183061                    /usr/lib64/pkcs11/gnome-keyring-pkcs11.so
7fd2d7907000-7fd2d7908000 rw-p 00013000 08:02 1183061                    /usr/lib64/pkcs11/gnome-keyring-pkcs11.so
7fd2d7908000-7fd2dde2d000 r--p 00000000 08:02 1061786                    /usr/lib/locale/locale-archive
7fd2dde2d000-7fd2ddfc8000 r-xp 00000000 08:02 1051271                    /usr/lib64/libcrypto.so.1.0.1c
7fd2ddfc8000-7fd2de1c7000 ---p 0019b000 08:02 1051271                    /usr/lib64/libcrypto.so.1.0.1c
7fd2de1c7000-7fd2de1e1000 r--p 0019a000 08:02 1051271                    /usr/lib64/libcrypto.so.1.0.1c
7fd2de1e1000-7fd2de1ec000 rw-p 001b4000 08:02 1051271                    /usr/lib64/libcrypto.so.1.0.1c
7fd2de1ec000-7fd2de1f1000 rw-p 00000000 00:00 0 
7fd2de1f1000-7fd2de24c000 r-xp 00000000 08:02 1051273                    /usr/lib64/libssl.so.1.0.1c
7fd2de24c000-7fd2de44b000 ---p 0005b000 08:02 1051273                    /usr/lib64/libssl.so.1.0.1c
7fd2de44b000-7fd2de44f000 r--p 0005a000 08:02 1051273                    /usr/lib64/libssl.so.1.0.1c
7fd2de44f000-7fd2de455000 rw-p 0005e000 08:02 1051273                    /usr/lib64/libssl.so.1.0.1c
7fd2de455000-7fd2de458000 r-xp 00000000 08:02 1050083                    /usr/lib64/libkeyutils.so.1.4
7fd2de458000-7fd2de657000 ---p 00003000 08:02 1050083                    /usr/lib64/libkeyutils.so.1.4
7fd2de657000-7fd2de658000 r--p 00002000 08:02 1050083                    /usr/lib64/libkeyutils.so.1.4
7fd2de658000-7fd2de659000 rw-p 00003000 08:02 1050083                    /usr/lib64/libkeyutils.so.1.4
7fd2de659000-7fd2de666000 r-xp 00000000 08:02 1050099                    /usr/lib64/libkrb5support.so.0.1
7fd2de666000-7fd2de865000 ---p 0000d000 08:02 1050099                    /usr/lib64/libkrb5support.so.0.1
7fd2de865000-7fd2de866000 r--p 0000c000 08:02 1050099                    /usr/lib64/libkrb5support.so.0.1
7fd2de866000-7fd2de867000 rw-p 0000d000 08:02 1050099                    /usr/lib64/libkrb5support.so.0.1
7fd2de867000-7fd2de8ca000 r-xp 00000000 08:02 1049399                    /usr/lib64/libfreebl3.so
7fd2de8ca000-7fd2deaca000 ---p 00063000 08:02 1049399                    /usr/lib64/libfreebl3.so
7fd2deaca000-7fd2deacb000 r--p 00063000 08:02 1049399                    /usr/lib64/libfreebl3.so
7fd2deacb000-7fd2deacc000 rw-p 00064000 08:02 1049399                    /usr/lib64/libfreebl3.so
7fd2deacc000-7fd2dead0000 rw-p 00000000 00:00 0 
7fd2dead0000-7fd2deae5000 r-xp 00000000 08:02 1048584                    /usr/lib64/libgcc_s-4.7.2-20121109.so.1
7fd2deae5000-7fd2dece4000 ---p 00015000 08:02 1048584                    /usr/lib64/libgcc_s-4.7.2-20121109.so.1
7fd2dece4000-7fd2dece5000 r--p 00014000 08:02 1048584                    /usr/lib64/libgcc_s-4.7.2-20121109.so.1
7fd2dece5000-7fd2dece6000 rw-p 00015000 08:02 1048584                    /usr/lib64/libgcc_s-4.7.2-20121109.so.1
7fd2dece6000-7fd2ded0d000 r-xp 00000000 08:02 1052167                    /usr/lib64/libssh2.so.1.0.1
7fd2ded0d000-7fd2def0d000 ---p 00027000 08:02 1052167                    /usr/lib64/libssh2.so.1.0.1
7fd2def0d000-7fd2def0e000 r--p 00027000 08:02 1052167                    /usr/lib64/libssh2.so.1.0.1
7fd2def0e000-7fd2def0f000 rw-p 00028000 08:02 1052167                    /usr/lib64/libssh2.so.1.0.1
7fd2def0f000-7fd2def48000 r-xp 00000000 08:02 1049705                    /usr/lib64/libnspr4.so
7fd2def48000-7fd2df147000 ---p 00039000 08:02 1049705                    /usr/lib64/libnspr4.so
7fd2df147000-7fd2df148000 r--p 00038000 08:02 1049705                    /usr/lib64/libnspr4.so
7fd2df148000-7fd2df14a000 rw-p 00039000 08:02 1049705                    /usr/lib64/libnspr4.so
7fd2df14a000-7fd2df14c000 rw-p 00000000 00:00 0 
7fd2df14c000-7fd2df150000 r-xp 00000000 08:02 1049706                    /usr/lib64/libplc4.so
7fd2df150000-7fd2df34f000 ---p 00004000 08:02 1049706                    /usr/lib64/libplc4.so
7fd2df34f000-7fd2df350000 r--p 00003000 08:02 1049706                    /usr/lib64/libplc4.so
7fd2df350000-7fd2df351000 rw-p 00004000 08:02 1049706                    /usr/lib64/libplc4.so
7fd2df351000-7fd2df354000 r-xp 00000000 08:02 1049707                    /usr/lib64/libplds4.so
7fd2df354000-7fd2df553000 ---p 00003000 08:02 1049707                    /usr/lib64/libplds4.so
7fd2df553000-7fd2df554000 r--p 00002000 08:02 1049707                    /usr/lib64/libplds4.so
7fd2df554000-7fd2df555000 rw-p 00003000 08:02 1049707                    /usr/lib64/libplds4.so
7fd2df555000-7fd2df579000 r-xp 00000000 08:02 1049716                    /usr/lib64/libnssutil3.so
7fd2df579000-7fd2df779000 ---p 00024000 08:02 1049716                    /usr/lib64/libnssutil3.so
7fd2df779000-7fd2df77f000 r--p 00024000 08:02 1049716                    /usr/lib64/libnssutil3.so
7fd2df77f000-7fd2df780000 rw-p 0002a000 08:02 1049716                    /usr/lib64/libnssutil3.so
7fd2df780000-7fd2df8b1000 r-xp 00000000 08:02 1050872                    /usr/lib64/libnss3.soAborted


Actual results:


Expected results:


Additional info:

Comment 2 Daniel Berrangé 2013-07-09 10:02:28 UTC
(In reply to dyuan from comment #0)
> Description of problem:
> Execute 'touch' command failed for container.
> 
> Version-Release number of selected component (if applicable):
> libvirt-sandbox-0.2.0-1.el7
> 
> How reproducible:
> always
> 
> Steps to Reproduce:
> # /usr/libexec/virt-sandbox-service-util -e 'touch /home/test' -p 18512
> apache20 > log.log
> Failed to execute touch /home/test: No such file or directory
> *** Error in `/usr/libexec/virt-sandbox-service-util': free(): invalid
> pointer: 0x000000000248f3f6 ***

You should *never* run  /usr/libexec/virt-sandbox-service-util directly. The virt-sandbox-service command is the only one that should be tested. It will internally run virt-sandbox-service-util *if* required.

The current virt-sandbox-service does not use  /usr/libexec/virt-sandbox-service-util for executing commands anymore, so you were testing dead code here. Please re-test using  'virt-sandbox-service execute.....' instead.

Comment 3 dyuan 2013-07-10 05:15:29 UTC
Okay, thanks. Will not test it anymore, and remove it from the test plan.

And it's okay for virt-sandbox-service. So I'll close this bug as WONTFIX.

libvirt-1.1.0-1.el7
libvirt-sandbox-0.2.0-1.el7
selinux-policy-3.12.1-59.el7
libvirt-glib-0.1.6-1.el7

# virt-sandbox-service execute apache20 touch /home/test

# echo $?
0
# ls
test
# pwd
/var/lib/libvirt/filesystems/apache20/home


Note You need to log in before you can comment on or make changes to this bug.