<?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>2936</bug_id>
          
          <creation_ts>2012-08-12 11:25:17 +0000</creation_ts>
          <short_desc>rpm-native: db3New: Assertion `dbOpts != ((void *)0) &amp;&amp; *dbOpts != &apos;\0&apos;&apos; failed.</short_desc>
          <delta_ts>2012-09-11 06:29:21 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>1.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>1.3 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Saul Wold">sgw</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>david.c.stewart</cc>
    
    <cc>liang.li2</cc>
    
    <cc>mark.hatle</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>song.liu</cc>
    
    <cc>zhenfeng.zhao</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>23943</commentid>
    <comment_count>0</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2012-08-12 11:25:17 +0000</bug_when>
    <thetext>This failure has appeared a number of times in conjuntion with rpmreslove-native in the 1.3_m3 builds, it&apos;s critical that we address this issue.


| ERROR: Function failed: do_rootfs (see /srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-non-gpl3/build/build/tmp/work/qemux86-poky-linux/core-image-basic-1.0-r0/temp/log.do_rootfs.512 for further information)
NOTE: package core-image-basic-1.0-r0: task do_rootfs: Failed
ERROR: Task 22 (/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-non-gpl3/build/meta/recipes-extended/images/core-image-basic.bb, do_rootfs) failed with exit code &apos;1&apos;
ERROR: Function failed: do_rootfs (see /srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-non-gpl3/build/build/tmp/work/qemux86-poky-linux/core-image-minimal-1.0-r0/temp/log.do_rootfs.515 for further information)
ERROR: Logfile of failure stored in: /srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-non-gpl3/build/build/tmp/work/qemux86-poky-linux/core-image-minimal-1.0-r0/temp/log.do_rootfs.515
Log data follows:
| DEBUG: Executing shell function do_rootfs
| Generating solve db for /srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-non-gpl3/build/build/tmp/deploy/rpm/qemux86...
| Generating solve db for /srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-non-gpl3/build/build/tmp/deploy/rpm/i586...
| Generating solve db for /srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-non-gpl3/build/build/tmp/deploy/rpm/all...
| Generating solve db for /srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-non-gpl3/build/build/tmp/deploy/rpm/all...
| Processing task-core-boot...
| rpmresolve: dbconfig.c:493: db3New: Assertion `dbOpts != ((void *)0) &amp;&amp; *dbOpts != &apos;\0&apos;&apos; failed.
| /srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-non-gpl3/build/build/tmp/work/qemux86-poky-linux/core-image-minimal-1.0-r0/temp/run.do_rootfs.515: line 946:   623 Aborted                 rpmresolve $extraopt ${confbase}-base_archs.conf ${target_rootfs}/install/base_archs.pkglist &gt;&gt; ${target_rootfs}/install/${manifestpfx}.manifest
| ERROR: Function failed: do_rootfs (see /srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-non-gpl3/build/build/tmp/work/qemux86-poky-linux/core-image-minimal-1.0-r0/temp/log.do_rootfs.515 for further information)

