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

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>261509</bug_id>
          
          <creation_ts>2010-12-29 03:27:45 +0000</creation_ts>
          <short_desc>meinproc4: crash with segfault on Mac OS X</short_desc>
          <delta_ts>2017-04-07 11:56:03 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>5</classification_id>
          <classification>Websites</classification>
          <product>docs.kde.org</product>
          <component>ksgmltools</component>
          <version>4.12.3</version>
          <rep_platform>Compiled Sources</rep_platform>
          <op_sys>macOS</op_sys>
          <bug_status>CONFIRMED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jeremy Lavergne">snc</reporter>
          <assigned_to name="Documentation Editorial Team">kde-doc-english</assigned_to>
          <cc>foolishewe</cc>
    
    <cc>iandw.au</cc>
    
    <cc>kde</cc>
    
    <cc>lueck</cc>
    
    <cc>luigi.toscano</cc>
    
    <cc>mk-lists</cc>
    
    <cc>nicos</cc>
    
    <cc>rjvbertin</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1065157</commentid>
    <comment_count>0</comment_count>
    <who name="Jeremy Lavergne">snc</who>
    <bug_when>2010-12-29 03:27:45 +0000</bug_when>
    <thetext>Version:           unspecified (using KDE 4.5.90) 
OS:                OS X

Build phases on segfault

[100%] Generating index.cache.bz2
cd /opt/local/var/macports/build/_Users_aeetes_kde_kdepim4/work/kdepim-4.6beta3/doc/akregator &amp;&amp; /opt/local/bin/meinproc4 --check --cache /opt/local/var/macports/build/_Users_aeetes_kde_kdepim4/work/build/doc/akregator/index.cache.bz2 /opt/local/var/macports/build/_Users_aeetes_kde_kdepim4/work/kdepim-4.6beta3/doc/akregator/index.docbook
/bin/sh: line 1: 85478 Segmentation fault      /opt/local/bin/meinproc4 --check --cache /opt/local/var/macports/build/_Users_aeetes_kde_kdepim4/work/build/doc/akregator/index.cache.bz2 /opt/local/var/macports/build/_Users_aeetes_kde_kdepim4/work/kdepim-4.6beta3/doc/akregator/index.docbook
make[2]: *** [doc/akregator/index.cache.bz2] Error 139


Reproducible: Always

Steps to Reproduce:
Build in MacPorts

Actual Results:  
Build segfaults

Expected Results:  
Successful build.

This is kdepim4 @4.5.93/4.6beta3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1346335</commentid>
    <comment_count>1</comment_count>
    <who name="Jekyll Wu">adaptee</who>
    <bug_when>2013-03-01 00:44:42 +0000</bug_when>
    <thetext>Is that still a problem in recent versions ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1348859</commentid>
    <comment_count>2</comment_count>
    <who name="Marko Käning">mk-lists</who>
    <bug_when>2013-03-07 21:55:08 +0000</bug_when>
    <thetext>I&apos;ll check this on a recent version.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1387823</commentid>
    <comment_count>3</comment_count>
    <who name="Marko Käning">mk-lists</who>
    <bug_when>2013-08-03 18:15:41 +0000</bug_when>
    <thetext>Just tested this with kdepim 4.10.3 and it installed for a change... But I guess it only succeeded since the doc subdir in CMakeFiles.txt was deliberately commented out:
---
--- CMakeLists.txt.orig 2013-03-01 15:57:28.000000000 +0900
+++ CMakeLists.txt  2013-03-09 20:05:57.000000000 +0900
@@ -389,7 +389,7 @@
 endif()

 # doc must be a subdir of kdepim or packagers will kill us
-macro_optional_add_subdirectory(doc)
+#macro_optional_add_subdirectory(doc)


 # We really want to encourage users to enable/install QGpgME from kdepimlibs
---

THIS ALL is actually not a problem of kdepim, but rather of meinproc4 which (already since years) CRASHES FAR TOO OFTEN on MacOSX when trying to build various KDE applications (see e.g. [1,2])!!!

