Date: Wed, 2 Aug 2000 09:46:10 -0400 From: John Brann <john@brann.org> To: Hiroyuki Hanai <hanai@FreeBSD.org> Cc: john@brann.org, reinoud@xs4all.nl, freebsd-database@FreeBSD.org Subject: Re: Sybase (freebsd client) segfaults with 4.1-RC Message-ID: <20000802094610.A30026@freebie.brann.org> In-Reply-To: <82u2d4f38k.wl@darkmatter.imgsrc.co.jp>; from hanai@FreeBSD.org on Wed, Aug 02, 2000 at 05:59:07PM %2B0900 References: <20000727160727.A47289@freebie.brann.org> <3980d5af.323171@smtp.xs4all.nl> <20000728093031.A1813@freebie.brann.org> <82u2d4f38k.wl@darkmatter.imgsrc.co.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Aug 02, 2000 at 05:59:07PM +0900, Hiroyuki Hanai wrote: > Hi guys, > [...SNIP...] > > I also experienced the same problem with DBD-Sybase. > I've investigated around and gotten the following results; > > The problem always occurs when we use any program which > is linked with the FreeBSD native version of open client library on > FreeBSD 4-stable or 5-current. However, this problem occurs only when > a server and a client is on the same host. > > A client on FreeBSD 4-stable or 5-current can connect to the ASE > server on any different host such as 3.4-RELEASE, 4-stable, 5-current > and even Linux or Solaris with no error. > > On FreeBSD 3.4-RELEASE, there is no problem. > > It's very funny. > > I've being debugging using gdb and devlib, which is included in > sybase-ocsd-10_0_4-FreeBSD-6_i386.tgz, but I've not be able to get any > useful information so far. > The problem may be in FreeBSD not the Sybase library? > > In summary, we should run a client on the different host from that a > server is running on if we want to use FreeBSD 4 or 5. > > Does anyone has any other experiences or knowledge about this problem? > > Hiro Hanai This is very valuable information. It seems likely to me that the only difference between contacting a local or remote server is the use of LOCAL domain sockets instead of INTERNET domain. I'va grovelled over one of the failing programs in gdb and came up with the following: (gdb) whe #0 0x28106796 in Com__Netkey () from /scratch/sybase/lib/libsybtcl.so #1 0x2810c33d in netg_connect_callback () from /scratch/sybase/lib/libsybtcl.so #2 0x2810c2ce in net_connect () from /scratch/sybase/lib/libsybtcl.so #3 0x2807d7bf in np__conn_doconnect () from /scratch/sybase/lib/libct.so #4 0x280e42e5 in com__async_runstack () from /scratch/sybase/lib/libcomn.so #5 0x280e41e4 in com__async_poll_state () from /scratch/sybase/lib/libcomn.so #6 0x280e402a in com__async_do_poll () from /scratch/sybase/lib/libcomn.so #7 0x280e3acb in com_async_poll () from /scratch/sybase/lib/libcomn.so #8 0x28093f06 in ct__api_connect_async () from /scratch/sybase/lib/libct.so #9 0x280941d0 in ct_connect () from /scratch/sybase/lib/libct.so #10 0x804b320 in main () at example1.cp:60 #11 0x8048fa1 in _start () (gdb) stepi 0x2810679b in Com__Netkey () from /scratch/sybase/lib/libsybtcl.so (gdb) whe #0 0x2810679b in Com__Netkey () from /scratch/sybase/lib/libsybtcl.so #1 0x80 in ?? () #2 0x2810c2ce in net_connect () from /scratch/sybase/lib/libsybtcl.so #3 0x2807d7bf in np__conn_doconnect () from /scratch/sybase/lib/libct.so #4 0x280e42e5 in com__async_runstack () from /scratch/sybase/lib/libcomn.so #5 0x280e41e4 in com__async_poll_state () from /scratch/sybase/lib/libcomn.so #6 0x280e402a in com__async_do_poll () from /scratch/sybase/lib/libcomn.so #7 0x280e3acb in com_async_poll () from /scratch/sybase/lib/libcomn.so #8 0x28093f06 in ct__api_connect_async () from /scratch/sybase/lib/libct.so #9 0x280941d0 in ct_connect () from /scratch/sybase/lib/libct.so #10 0x804b320 in main () at example1.cp:60 #11 0x8048fa1 in _start () So that last instruction trashes the stack. Once Com__Netkey returns, the program segfaults. I'll try the server on a separate box, and see if that helps. John -- Unreal City, Under the brown fog of a winter dawn, finger john@doorman.brann.org for pgp public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-database" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000802094610.A30026>