<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>865</bug_id>
          
          <creation_ts>2011-03-14 01:59:35 +0000</creation_ts>
          <short_desc>[OprofileUI] oprofile-viewer crashed if oparchconv in oprofileui is not installed</short_desc>
          <delta_ts>2011-04-18 09:12:35 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>ADT</product>
          <component>kernel analysis</component>
          <version>1.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.0 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lianhao Lu">lianhao.lu</reporter>
          <assigned_to name="Lianhao Lu">lianhao.lu</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>josh</cc>
    
    <cc>yp.sdk.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>12558</commentid>
    <comment_count>0</comment_count>
    <who name="Lianhao Lu">lianhao.lu</who>
    <bug_when>2011-03-14 01:59:35 +0000</bug_when>
    <thetext>The oprofile-viewer needs oparchconv to convert the sample archive. If oparchconv is not installed(by running make install in oprofileui), it crashed with the following output:

Failed to execute child process &quot;oparchconv&quot; (No such file or directory)
*** glibc detected *** src/oprofile-viewer: free(): invalid pointer: 0x0000000002113e80 ***
======= Backtrace: =========
/lib/libc.so.6(+0x775b6)[0x7f559ff765b6]
/lib/libc.so.6(cfree+0x73)[0x7f559ff7ce83]
src/oprofile-viewer[0x40d14f]
src/oprofile-viewer[0x40d34d]
src/oprofile-viewer[0x4061d7]
src/oprofile-viewer[0x4094b9]
src/oprofile-viewer[0x409514]
src/oprofile-viewer[0x409826]
src/oprofile-viewer[0x4081be]
src/oprofile-viewer[0x4087bf]
/lib/libglib-2.0.so.0(g_main_context_dispatch+0x1f2)[0x7f55a04dd8c2]
/lib/libglib-2.0.so.0(+0x42748)[0x7f55a04e1748]
/lib/libglib-2.0.so.0(g_main_loop_run+0x195)[0x7f55a04e1c55]
/usr/lib/libgtk-x11-2.0.so.0(gtk_main+0xa7)[0x7f55a32e9bb7]
src/oprofile-viewer[0x407e43]
/lib/libc.so.6(__libc_start_main+0xfd)[0x7f559ff1dc4d]
src/oprofile-viewer[0x405e69]
======= Memory map: ========
00400000-00417000 r-xp 00000000 08:05 1704105                            /home/lulianhao/working/oprofileui/src/oprofile-viewer
00616000-00617000 r--p 00016000 08:05 1704105                            /home/lulianhao/working/oprofileui/src/oprofile-viewer
00617000-00618000 rw-p 00017000 08:05 1704105                            /home/lulianhao/working/oprofileui/src/oprofile-viewer
01f28000-02a5c000 rw-p 00000000 00:00 0                                  [heap]
7f558c000000-7f558c021000 rw-p 00000000 00:00 0 
7f558c021000-7f5590000000 ---p 00000000 00:00 0 
7f5590965000-7f559097b000 r-xp 00000000 08:07 4980815                    /lib/libgcc_s.so.1
7f559097b000-7f5590b7a000 ---p 00016000 08:07 4980815                    /lib/libgcc_s.so.1
7f5590b7a000-7f5590b7b000 r--p 00015000 08:07 4980815                    /lib/libgcc_s.so.1
7f5590b7b000-7f5590b7c000 rw-p 00016000 08:07 4980815                    /lib/libgcc_s.so.1
7f5590b8c000-7f5590b8d000 rw-p 00000000 00:00 0 
7f5590b8d000-7f5590c0d000 r--p 00000000 08:07 7997765                    /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Oblique.ttf
7f5590c0d000-7f5590c99000 r--p 00000000 08:07 8027814                    /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf
7f5590c99000-7f5590c9a000 ---p 00000000 00:00 0 
7f5590c9a000-7f559149a000 rw-p 00000000 00:00 0 
7f559149a000-7f559549b000 rw-s 00000000 00:10 15932298                   /dev/shm/pulse-shm-3056919471
7f559549b000-7f559565e000 r-xp 00000000 08:07 7868178                    /usr/lib/libvorbisenc.so.2.0.6
7f559565e000-7f559585e000 ---p 001c3000 08:07 7868178                    /usr/lib/libvorbisenc.so.2.0.6
7f559585e000-7f5595875000 r--p 001c3000 08:07 7868178                    /usr/lib/libvorbisenc.so.2.0.6
7f5595875000-7f5595876000 rw-p 001da000 08:07 7868178                    /usr/lib/libvorbisenc.so.2.0.6
7f5595876000-7f55958bf000 r-xp 00000000 08:07 7867155                    /usr/lib/libFLAC.so.8.2.0
7f55958bf000-7f5595abf000 ---p 00049000 08:07 7867155                    /usr/lib/libFLAC.so.8.2.0
7f5595abf000-7f5595ac0000 r--p 00049000 08:07 7867155                    /usr/lib/libFLAC.so.8.2.0
7f5595ac0000-7f5595ac1000 rw-p 0004a000 08:07 7867155                    /usr/lib/libFLAC.so.8.2.0
7f5595ac1000-7f5595b1f000 r-xp 00000000 08:07 7868087                    /usr/lib/libsndfile.so.1.0.21
7f5595b1f000-7f5595d1f000 ---p 0005e000 08:07 7868087                    /usr/lib/libsndfile.so.1.0.21
7f5595d1f000-7f5595d21000 r--p 0005e000 08:07 7868087                    /usr/lib/libsndfile.so.1.0.21
7f5595d21000-7f5595d22000 rw-p 00060000 08:07 7868087                    /usr/lib/libsndfile.so.1.0.21
7f5595d22000-7f5595d26000 rw-p 00000000 00:00 0 
7f5595d26000-7f5595d2f000 r-xp 00000000 08:07 4980925                    /lib/libwrap.so.0.7.6
7f5595d2f000-7f5595f2e000 ---p 00009000 08:07 4980925                    /lib/libwrap.so.0.7.6
7f5595f2e000-7f5595f2f000 r--p 00008000 08:07 4980925                    /lib/libwrap.so.0.7.6
7f5595f2f000-7f5595f30000 rw-p 00009000 08:07 4980925                    /lib/libwrap.so.0.7.6
7f5595f30000-7f5595f31000 rw-p 00000000 00:00 0 
7f5595f31000-7f5595f35000 r-xp 00000000 08:07 4980866                    /lib/libuuid.so.1.3.0
7f5595f35000-7f5596134000 ---p 00004000 08:07 4980866                    /lib/libuuid.so.1.3.0
7f5596134000-7f5596135000 r--p 00003000 08:07 4980866                    /lib/libuuid.so.1.3.0
7f5596135000-7f5596136000 rw-p 00004000 08:07 4980866                    /lib/libuuid.so.1.3.0
7f5596136000-7f5596181000 r-xp 00000000 08:07 7868028                    /usr/lib/libpulsecommon-0.9.21.so
7f5596181000-7f5596380000 ---p 0004b000 08:07 7868028                    /usr/lib/libpulsecommon-0.9.21.so
7f5596380000-7f5596381000 r--p 0004a000 08:07 7868028                    /usr/lib/libpulsecommon-0.9.21.so
7f5596381000-7f5596382000 rw-p 0004b000 08:07 7868028                    /usr/lib/libpulsecommon-0.9.21.so
7f5596382000-7f5596387000 r-xp 00000000 08:07 7867246                    /usr/lib/libXtst.so.6.1.0
7f5596387000-7f5596587000 ---p 00005000 08:07 7867246                    /usr/lib/libXtst.so.6.1.0
7f5596587000-7f5596588000 r--p 00005000 08:07 7867246                    /usr/lib/libXtst.so.6.1.0
7f5596588000-7f5596589000 rw-p 00006000 08:07 7867246                    /usr/lib/libXtst.so.6.1.0
7f5596589000-7f5596591000 r-xp 00000000 08:07 7867199                    /usr/lib/libSM.so.6.0.1
7f5596591000-7f5596790000 ---p 00008000 08:07 7867199                    /usr/lib/libSM.so.6.0.1
7f5596790000-7f5596791000 r--p 00007000 08:07 7867199                    /usr/lib/libSM.so.6.0.1
7f5596791000-7f5596792000 rw-p 00008000 08:07 7867199                    /usr/lib/libSM.so.6.0.1
7f5596792000-7f55967a9000 r-xp 00000000 08:07 7867170                    /usr/lib/libICE.so.6.3.0
7f55967a9000-7f55969a8000 ---p 00017000 08:07 7867170                    /usr/lib/libICE.so.6.3.0
7f55969a8000-7f55969a9000 r--p 00016000 08:07 7867170                    /usr/lib/libICE.so.6.3.0
7f55969a9000-7f55969aa000 rw-p 00017000 08:07 7867170                    /usr/lib/libICE.so.6.3.0
7f55969aa000-7f55969ad000 rw-p 00000000 00:00 0 
7f55969ad000-7f55969ed000 r-xp 00000000 08:07 7868027                    /usr/lib/libpulse.so.0.12.2
7f55969ed000-7f5596bed000 ---p 00040000 08:07 7868027                    /usr/lib/libpulse.so.0.12.2
7f5596bed000-7f5596bee000 r--p 00040000 08:07 7868027                    /usr/lib/libpulse.so.0.12.2Aborted

