<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>30638</bug_id>
          
          <creation_ts>2015-01-11 00:47:38 +0300</creation_ts>
          <short_desc>crashes during work because no libgcc_s in /var/empty</short_desc>
          <delta_ts>2025-11-14 12:27:53 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Distributions</classification>
          <product>Branch t6</product>
          <component>pdnsd</component>
          <version>не указана</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>30640</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="Nobody&apos;s working on this, feel free to take it">nobody</assigned_to>
          <cc>mike</cc>
    
    <cc>sem</cc>
    
    <cc>slava</cc>
          
          <qa_contact name="QA t6">qa-t6</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>149607</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2015-01-11 00:47:38 +0300</bug_when>
    <thetext>pdns-1.2.7 crashes some time after the start because libgcc_s is missing in /var/empty (its chroot). Its error message before dying is:

libgcc_s.so.1 must be installed for pthread_cancel to work

Here are some last messages from running: 

strace -e trace=file -fF pdnsd -g -v3 --config-file /etc/pdnsd.conf -p /var/run/pdnsd.pid

52 01/11 00:44:00| Using cached record.
52 01/11 00:44:00| Starting cached resolve for: ibigdan.livejournal.com., query AAAA
52 01/11 00:44:00| Record found in cache for ibigdan.livejournal.com.
52 01/11 00:44:00| Requery decision: dflags=0, cflags=0, req=0, neg=0, timed=1, timestamp=0
52 01/11 00:44:00| Trying name servers.
52 01/11 00:44:00| Sending query to 174.35.55.22
52 01/11 00:44:00| Sending query to 66.114.55.22
52 01/11 00:44:00| Caching type AAAA for domain ibigdan.livejournal.com. negative with ttl 600
52 01/11 00:44:00| Query to 174.35.55.22 succeeded.
52 01/11 00:44:00| Outbound msg len 103, tc=0, rc=&quot;no error&quot;
52 01/11 00:44:00| Answering to: 192.168.1.13, source address: 192.168.1.2
Process 6227 detached
4 01/11 00:44:11| No query succeeded. Returning error code &quot;server failed&quot;
4 01/11 00:44:11| Outbound msg len 46, tc=0, rc=&quot;server failed&quot;
4 01/11 00:44:11| Answering to: 192.168.1.13, source address: 192.168.1.2
Process 6177 detached
6 01/11 00:44:22| No query succeeded. Returning error code &quot;server failed&quot;
6 01/11 00:44:22| Outbound msg len 58, tc=0, rc=&quot;server failed&quot;
6 01/11 00:44:22| Answering to: 192.168.1.13, source address: 192.168.1.2
Process 6179 detached
Process 6228 attached (waiting for parent)
Process 6228 resumed (parent 6173 ready)
53 01/11 00:44:22| Received query.
53 01/11 00:44:22| Bad rcode(2).
[pid  6228] open(&quot;/etc/ld.so.cache&quot;, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid  6228] open(&quot;/lib/tls/i686/sse2/libgcc_s.so.1&quot;, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid  6228] stat64(&quot;/lib/tls/i686/sse2&quot;, 0xb61feb90) = -1 ENOENT (No such file or directory)
[pid  6228] open(&quot;/lib/tls/i686/libgcc_s.so.1&quot;, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid  6228] stat64(&quot;/lib/tls/i686&quot;, 0xb61feb90) = -1 ENOENT (No such file or directory)
[pid  6228] open(&quot;/lib/tls/sse2/libgcc_s.so.1&quot;, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid  6228] stat64(&quot;/lib/tls/sse2&quot;, 0xb61feb90) = -1 ENOENT (No such file or directory)
[pid  6228] open(&quot;/lib/tls/libgcc_s.so.1&quot;, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid  6228] stat64(&quot;/lib/tls&quot;, 0xb61feb90) = -1 ENOENT (No such file or directory)
[pid  6228] open(&quot;/lib/i686/sse2/libgcc_s.so.1&quot;, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid  6228] stat64(&quot;/lib/i686/sse2&quot;, 0xb61feb90) = -1 ENOENT (No such file or directory)
[pid  6228] open(&quot;/lib/i686/libgcc_s.so.1&quot;, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid  6228] stat64(&quot;/lib/i686&quot;, 0xb61feb90) = -1 ENOENT (No such file or directory)
[pid  6228] open(&quot;/lib/sse2/libgcc_s.so.1&quot;, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid  6228] stat64(&quot;/lib/sse2&quot;, 0xb61feb90) = -1 ENOENT (No such file or directory)
[pid  6228] open(&quot;/lib/libgcc_s.so.1&quot;, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid  6228] stat64(&quot;/lib&quot;, {st_mode=S_IFDIR|0755, st_size=6, ...}) = 0
[pid  6228] open(&quot;/usr/lib/tls/i686/sse2/libgcc_s.so.1&quot;, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid  6228] stat64(&quot;/usr/lib/tls/i686/sse2&quot;, 0xb61feb90) = -1 ENOENT (No such file or directory)
[pid  6228] open(&quot;/usr/lib/tls/i686/libgcc_s.so.1&quot;, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid  6228] stat64(&quot;/usr/lib/tls/i686&quot;, 0xb61feb90) = -1 ENOENT (No such file or directory)
[pid  6228] open(&quot;/usr/lib/tls/sse2/libgcc_s.so.1&quot;, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid  6228] stat64(&quot;/usr/lib/tls/sse2&quot;, 0xb61feb90) = -1 ENOENT (No such file or directory)
[pid  6228] open(&quot;/usr/lib/tls/libgcc_s.so.1&quot;, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid  6228] stat64(&quot;/usr/lib/tls&quot;, 0xb61feb90) = -1 ENOENT (No such file or directory)
[pid  6228] open(&quot;/usr/lib/i686/sse2/libgcc_s.so.1&quot;, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid  6228] stat64(&quot;/usr/lib/i686/sse2&quot;, 0xb61feb90) = -1 ENOENT (No such file or directory)
[pid  6228] open(&quot;/usr/lib/i686/libgcc_s.so.1&quot;, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid  6228] stat64(&quot;/usr/lib/i686&quot;, 0xb61feb90) = -1 ENOENT (No such file or directory)
[pid  6228] open(&quot;/usr/lib/sse2/libgcc_s.so.1&quot;, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid  6228] stat64(&quot;/usr/lib/sse2&quot;, 0xb61feb90) = -1 ENOENT (No such file or directory)
[pid  6228] open(&quot;/usr/lib/libgcc_s.so.1&quot;, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid  6228] stat64(&quot;/usr/lib&quot;, 0xb61feb90) = -1 ENOENT (No such file or directory)
[pid  6228] open(&quot;/dev/tty&quot;, O_RDWR|O_NOCTTY|O_NONBLOCK) = -1 ENOENT (No such file or directory)
libgcc_s.so.1 must be installed for pthread_cancel to work
[pid  6228] --- SIGABRT (Aborted) @ 0 (0) ---
Process 6228 detached
[pid  6209] +++ killed by SIGABRT +++
Process 6209 detached
[pid  6172] +++ killed by SIGABRT +++
Process 6172 detached
[pid  6171] +++ killed by SIGABRT +++
Process 6171 detached
[pid  6173] +++ killed by SIGABRT +++
Process 6173 detached
+++ killed by SIGABRT +++
Process 6169 detached
Aborted (core dumped)
[root@localhost ~]# 

