Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Aug 1999 22:12:42 -0700
From:      Thimble Smith <tim@desert.net>
To:        FreeBSD-current List <freebsd-current@freebsd.org>
Subject:   Bus error in isatty() from /usr/lib/libc.so.3
Message-ID:  <19990811221242.B70843@desert.net>

next in thread | raw e-mail | index | archive | help
Hello.  I have a reproducable problem which gdb says is ending up at
0x2818d862 in isatty() from /usr/lib/libc.so.3.  A full back trace is
below.  If this is a problem in FreeBSD, I'm very glad to do any
experiments that might be helpful.  If it's a problem somewhere else,
any pointers on what I might do next would be great.

Thanks,

Tim



How to repeat:
    I installed MySQL 3.23.2, then DBI-1.11.  I compiled
    Msql-Mysql-modules-1.2200, and ran the test suite.  All but the first
    test dumped core, all with this same error.


This is with -CURRENT as of Aug 10 @ 7AM (GMT).  I did a complete
make buildworld; make installworld;, then I recompiled the kernel.



tim@threads$ uname -a
FreeBSD threads.polyesthetic.org 4.0-CURRENT FreeBSD 4.0-CURRENT #11: Wed Aug 11 08:57:53 MST 1999     root@threads.polyesthetic.org:/usr/src/sys/compile/THREADS  i386



tim@threads:/usr/local/src/Msql-Mysql-modules-1.2200/mysql$ LD_LIBRARY_PATH=`pwd`/../blib/arch/auto/DBD/mysql gdb /usr/bin/perl
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-unknown-freebsd"...
(no debugging symbols found)...
(gdb) run -I../blib/lib t/10dsnlist.t
Starting program: /usr/bin/perl -I../blib/lib t/10dsnlist.t
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
Driver is mysql
1..3
(no debugging symbols found)...(no debugging symbols found)...
_login('database=test' 'tim' 'ign0rant')
(no debugging symbols found)...
Program received signal SIGBUS, Bus error.
0x2818d862 in isatty () from /usr/lib/libc.so.3
(gdb) back
#0  0x2818d862 in isatty () from /usr/lib/libc.so.3
#1  0x2818db22 in isatty () from /usr/lib/libc.so.3
#2  0x2818e1de in malloc () from /usr/lib/libc.so.3
#3  0x28236e88 in _thread_fd_table_init () from /usr/lib/libc_r.so.4
#4  0x28238056 in _thread_fd_lock_debug () from /usr/lib/libc_r.so.4
#5  0x28248498 in bind () from /usr/lib/libc_r.so.4
#6  0x2818eeb7 in .cerror () from /usr/lib/libc.so.3
#7  0x28238056 in _thread_fd_lock_debug () from /usr/lib/libc_r.so.4
#8  0x28248498 in bind () from /usr/lib/libc_r.so.4
#9  0x2818eeb7 in .cerror () from /usr/lib/libc.so.3
#10 0x28238056 in _thread_fd_lock_debug () from /usr/lib/libc_r.so.4

#26905 0x28238056 in _thread_fd_lock_debug () from /usr/lib/libc_r.so.4
#26906 0x28248498 in bind () from /usr/lib/libc_r.so.4
#26907 0x2818eeb7 in .cerror () from /usr/lib/libc.so.3
#26908 0x281dbb95 in my_net_init (net=0x8057c54, nettype=NET_TYPE_SOCKET, 
    fd=5, pipe=0x0) at net.c:137
#26909 0x281d97be in mysql_real_connect (mysql=0x8057c54, 
    host=0x281e5bf0 "localhost", user=0x81283d0 "tim", 
    passwd=0x8128650 "ign0rant", db=0x8108650 "test", port=0, 
    unix_socket=0x281e5b80 "/tmp/mysql.sock", client_flag=0) at libmysql.c:1194
#26910 0x281c0ba2 in mysql_dr_connect ()
   from /usr/local/src/Msql-Mysql-modules-1.2200/mysql/../blib/arch/auto/DBD/mysql/mysql.so
#26911 0x281c130e in _MyLogin ()
   from /usr/local/src/Msql-Mysql-modules-1.2200/mysql/../blib/arch/auto/DBD/mysql/mysql.so
#26912 0x281c139d in mysql_db_login ()
   from /usr/local/src/Msql-Mysql-modules-1.2200/mysql/../blib/arch/auto/DBD/mysql/mysql.so
#26913 0x281c90cd in XS_DBD__mysql__db__login ()
   from /usr/local/src/Msql-Mysql-modules-1.2200/mysql/../blib/arch/auto/DBD/mysql/mysql.so
#26914 0x280af0b5 in Perl_pp_entersub () from /usr/lib/libperl.so.3
#26915 0x28079d69 in Perl_runops_standard () from /usr/lib/libperl.so.3
#26916 0x280e0519 in perl_call_sv () from /usr/lib/libperl.so.3
#26917 0x281b16a5 in XS_DBI_dispatch ()
   from /usr/local/lib/perl5/site_perl/5.005/i386-freebsd/auto/DBI/DBI.so
#26918 0x280af0b5 in Perl_pp_entersub () from /usr/lib/libperl.so.3
#26919 0x28079d69 in Perl_runops_standard () from /usr/lib/libperl.so.3
#26920 0x280dfd6e in perl_run () from /usr/lib/libperl.so.3
#26921 0x8048da8 in perl_free ()
#26922 0x8048cd5 in perl_free ()
(gdb) 


Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
  Platform:
    osname=freebsd, osvers=4.0-current, archname=i386-freebsd
    uname='freebsd freefall.freebsd.org 4.0-current freebsd 4.0-current #0: $Date: 1999/05/05 19:09:48 $'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef useperlio=undef d_sfio=undef
  Compiler:
    cc='cc', optimize='undef', gccversion=egcs-2.91.66 19990314 (egcs-1.1.2 release)
    cppflags=''
    ccflags =''
    stdchar='char', d_stdstdio=undef, usevfork=true
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    alignbytes=4, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='cc', ldflags ='-Wl,-E'
    libpth=/usr/lib
    libs=-lm -lc -lcrypt
    libc=/usr/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so.3
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-DPIC -fpic', lddlflags='-shared'