This indicates a buffer error in oprofile-viewer.

Ways to reproduce this bug:
1. launch a qemu with image poky-image-sato-sdk-qemux86-64
2. compile the oprofileui, but not &quot;make install&quot;
3. run the compiled oprofile-viewer
4. click &quot;connect&quot;-&gt;&quot;start&quot;-&gt;&quot;stop&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12559</commentid>
    <comment_count>1</comment_count>
      <attachid>110</attachid>
    <who name="Lianhao Lu">lianhao.lu</who>
    <bug_when>2011-03-14 03:01:48 +0000</bug_when>
    <thetext>Created attachment 110
oprofileui-Correctly-free-GError-struct.patch

This is the patch to fix the bug</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12560</commentid>
    <comment_count>2</comment_count>
    <who name="Lianhao Lu">lianhao.lu</who>
    <bug_when>2011-03-14 03:03:20 +0000</bug_when>
    <thetext>Hi Josh,

Since I don&apos;t have the commit access, would you please review my patch and help me commit it into git? Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12562</commentid>
    <comment_count>3</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2011-03-14 05:16:24 +0000</bug_when>
    <thetext>Pushed to oprofileui master: http://git.yoctoproject.org/cgit/cgit.cgi/oprofileui/commit/?id=2387488fb520725ca9cff888bc1ed25788276b13</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>110</attachid>
            <date>2011-03-14 03:01:48 +0000</date>
            <delta_ts>2011-03-14 03:01:48 +0000</delta_ts>
            <desc>oprofileui-Correctly-free-GError-struct.patch</desc>
            <filename>0001-oprofileui-Correctly-free-GError-struct.patch</filename>
            <type>text/plain</type>
            <size>880</size>
            <attacher name="Lianhao Lu">lianhao.lu</attacher>
            
              <data encoding="base64">RnJvbSBjNzY1YWY5N2Q3ZDdmZjA2YmRmNmZhNjExYmI2OWM2MjkwZTU1ZWNiIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBMaWFuaGFvIEx1IDxsaWFuaGFvLmx1QGludGVsLmNvbT4KRGF0