This dependency is not detectable, at least the following way:

[root@localhost ~]# ldd -r /usr/sbin/pdnsd
	linux-gate.so.1 (0xb7f7d000)
	libpthread.so.0 =&gt; /lib/libpthread.so.0 (0xb7f43000)
	libc.so.6 =&gt; /lib/libc.so.6 (0xb7dcc000)
	/lib/ld-linux.so.2 (0xb7f7e000)
[root@localhost ~]# ldd -r /lib/libpthread.so.0
	linux-gate.so.1 (0xb7f4c000)
	libc.so.6 =&gt; /lib/libc.so.6 (0xb7d9b000)
	/lib/ld-linux.so.2 (0xb7f4d000)
[root@localhost ~]# ldd -r /lib/libc.so.6
	/lib/ld-linux.so.2 (0xb7f32000)
	linux-gate.so.1 (0xb7f31000)
[root@localhost ~]# 


Perhaps, it&apos;s a problem of libc or libpthread (so that they are not immediately linked with libgcc_s, and hence crash in an empty chroot), or a problem of pdnsd&apos;s chroot configuration (it shouldn&apos;t be empty).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>149609</commentid>
    <comment_count>1</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2015-01-11 00:58:48 +0300</bug_when>
    <thetext>Similar cases:

https://bugzilla.altlinux.org/show_bug.cgi?id=9958
https://bugzilla.altlinux.org/show_bug.cgi?id=29001
https://bugzilla.altlinux.org/show_bug.cgi?id=25280

Can&apos;t this dependency brought onto surface automatically, and laoding it or copying into the chroot made automatically?

Well, in case of pdnsd the chroot is /var/empty/ and it is supposed to be empty, so this contradicts the need to copy a library...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>184652</commentid>
    <comment_count>2</comment_count>
    <who name="Vyacheslav Dikonov">slava</who>
    <bug_when>2019-09-29 18:45:45 +0300</bug_when>
    <thetext>В Сизифе теперь тоже падает pdnsd с сообщением в логе.


pdnsd[1220]: segfault at 0 ip 0000003a50a77de1 sp 00007ffdca940d90 error 4 in libc-2.27.so[3a50a22000+146000]

Может быть это тоже самое.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>276795</commentid>
    <comment_count>3</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2025-11-14 12:27:53 +0300</bug_when>
    <thetext>Продукт более не поддерживается. Если актуально, то необходимо перевешать на новый поддерживаемый репозиторий (p10, p11, Sisyphus).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>