Characteristics of this binary (from libperl): 
  Built under freebsd
  Compiled at Aug 10 1999 12:10:48
  @INC:
    /usr/libdata/perl/5.00503/mach
    /usr/libdata/perl/5.00503
    /usr/local/lib/perl5/site_perl/5.005/i386-freebsd
    /usr/local/lib/perl5/site_perl/5.005
    .


Kernel config file:
===================

# THREADS -- 586 w/ IDE

machine		i386
cpu		I586_CPU
ident		THREADS
maxusers	32

#makeoptions	DEBUG=-g		#Build kernel with gdb(1) debug symbols

options 	INET			#InterNETworking
options 	FFS			#Berkeley Fast Filesystem
options 	FFS_ROOT		#FFS usable as root device [keep this!]
options 	CD9660			#ISO 9660 Filesystem
options 	CD9660_ROOT		#CD-ROM usable as root. "CD9660" req'ed
options 	PROCFS			#Process filesystem
options 	COMPAT_43		#Compatible with BSD 4.3 [KEEP THIS!]
options 	UCONSOLE		#Allow users to grab the console
options 	USERCONFIG		#boot -c editor
options 	VISUAL_USERCONFIG	#visual boot -c editor
options 	KTRACE			#ktrace(1) syscall trace support
options         SYSVSHM			#SYSV-style shared memory
options         SYSVMSG			#SYSV-style message queues
options         SYSVSEM			#SYSV-style semaphores

controller	isa0
controller	pnp0			# PnP support for ISA
controller	eisa0
controller	pci0

# Floppy drives
controller	fdc0	at isa? port IO_FD1 irq 6 drq 2
disk		fd0	at fdc0 drive 0

# IDE controller and disks
controller	wdc0	at isa? port IO_WD1 irq 14
disk		wd0	at wdc0 drive 0
disk		wd1	at wdc0 drive 1

controller	wdc1	at isa? port IO_WD2 irq 15
disk		wd2	at wdc1 drive 0
disk		wd3	at wdc1 drive 1

# ATAPI devices on wdc?
device		wcd0		#IDE CD-ROM

# atkbdc0 controls both the keyboard and the PS/2 mouse
controller	atkbdc0	at isa? port IO_KBD
device		atkbd0	at atkbdc? irq 1
device		psm0	at atkbdc? irq 12

device		vga0	at isa? port ? conflicts

# splash screen/screen saver
pseudo-device	splash

# syscons is the default console driver, resembling an SCO console
device		sc0	at isa?

# Floating point support - do not disable.
device		npx0	at nexus? port IO_NPX irq 13

# Power management support (see LINT for more options)
device		apm0    at nexus? disable flags 0x31 # Advanced Power Management

# Serial (COM) ports
device		sio0	at isa? port IO_COM1 flags 0x10 irq 4
device		sio1	at isa? port IO_COM2 irq 3
device		sio2	at isa? disable port IO_COM3 irq 5
device		sio3	at isa? disable port IO_COM4 irq 9

# Parallel port
device		ppc0	at isa? port? flags 0x40 irq 7
controller	ppbus0		# Parallel port bus (required)
device		lpt0		# Printer

# PCI Ethernet NICs.
device		al0		# ADMtek AL981 (``Comet'')
device		ax0		# ASIX AX88140A
device		de0		# DEC/Intel DC21x4x (``Tulip'')
device		fxp0		# Intel EtherExpress PRO/100B (82557, 82558)
device		mx0		# Macronix 98713/98715/98725 (``PMAC'')
device		pn0		# Lite-On 82c168/82c169 (``PNIC'')
device		rl0		# RealTek 8129/8139
device		tl0		# Texas Instruments ThunderLAN
device		tx0		# SMC 9432TX (83c170 ``EPIC'')
device		vr0		# VIA Rhine, Rhine II
device		vx0		# 3Com 3c590, 3c595 (``Vortex'')
device		wb0		# Winbond W89C840F
device		xl0		# 3Com 3c90x (``Boomerang'', ``Cyclone'')

# ISA Ethernet NICs.
# The probe order of these is presently determined by i386/isa/isa_compat.c.
device		ed0	at isa? port 0x280 irq 10 iomem 0xd8000
device		ie0	at isa? port 0x300 irq 10 iomem 0xd0000
device		ep0	at isa? port 0x300 irq 10
device		ex0	at isa? port? irq?
device		fe0	at isa? port 0x300 irq ?
device		le0	at isa? port 0x300 irq 5 iomem 0xd0000
device		lnc0	at isa? port 0x280 irq 10 drq 0
device		cs0	at isa? port 0x300 irq ?


# Pseudo devices - the number indicates how many units to allocated.
pseudo-device	loop		# Network loopback
pseudo-device	ether		# Ethernet support
pseudo-device	sl	1	# Kernel SLIP
pseudo-device	ppp	1	# Kernel PPP
pseudo-device	tun	1	# Packet tunnel, for ppp(1)
pseudo-device	pty	16	# Pseudo-ttys (telnet etc)
pseudo-device	gzip		# Exec gzipped a.out's

# The `bpf' pseudo-device enables the Berkeley Packet Filter.
# Be aware of the legal and administrative consequences of enabling this!
pseudo-device	bpf	4	#Berkeley packet filter


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990811221242.B70843>