db3New: Assertion `dbOpts != ((void *)0) &amp;&amp; *dbOpts != &apos;\0&apos;&apos; failed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23948</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2012-08-13 03:04:49 +0000</bug_when>
    <thetext>I&apos;m trying to reproduce it, I will do more investigation on the code if can&apos;t reproduce it. It would be great if you can tell me which host did this problem find.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23949</commentid>
    <comment_count>2</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2012-08-13 04:06:40 +0000</bug_when>
    <thetext>It occurred on a Debian machine and an OpenSuse machine.

Details:
swold@autobuilder06:~$ lsb-release -a
LSB Version:	n/a
Distributor ID:	SUSE LINUX
Description:	openSUSE 11.4 (x86_64)
Release:	11.4
Codename:	Celadon
swold@autobuilder06:~$ uname -a
Linux autobuilder06 2.6.37.6-0.20-default #1 SMP 2011-12-19 23:39:38 +0100 x86_64 x86_64 x86_64 GNU/Linux


swold@ab02:~$ lsb_release -a ; uname -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 6.0.5 (squeeze)
Release:	6.0.5
Codename:	squeeze
Linux ab02.i.yoctoproject.org 2.6.32-5-amd64 #1 SMP Sun May 6 04:00:17 UTC 2012 x86_64 GNU/Linux</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23951</commentid>
    <comment_count>3</comment_count>
      <attachid>686</attachid>
    <who name="Saul Wold">sgw</who>
    <bug_when>2012-08-13 08:29:42 +0000</bug_when>
    <thetext>Created attachment 686
log.do_rootfs from nightly-mips LSB Build</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23972</commentid>
    <comment_count>4</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2012-08-13 16:10:48 +0000</bug_when>
    <thetext>Some possible hints here in a reply on the rpm-devel list:

http://marc.info/?l=rpm-devel&amp;m=134487316427630&amp;w=2

One possible way for us to get further info would be to wrap the call to rpmresolve with strace (using -o to put the output somewhere sensible) so we could see if it failed to open the macros file. This would mean we would need strace available to us on the autobuilders of course.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23973</commentid>
    <comment_count>5</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2012-08-13 16:34:57 +0000</bug_when>
    <thetext>I&apos;ve now been able to reproduce this externally on ab06 - it is a shared state relocation issue. rpm has the path to find the macro files baked into it. I&apos;m working on a fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24003</commentid>
    <comment_count>6</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-08-14 06:25:40 +0000</bug_when>
    <thetext>I noticed the problem reoccured in the build last night. I think the fix was correct but we don&apos;t call the necessary rpm init functions within rpmresolve. I suspect we either need to call:

    setRuntimeRelocPaths();

which is not exported or something like:

    rpmcliInit(argc, argv, NULL);

so ensure the macros get set from the environment and don&apos;t just take their default values.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24057</commentid>
    <comment_count>7</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2012-08-15 09:52:39 +0000</bug_when>
    <thetext>Fixed by the following revisions in poky master:

61addcc8536caef8cd8a2bf7ed3c6c34ce6a7f83
8b8748c8f963900b83dc0fdd7757556f917fe4fd</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25020</commentid>
    <comment_count>8</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2012-09-11 06:29:21 +0000</bug_when>
    <thetext>discribed in Comment 11 and Comment 12 of bug 2753,verified.
git info: af847d36375aa53f0c1ee2a00c97ba9f38837d1b  
git branch: poky/master</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>686</attachid>
            <date>2012-08-13 08:29:42 +0000</date>
            <delta_ts>2012-08-13 08:29:42 +0000</delta_ts>
            <desc>log.do_rootfs from nightly-mips LSB Build</desc>
            <filename>log.do_rootfs</filename>
            <type>application/octet-stream</type>
            <size>1247</size>
            <attacher name="Saul Wold">sgw</attacher>
            
              <data encoding="base64">REVCVUc6IEV4ZWN1dGluZyBzaGVsbCBmdW5jdGlvbiBkb19yb290ZnMKR2VuZXJhdGluZyBzb2x2
ZSBkYiBmb3IgL3Nydi9ob21lL3Bva3lidWlsZC95b2N0by1hdXRvYnVpbGRlci95b2N0by1zbGF2
ZS9uaWdodGx5LW1pcHMvYnVpbGQvYnVpbGQvdG1wL2RlcGxveS9ycG0vcWVtdW1pcHMuLi4KR2Vu
ZXJhdGluZyBzb2x2ZSBkYiBmb3IgL3Nydi9ob21lL3Bva3lidWlsZC95b2N0by1hdXRvYnVpbGRl
ci95b2N0by1zbGF2ZS9uaWdodGx5LW1pcHMvYnVpbGQvYnVpbGQvdG1wL2RlcGxveS9ycG0vbWlw
czMyLi4uCkdlbmVyYXRpbmcgc29sdmUgZGIgZm9yIC9zcnYvaG9tZS9wb2t5YnVpbGQveW9jdG8t
YXV0b2J1aWxkZXIveW9jdG8tc2xhdmUvbmlnaHRseS1taXBzL2J1aWxkL2J1aWxkL3RtcC9kZXBs
b3kvcnBtL2FsbC4uLgpHZW5lcmF0aW5nIHNvbHZlIGRiIGZvciAvc3J2L2hvbWUvcG9reWJ1aWxk
L3lvY3RvLWF1dG9idWlsZGVyL3lvY3RvLXNsYXZlL25pZ2h0bHktbWlwcy9idWlsZC9idWlsZC90
bXAvZGVwbG95L3JwbS9hbGwuLi4KUHJvY2Vzc2luZyBsb2NhbGUtYmFzZS1lbi11cy4uLgpQc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