NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

re: kern/43877: named hangs with 5.99.39 kernel, 5.99.27 userland



i saw this on sparc64, too.  i thought it was the old sparc vs pthreads
vs.  bind issue, and disabled pthreads in bind and it make my bind work
again.  i have a small patch to the bind build to fix the
NAMED_USE_PTHREADS=no setting again i plan to commit once i've confirmed
it doesn't break anything else.  (see below)

in my case, i didn't get to starting named because dhcpcd tried to run
"dig" which never exited for me, and my boot hung there.


.mrg.


Index: Makefile.inc
===================================================================
RCS file: /cvsroot/src/external/bsd/bind/Makefile.inc,v
retrieving revision 1.5
diff -p -r1.5 Makefile.inc
*** Makefile.inc        6 Aug 2010 10:58:03 -0000       1.5
--- Makefile.inc        14 Sep 2010 08:06:28 -0000
*************** CPPFLAGS+= -DLIBINTERFACE=${LIBINTERFACE
*** 74,79 ****
--- 74,80 ----
  .if ${NAMED_USE_PTHREADS} == "yes"
  # XXX: Not ready yet
  # CPPFLAGS+=  -DISC_PLATFORM_USE_NATIVE_RWLOCKS
+ CPPFLAGS+=    -DISC_PLATFORM_USETHREADS
  .if !defined (LIB) || empty(LIB)
  LDADD+= -lpthread
  DPADD+= ${LIBPTHREAD}
Index: include/isc/platform.h
===================================================================
RCS file: /cvsroot/src/external/bsd/bind/include/isc/platform.h,v
retrieving revision 1.5
diff -p -r1.5 platform.h
*** include/isc/platform.h      6 Aug 2010 10:58:13 -0000       1.5
--- include/isc/platform.h      14 Sep 2010 08:06:32 -0000
***************
*** 207,213 ****
  /*
   * Defined if we are using threads.
   */
! #define ISC_PLATFORM_USETHREADS 1
  
  /*
   * Defined if unistd.h does not cause fd_set to be delared.
--- 207,214 ----
  /*
   * Defined if we are using threads.
   */
! /* Put in the Makefile */
! /* #define ISC_PLATFORM_USETHREADS 1 */
  
  /*
   * Defined if unistd.h does not cause fd_set to be delared.


Home | Main Index | Thread Index | Old Index