:-(

I wonder what I can do to track this down, since it seems to be unforeseeable which file will be the one meinproc4 will crash on...


[1] https://trac.macports.org/ticket/30162
[2] https://trac.macports.org/ticket/37620</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1418292</commentid>
    <comment_count>4</comment_count>
    <who name="Nicolas Pavillon">nicos</who>
    <bug_when>2013-12-13 13:23:04 +0000</bug_when>
    <thetext>This issue still repeatedly (but apparently rather randomly) occurs with meinproc4 crashing with a segfault. For example in [1], after we tried to reinstate the installation of documentation in kdelibs, or in [2], where poxml uses meinproc4 in checkXML during the test phase. 

[1] https://trac.macports.org/ticket/41326
[2] https://trac.macports.org/ticket/41576

Considering the issue, I would suggest to rename the bug title to something more accurate, such as for example &quot;meinproc4: crash with segfault on Mac OS X&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1418343</commentid>
    <comment_count>5</comment_count>
    <who name="">kde</who>
    <bug_when>2013-12-13 18:43:06 +0000</bug_when>
    <thetext>Since nobody has provided a crash log yet, here&apos;s one:

https://trac.macports.org/attachment/ticket/41576/meinproc4_2013-12-11-183146_mindgroup-lm.crash

Here&apos;s what it says:

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   com.apple.CoreFoundation            0x00007fff8a32ae4f CFStringGetLength + 15
1   libkdecore.5.dylib                  0x0000000100e49011 convert_CFString_to_QString(__CFString const*) + 49
2   libkdecore.5.dylib                  0x0000000100e4a4da KLocaleMacPrivate::systemCountry() const + 42
3   libkdecore.5.dylib                  0x0000000100dfa7dc KLocalePrivate::initCountry(QString const&amp;, QString const&amp;) + 268
4   libkdecore.5.dylib                  0x0000000100df97ff KLocalePrivate::init(QString const&amp;, QString const&amp;, QString const&amp;, KSharedPtr&lt;KSharedConfig&gt;, KConfig*) + 719
5   libkdecore.5.dylib                  0x0000000100e4a1e0 KLocaleMacPrivate::KLocaleMacPrivate(KLocale*, QString const&amp;, KSharedPtr&lt;KSharedConfig&gt;) + 128
6   libkdecore.5.dylib                  0x0000000100df63f6 KLocale::KLocale(QString const&amp;, KSharedPtr&lt;KSharedConfig&gt;) + 86
7   libkdecore.5.dylib                  0x0000000100d7b3c0 KGlobal::locale() + 208
8   meinproc4                           0x0000000100cc97d3 main + 2387
9   libdyld.dylib                       0x00007fff8c2d35fd start + 1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1418865</commentid>
    <comment_count>6</comment_count>
    <who name="Marko Käning">mk-lists</who>
    <bug_when>2013-12-16 20:05:20 +0000</bug_when>
    <thetext>Wow, this is the first true trace I see for this bug. I wonder whether you&apos;re actually able to reproduce this crash.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1422307</commentid>
    <comment_count>7</comment_count>
    <who name="">foolishewe</who>
    <bug_when>2014-01-02 18:54:28 +0000</bug_when>
    <thetext>He could not but I could, I reported it to macports.  This crash occurred consistently and prevented the build of the poxml package on this particular machine, and started happening after I updated the system to Mavericks.  I think our odds on replaying this scenario and getting more full diagnostic information may be better on my configuration.

Recently bug fix patch was provided to me by the macports team, who may have applied it to the tree. Although we have a work around, I&apos;d be willing to run a reasonable number of diagnostics to track this down, and the Macports team may also be motivated to help, shall I ask the Macports maintainers to provide me an inverse patch to back it out so that this can be diagnosed, understood and fixed. 

Let&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1422311</commentid>
    <comment_count>8</comment_count>
    <who name="">foolishewe</who>
    <bug_when>2014-01-02 19:20:48 +0000</bug_when>
    <thetext>Sorry about the previous message being garbled.  I did a port selfupdate (update my local ports tree) and then uninstalled and reinstalled poxml with success, so I believe the workaround/fix was propagated to the main branch.  Do you want me to go to the macports team and ask for help in rolling back this fix locally on my machine to see if we can track this down?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1445601</commentid>
    <comment_count>9</comment_count>
    <who name="Marko Käning">mk-lists</who>
    <bug_when>2014-05-03 18:54:07 +0000</bug_when>
    <thetext>An update: This issue is discussed lately on KDE-DEVEL and (more up-to-date) on KDE-MAC.

KDE-DEVEL: http://lists.kde.org/?t=139514981600001&amp;r=1&amp;w=2
KDE-MAC: http://lists.kde.org/?l=kde-mac&amp;m=139900328213525&amp;w=2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1469226</commentid>
    <comment_count>10</comment_count>
    <who name="RJVB">rjvbertin</who>
    <bug_when>2014-09-03 00:18:37 +0000</bug_when>
    <thetext>(In reply to kde from comment #5)
&gt; Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
&gt; 0   com.apple.CoreFoundation            0x00007fff8a32ae4f CFStringGetLength
&gt; + 15
&gt; 1   libkdecore.5.dylib                  0x0000000100e49011
&gt; convert_CFString_to_QString(__CFString const*) + 49


Whether or not the bug is indeed in convert_CFString_to_QString(), it might be a good idea to protect that function against null CFStringRefs:

    QString convert_CFString_to_QString(CFStringRef str) {
            if( str ){
            CFIndex length = CFStringGetLength(str);
            const UniChar *chars = CFStringGetCharactersPtr(str);
            if (chars)
                return QString(reinterpret_cast&lt;const QChar *&gt;(chars), length);
    
            QVarLengthArray&lt;UniChar&gt; buffer(length);
            CFStringGetCharacters(str, CFRangeMake(0, length), buffer.data());
            return QString(reinterpret_cast&lt;const QChar *&gt;(buffer.constData()), length);
        }
        else{
            return QString();
        }
    }</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1469318</commentid>
    <comment_count>11</comment_count>
    <who name="RJVB">rjvbertin</who>
    <bug_when>2014-09-03 13:34:34 +0000</bug_when>
    <thetext>(In reply to kde from comment #5)
&gt; Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
&gt; 0   com.apple.CoreFoundation            0x00007fff8a32ae4f CFStringGetLength
&gt; + 15
&gt; 1   libkdecore.5.dylib                  0x0000000100e49011
&gt; convert_CFString_to_QString(__CFString const*) + 49


Whether or not the bug is indeed in convert_CFString_to_QString(), it might be a good idea to protect that function against null CFStringRefs:

    QString convert_CFString_to_QString(CFStringRef str) {
            if( str ){
            CFIndex length = CFStringGetLength(str);
            const UniChar *chars = CFStringGetCharactersPtr(str);
            if (chars)
                return QString(reinterpret_cast&lt;const QChar *&gt;(chars), length);
    
            QVarLengthArray&lt;UniChar&gt; buffer(length);
            CFStringGetCharacters(str, CFRangeMake(0, length), buffer.data());
            return QString(reinterpret_cast&lt;const QChar *&gt;(buffer.constData()), length);
        }
        else{
            return QString();
        }
    }</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1469777</commentid>
    <comment_count>12</comment_count>
      <attachid>88587</attachid>
    <who name="RJVB">rjvbertin</who>
    <bug_when>2014-09-06 10:49:27 +0000</bug_when>
    <thetext>Created attachment 88587
protect against potential conversion of a NULL CFString

This is a &quot;can&apos;t hurt if it ain&apos;t fix anything&quot; patch that should prevent the kind of crash we saw in the 1 backtrace of meinproc4 crashing that we have.
If indeed it was due to a NULL CFStringRef, and not a corrupt one ...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1469861</commentid>
    <comment_count>13</comment_count>
    <who name="Luigi Toscano">luigi.toscano</who>
    <bug_when>2014-09-06 21:20:18 +0000</bug_when>
    <thetext>Thanks for the patch: I would say that:
- the patch, as we know, hides some other issue deeper in the code related to KGlobal or so;
- on the other side, this is about the kdelibs4 world and I suspect you want to move to Qt5, where that specific code changed, so a specific fix should be most likely redone;
- I would suggest then to submit the patch through reviewboard, producs kdelibs, branch KDE/4.14, and see if it&apos;s worth to forward-port it to the relevant part of Frameworks (which I have no idea if it works or not).
If kdelibs4 MacOSX applications works with this patch, and given that it affects only Mac codepaths, I suspect it won&apos;t be difficult to have it in.

What do you think?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1469863</commentid>
    <comment_count>14</comment_count>
    <who name="RJVB">rjvbertin</who>
    <bug_when>2014-09-06 21:36:16 +0000</bug_when>
    <thetext>I think that the replacement function ( QCFString::toQString) already does the check my patch adds...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1669609</commentid>
    <comment_count>15</comment_count>
    <who name="Luigi Toscano">luigi.toscano</who>
    <bug_when>2017-04-02 13:34:16 +0000</bug_when>
    <thetext>Is this still an issue? The question applies both to meinproc4 and meinproc5.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1669635</commentid>
    <comment_count>16</comment_count>
    <who name="RJVB">rjvbertin</who>
    <bug_when>2017-04-02 16:58:58 +0000</bug_when>
    <thetext>I&apos;ve never yet seen any indication of meinproc5 crashing on Mac, and I don&apos;t have any particular patches for it either.

That said, I wouldn&apos;t actually know when it&apos;s called. Each time documentation is built?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1669640</commentid>
    <comment_count>17</comment_count>
    <who name="Burkhard Lück">lueck</who>
    <bug_when>2017-04-02 17:42:39 +0000</bug_when>
    <thetext>Yes, see https://cgit.kde.org/kdoctools.git/tree/KF5DocToolsMacros.cmake</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1669838</commentid>
    <comment_count>18</comment_count>
    <who name="Ian Wadham">iandw.au</who>
    <bug_when>2017-04-04 06:23:24 +0000</bug_when>
    <thetext>See Jeremy Lavergne&apos;s original report of this bug on 2010-12-29.

AFAIK it has only ever occurred during large MacPorts builds, possibly/probably on MacPorts servers that supply binaries and certainly on servers that are used to test ports of FOSS software in general onto Apple OS X. The symptoms were death of the entire build, with the loss of builds of many KDE modules and many FOSS modules other than KDE. It would strike at random in most builds that required meinproc4 to run --- but at varying points in the build.

At the time (2010) DrKonqi was not working at all in Apple OS X (beginning with a crash in KCrash...), so no KDE crash report was available.

The solution adopted by the MacPorts developers was to make the default variant for KDE builds to be &quot;no documentation&quot; --- a sad state of affairs, especially for potential users of KDE software on Apple OS X, but better than having major builds crashing.

DrKonqi, KCrash and successors in KF5 have been fixed in Apple OS X now. Stress tests of meinproc4 on Apple OS X, by me and others, in our home machines, have never experienced a failure.

Conversely, AFAIK, nobody has ever managed to persuade the MacPorts developers to make &quot;KDE with documentation&quot; the default build, not even with versions of KDE4, meinproc4 and DrKonqi more recent than 2010. So, again AFAIK, it is not known if the original problem, reported in 2010 still exists.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1669847</commentid>
    <comment_count>19</comment_count>
    <who name="RJVB">rjvbertin</who>
    <bug_when>2017-04-04 08:00:13 +0000</bug_when>
    <thetext>Hi Ian!

&gt;Conversely, AFAIK, nobody has ever managed to persuade the MacPorts developers
&gt;to make &quot;KDE with documentation&quot; the default build, not even with versions of

Off-topic, but:
It&apos;s not uncommon at all for MacPorts ports to provide documentation through an optional variant, for package size considerations.

&gt;KDE4, meinproc4 and DrKonqi more recent than 2010. So, again AFAIK, it is not
&gt;known if the original problem, reported in 2010 still exists.

There are 2 questions here:
- does meinproc4 still crash on Mac
- does meinproc5 crash on Mac

It seems the answer to both questions is &quot;apparently not&quot; so I think this ticket can be closed. It can always be reopened if needed, and problem with meinproc5 would probably need to be addressed via a separate ticket (or a patch review if I catch and fix them myself).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1670340</commentid>
    <comment_count>20</comment_count>
    <who name="Ian Wadham">iandw.au</who>
    <bug_when>2017-04-07 05:44:38 +0000</bug_when>
    <thetext>(In reply to RJVB from comment #19)
&gt;&gt; It&apos;s not uncommon at all for MacPorts ports to provide documentation through
&gt; an optional variant, for package size considerations.

Meinproc4 provides only the end-user documentation (the handbooks and guides). It converts XML docbook format into a compressed HTML file, which is de-compressed only if and when a user requests to see that doco via KDE application-help menu. But yes, the MacPorts +docs variant does iterate through the entire dependencies list, providing doco of all types for the entire list, in a huge range of formats used by FOSS in general.

&gt; There are 2 questions here:
&gt; - does meinproc4 still crash on Mac
&gt; - does meinproc5 crash on Mac
&gt; 
&gt; It seems the answer to both questions is &quot;apparently not&quot; so I think this
&gt; ticket can be closed.

I agree that this bug report can be closed, perhaps with reason WORKSFORME.

However, that still leaves new users of KDE apps and utilities with the message &quot;There is no documentation available for /&lt;appname&gt;/index.html&quot;, if they try to get the handbook for the Help menu, but that is a real turnoff for newbie users, besides making it difficult to get acquainted with some of the more sophisticated KDE4 and KF5packages. And the message  is not actually true for most KDE4 and KF5 packages, unless there has been a build failure.

May I suggest some possible workarounds in MacPorts:-

    a. Change the above message to refer the user to &quot;https:docs.kde.org&quot;,
       where online copies of all documentation can be found nowadays.
    b. Add a similar message to the MacPorts Notes for KDE4 and KF5 builds.
    c. Introduce a variant for KDE4 and KF5 ports (eg. +userdoc) that will
       just provide end-user doco (ie. run meinproc for one package only and
       not all the dependencies).

I believe you had idea c. a while back, René, but someone knocked it on the head.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1670356</commentid>
    <comment_count>21</comment_count>
    <who name="Burkhard Lück">lueck</who>
    <bug_when>2017-04-07 09:04:58 +0000</bug_when>
    <thetext>(In reply to Ian Wadham from comment #20)
&gt; However, that still leaves new users of KDE apps and utilities with the
&gt; message &quot;There is no documentation available for /&lt;appname&gt;/index.html&quot;, if
&gt; they try to get the handbook for the Help menu, but that is a real turnoff
&gt; for newbie users, besides making it difficult to get acquainted with some of
&gt; the more sophisticated KDE4 and KF5packages. And the message  is not
&gt; actually true for most KDE4 and KF5 packages, unless there has been a build
&gt; failure.
&gt; 
&gt; May I suggest some possible workarounds in MacPorts:-
&gt; 
&gt;     a. Change the above message to refer the user to &quot;https:docs.kde.org&quot;,
&gt;        where online copies of all documentation can be found nowadays.

If you build frameworks/kio with documentation you will not see the
message &quot;There is no documentation available for /&lt;appname&gt;/index.html&quot;, 
but this page in khelpcenter:

https://docs.kde.org/trunk5/en/frameworks/kioslave5/help/documentationnotfound/index.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1670385</commentid>
    <comment_count>22</comment_count>
    <who name="RJVB">rjvbertin</who>
    <bug_when>2017-04-07 11:49:36 +0000</bug_when>
    <thetext>It should be possible to perform an automatic search of the online documentation first, no? In fact, it should be possible to provide all existing handbooks online at least for projects that are part of KF5 Applications and Plasma5. Would be considerably more user-friendly!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1670391</commentid>
    <comment_count>23</comment_count>
    <who name="Luigi Toscano">luigi.toscano</who>
    <bug_when>2017-04-07 11:56:03 +0000</bug_when>
    <thetext>If KHelpCenter is not installed, the &quot;foobar Handbook&quot; link from the Help menu of Frameworks applications redirects to docs.kde.org.

If KHelpCenter is installed, the issue is on KHelpCenter (and I think it&apos;s already reported), but anyway out of scope for this bug...</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>88587</attachid>
            <date>2014-09-06 10:49:27 +0000</date>
            <delta_ts>2014-09-06 10:49:27 +0000</delta_ts>
            <desc>protect against potential conversion of a NULL CFString</desc>
            <filename>meinproc-patches.diff</filename>
            <type>text/plain</type>
            <size>1062</size>
            <attacher name="RJVB">rjvbertin</attacher>
            
              <data encoding="base64">LS0tIGtkZWxpYnMtZ2l0L2tkZWNvcmUva2VybmVsL29yaWcua2tlcm5lbF9tYWMuY3BwCTIwMTQt
MDktMDIgMTM6MTM6MDYuMDAwMDAwMDAwICswMjAwCisrKyBrZGVsaWJzLWdpdC9rZGVjb3JlL2tl
cm5lbC9ra2VybmVsX21hYy5jcHAJMjAxNC0wOS0wNiAxMjo0NTozOC4wMDAwMDAwMDAgKzAyMDAK
QEAgLTUyLDE0ICs1MiwxOSBAQAogKi8KIAogUVN0cmluZyBjb252ZXJ0X0NGU3RyaW5nX3RvX1FT
dHJpbmcoQ0ZTdHJpbmdSZWYgc3RyKSB7Ci0JQ0ZJbmRleCBsZW5ndGggPSBDRlN0cmluZ0dldExl
bmd0aChzdHIpOwotCWNvbnN0IFVuaUNoYXIgKmNoYXJzID0gQ0ZTdHJpbmdHZXRDaGFyYWN0ZXJz
UHRyKHN0cik7Ci0JaWYgKGNoYXJzKQotCQlyZXR1cm4gUVN0cmluZyhyZWludGVycHJldF9jYXN0
PGNvbnN0IFFDaGFyICo+KGNoYXJzKSwgbGVuZ3RoKTsKKwlpZiggc3RyICl7CisJCUNGSW5kZXgg
bGVuZ3RoID0gQ0ZTdHJpbmdHZXRMZW5ndGgoc3RyKTsKKwkJY29uc3QgVW5pQ2hhciAqY2hhcnMg
PSBDRlN0cmluZ0dldENoYXJhY3RlcnNQdHIoc3RyKTsKKwkJaWYgKGNoYXJzKQorCQkJcmV0dXJu
IFFTdHJpbmcocmVpbnRlcnByZXRfY2FzdDxjb25zdCBRQ2hhciAqPihjaGFycyksIGxlbmd0aCk7
CiAKLQlRVmFyTGVuZ3RoQXJyYXk8VW5pQ2hhcj4gYnVmZmVyKGxlbmd0aCk7Ci0JQ0ZTdHJpbmdH
ZXRDaGFyYWN0ZXJzKHN0ciwgQ0ZSYW5nZU1ha2UoMCwgbGVuZ3RoKSwgYnVmZmVyLmRhdGEoKSk7
Ci0JcmV0dXJuIFFTdHJpbmcocmVpbnRlcnByZXRfY2FzdDxjb25zdCBRQ2hhciAqPihidWZmZXIu
Y29uc3REYXRhKCkpLCBsZW5ndGgpOworCQlRVmFyTGVuZ3RoQXJyYXk8VW5pQ2hhcj4gYnVmZmVy
KGxlbmd0aCk7CisJCUNGU3RyaW5nR2V0Q2hhcmFjdGVycyhzdHIsIENGUmFuZ2VNYWtlKDAsIGxl
bmd0aCksIGJ1ZmZlci5kYXRhKCkpOworCQlyZXR1cm4gUVN0cmluZyhyZWludGVycHJldF9jYXN0
PGNvbnN0IFFDaGFyICo+KGJ1ZmZlci5jb25zdERhdGEoKSksIGxlbmd0aCk7CisJfQorCWVsc2V7
CisJCXJldHVybiBRU3RyaW5nKCk7CisJfQogfQogCiAvKioK
</data>

          </attachment>
      

    </bug>

</bugzilla>