When compiling samba-3.0.14a with the attached configure-options, the smbd and
winbindd are crashing randomly when started with the '--help'-Option. Sometimes
the show the beginning of the help-screen an then they crash with SIGSEGV. The
next time there is an infinite loop of the help-screen. It seems to me as if the
both situations are taking turns.

I'm quite sure that the Problem is caused by gcc-4.0.1 because when I compile
the samba source with gcc-3.4.3 it works perfectly.

Sys-Infos:
gcc -v:
  Configured with: ../gcc-4.0.1/configure --prefix=/usr --with-gnu-as
  --with-gnu-ld --enable-threads --enable-languages=c,c++,objc,java,treelang 
  --enable-__cxa_atexit --with-x --enable-shared --enable-nls
  Thread model: posix
  gcc version 4.0.1

gcc-3.4.3 -v:
  Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/specs
  Configured with: ../gcc-3.4.3/configure --prefix=/usr --with-gnu-as 
  --with-gnu-ld --enable-threads --enable-languages=c,c++,objc,java,treelang 
  --enable-__cxa_atexit --with-x --enable-shared --enable-nls   
  --program-suffix=-3.4.3
  Thread model: posix
  gcc version 3.4.3

Samba v. 3.0.14a - Configure-options:
./configure \
--enable-shared \
--with-smbmount \
--with-libsmbclient \
--without-ldap \
--with-pam \
--prefix=/usr \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--sysconfdir=/etc/samba \
--with-logfilebase=/var/log/samba \
--with-configdir=/etc/samba \
--with-lockdir=/var/lock/samba \
--with-piddir=/var/run/samba

-- 
           Summary: GCC produces wrong code
           Product: gcc
           Version: 4.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: Tobias dot Kranz at bka dot bund dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23311

Reply via email to