Date: Fri, 7 Dec 2001 21:47:45 -0600 From: Jesse Granden <jgranden@tri-lakes.net> To: Alfred Perlstein <bright@mu.org> Cc: freebsd-hackers@freebsd.org Subject: Re: pthread_create problem on 4.4-STABLE w/ Custom Kernel Message-ID: <03521468571619@mail.tri-lakes.net> In-Reply-To: <20011207211937.V92148@elvis.mu.org> References: <02360669462989@mail.tri-lakes.net> <20011207211937.V92148@elvis.mu.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 07 December 2001 21:19, Alfred Perlstein <bright@mu.org> wrote:
> * Jesse Granden <jgranden@tri-lakes.net> [011207 20:32] wrote:
> > Hi,
> > I'm having a problem with pthread_create failing with a custom kernel
> > (problem doesn't happen with GENERIC). If I use a null pthread_attr_t
> > arg, pthread_create returns EAGAIN. If feed it a pthread_attr_tag, then
> > lib/libc_r/uthread/uthread_create.c: pthread_create() panics.
>
> "panics" you mean the kernel panics? What does it say?
sorry not a kernel panic, I should have been more specific, uthread_create()
calls
PANIC("Can't create gc thread");
which immediately results in:
Fatal error 'Can't create gc thread' at line ? in file
/usr/src/lib/libc_r/uthread/uthread_create.c (errno = ?)
Abort trap - core dumped
>
> > What options could I change in the kernel conf file that would break all
> > my pthread using programs?
> > suggestions? sources were cvsup'd today....
> > respond in email also please...
>
> No clue, what _have_ you changed?
Here's my kernel conf file, mostly stripped of comments...
machine i386
ident MYKERNEL
maxusers 64
makeoptions CONF_CFLAGS=-fno-builtin #Don't allow use of memcmp, etc.
options MAXDSIZ="(256*1024*1024)"
options MAXSSIZ="(256*1024*1024)"
options DFLDSIZ="(256*1024*1024)"
options BLKDEV_IOSIZE=8192
# Options for the VM subsystem.
options PQ_CACHESIZE=512 # color for 512k/16k cache
options INCLUDE_CONFIG_FILE # Include this file in kernel
cpu I686_CPU # aka Pentium Pro(tm)
options COMPAT_43
options USER_LDT #allow user-level control of i386 ldt
# System V shared memory and tunable parameters
options SYSVSHM # include support for shared memory
options SYSVSEM # include support for semaphores
# System V message queues and tunable parameters
options SYSVMSG # include support for message queues
# Allow ordinary users to take the console - this is useful for X.
options UCONSOLE
options INET #Internet communications protocols
#options INET6 #IPv6 communications protocols
options IPSEC #IP security
options IPSEC_ESP #IP security (crypto; define w/ IPSEC)
options NETGRAPH #netgraph(4) system
pseudo-device ether #Generic Ethernet
pseudo-device vlan 1 #VLAN support
pseudo-device loop #Network loopback device
pseudo-device bpf #Berkeley packet filter
pseudo-device disc #Discard device (ds0, ds1, etc)
pseudo-device tun #Tunnel driver (ppp(8), nos-tun(8))
pseudo-device ppp 1 #Point-to-point protocol
options PPP_BSDCOMP #PPP BSD-compress support
options PPP_DEFLATE #PPP zlib/deflate/gzip support
options PPP_FILTER #enable bpf filtering (needs bpf)
options RANDOM_IP_ID
options TCP_DROP_SYNFIN #drop TCP packets with SYN+FIN
options ICMP_BANDLIM
options FFS #Fast filesystem
options MFS #Memory File System
options FFS_ROOT #FFS usable as root device
options SOFTUPDATES
options UFS_DIRHASH
options NSWAPDEV=1
# Disk quotas are supported when this option is enabled.
options QUOTA #enable disk quotas
options P1003_1B
options _KPOSIX_PRIORITY_SCHEDULING
options _KPOSIX_VERSION=199309L
pseudo-device pty #Pseudo ttys
pseudo-device speaker #Play IBM BASIC-style noises out your speaker
pseudo-device gzip #Exec gzipped a.out's
pseudo-device vn #Vnode driver (turns a file into a device)
pseudo-device md #Memory/malloc disk
pseudo-device snp 3 #Snoop device - to look at pty/vty/etc..
pseudo-device ccd 4 #Concatenated disk driver
pseudo-device vinum #Vinum concat/mirror/raid driver
# Kernel side iconv library
options LIBICONV
# Size of the kernel message buffer. Should be N * pagesize.
options MSGBUF_SIZE=40960
device isa
options AUTO_EOI_1
options PPS_SYNC
options NTIMECOUNTER=20
device atkbdc0 at isa? port IO_KBD
# The AT keyboard
device atkbd0 at atkbdc? irq 1
options KBD_INSTALL_CDEV # install a CDEV entry in /dev
# PS/2 mouse
device psm0 at atkbdc? irq 12
device vga0 at isa?
# The pcvt console driver (vt220 compatible).
device vt0 at isa?
options XSERVER # support for running an X server on
vt
options FAT_CURSOR # start with block cursor
# The syscons console driver (sco color console compatible).
device sc0 at isa?
options MAXCONS=16 # number of virtual consoles
#options SC_PIXEL_MODE # add support for the raster text mode
device npx0 at nexus? port IO_NPX flags 0x0 irq 13
device aac
device ata
device atadisk # ATA disk drives
device atapicd # ATAPI CDROM drives
device atapifd # ATAPI floppy drives
device atapist # ATAPI tape drives
# ATA_STATIC_ID: controller numbering is static (like the old driver)
# else the device numbers are dynamically allocated.
options ATA_STATIC_ID
options IDE_DELAY=8000 # Be optimistic about Joe IDE device
device wcd
device wst
device fdc0 at isa? port IO_FD1 irq 6 drq 2
device fd0 at fdc0 drive 0
device sio0 at isa? port IO_COM1 flags 0x10 irq 4
device pcm
device pci
device miibus
device xl # 3Com 3c90x (``Boomerang'', ``Cyclone'')
options PPC_PROBE_CHIPSET # Enable chipset specific detection
device ppbus
device lpt
options KVA_PAGES=260
options VM_KMEM_SIZE="(10*1024*1024)"
options VM_KMEM_SIZE_MAX="(100*1024*1024)"
options VM_KMEM_SIZE_SCALE="4"
options VM_BCACHE_SIZE_MAX="(100*1024*1024)"
options VM_SWZONE_SIZE_MAX="(50*1024*1024)"
options PANIC_REBOOT_WAIT_TIME=-1
options COMPAT_LINUX
Hope this helps....
Jesse Granden
jgranden@tri-lakes.net
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?03521468571619>