ZTogTW9uLCAxNCBNYXIgMjAxMSAxNzo1NTozMSArMDgwMApTdWJqZWN0OiBbUEFUQ0hdIG9wcm9m
aWxldWk6IENvcnJlY3RseSBmcmVlIEdFcnJvciBzdHJ1Y3QuCgpbWU9DVE8gIzg2NV0KR0Vycm9y
IHNob3VsZCBmcmVlZCBieSBnX2NsZWFyX2Vycm9yIGluc3RlYWQgb2YgZ19mcmVlLgoKU2lnbmVk
LW9mZi1ieTogTGlhbmhhbyBMdSA8bGlhbmhhby5sdUBpbnRlbC5jb20+Ci0tLQogc3JjL3JlcG9y
dC5jIHwgICAgNCArKy0tCiAxIGZpbGVzIGNoYW5nZWQsIDIgaW5zZXJ0aW9ucygrKSwgMiBkZWxl
dGlvbnMoLSkKCmRpZmYgLS1naXQgYS9zcmMvcmVwb3J0LmMgYi9zcmMvcmVwb3J0LmMKaW5kZXgg
M2Y0MGJhOC4uMzY3MDljMSAxMDA2NDQKLS0tIGEvc3JjL3JlcG9ydC5jCisrKyBiL3NyYy9yZXBv
cnQuYwpAQCAtMTc3LDcgKzE3Nyw3IEBAIHJlcG9ydF9jb252ZXJ0X2FyY2hpdmUgKGdjaGFyICph
cmNoaXZlX3BhdGgpCiAKICAgZ19mcmVlIChzdGRvdXQpOwogICBnX2ZyZWUgKHN0ZGVycik7Ci0g
IGdfZnJlZSAoZXJyKTsKKyAgZ19jbGVhcl9lcnJvciAoJmVycik7CiB9CiAKIHN0YXRpYyBSZXBv
cnQgKgpAQCAtMjM0LDcgKzIzNCw3IEBAIHJlcG9ydF9nZW5lcmF0ZV9mcm9tX2FyY2hpdmUgKGdj
aGFyICphcmNoaXZlX3BhdGgpCiAKICAgZ19mcmVlIChzdGRvdXQpOwogICBnX2ZyZWUgKHN0ZGVy
cik7Ci0gIGdfZnJlZSAoZXJyKTsKKyAgZ19jbGVhcl9lcnJvciAoJmVycik7CiAKICAgcmV0dXJu
IHJlcG9ydDsKIH0KLS0gCjEuNy4wLjQKCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>