<p>When using MAGIC_COMPRESS (as rpmfc does), libmagic may fork helper executables to deal with decompressing files. Since commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rpm-software-management/rpm/commit/41f0e214f2266f02d6185ba11f797716de8125d4/hovercard" href="https://github.com/rpm-software-management/rpm/commit/41f0e214f2266f02d6185ba11f797716de8125d4"><tt>41f0e21</tt></a> we are running the classifier in threads, and mixing fork() and threads tends to mean trouble.</p>
<p>Filing this ticket as a reminder to look into and deal with it one way or the other: use of MAGIC_COMPRESS dates back to 2009 (commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rpm-software-management/rpm/commit/c3770c9404ffa2fcfbe0869dd7fbdb73466a637a/hovercard" href="https://github.com/rpm-software-management/rpm/commit/c3770c9404ffa2fcfbe0869dd7fbdb73466a637a"><tt>c3770c9</tt></a>), predating the current customizable classifier and availability of path based rules. Looking into compressed files was necessary for at least font provide extraction but we could trivially use paths for that now instead.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/rpm-software-management/rpm/issues/756?email_source=notifications&email_token=ADLPZUYK5V5EEEL6WIUN7GLP3IZLBA5CNFSM4HZJXRN2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G2M23FA">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ADLPZUYW4TYPS3Q7MCCWIG3P3IZLBANCNFSM4HZJXRNQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/ADLPZU2S7NG2LW2D6OJIFOTP3IZLBA5CNFSM4HZJXRN2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G2M23FA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/rpm-software-management/rpm/issues/756?email_source=notifications\u0026email_token=ADLPZUYK5V5EEEL6WIUN7GLP3IZLBA5CNFSM4HZJXRN2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G2M23FA",
"url": "https://github.com/rpm-software-management/rpm/issues/756?email_source=notifications\u0026email_token=ADLPZUYK5V5EEEL6WIUN7GLP3IZLBA5CNFSM4HZJXRN2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G2M23FA",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>