Date: Wed, 12 Dec 2001 01:40:02 -0800 (PST) From: "Lokendra Kr. Verma" <lokendra@npi.stpn.soft.net> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/32741: Getting segmentation fault in connect system call Message-ID: <200112120940.fBC9e2t58547@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/32741; it has been noted by GNATS. From: "Lokendra Kr. Verma" <lokendra@npi.stpn.soft.net> To: Sheldon Hearn <sheldonh@starjuice.net> Cc: Subject: Re: kern/32741: Getting segmentation fault in connect system call Date: Wed, 12 Dec 2001 14:54:51 +0530 This is a multi-part message in MIME format. --------------51864F3D17923FA69CB49467 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello sir, Thanx for quick response. I have already done it using gdb. Now i m sending u the detail which gdb is showing. //////////////////////////////////////////////////////////////////////// Running my client program without gdb following is the output. ***************************** /run 5555 before calling connect Segmentation fault (core dumped) ///////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////// Running my client program with gdb following is the output. ***************************** %gdb run 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"... (gdb) r 5555 Starting program: /home/lokendra/connecttesting/run 5555 Before calling connect Program received signal SIGSEGV, Segmentation fault. 0x280c7f46 in xdr_u_int () from /usr/lib/libc.so.4 (gdb) where #0 0x280c7f46 in xdr_u_int () from /usr/lib/libc.so.4 #1 0x280c86aa in xdr_bytes () from /usr/lib/libc.so.4 #2 0x280c877c in xdr_netobj () from /usr/lib/libc.so.4 #3 0x280ddfba in .cerror () from /usr/lib/libc.so.4 #4 0x2806589e in start () from /home/lokendra/connecttesting/./client.so #5 0x8048589 in main (argc=2, argv=0xbfbffb90) at main.c:10 #6 0x80484b5 in _start () /////////////////////////////////////////////////////////////////////////////////////////////////////// if u need files, i can send those tooooo. Thanx for yor reply and waiting yor reply. Regards Lokendra. Sheldon Hearn wrote: > On Wed, 12 Dec 2001 00:59:03 PST, "Lokendra Kr. Verma" wrote: > > > >Description: > > Sir, i m using freeBSD version 4.3. > > I m making .so library of my application. This application establish > > socket connection with remote machines. My problem is that when i link > > this .so library with my main program and call the function of .so > > library , i get segmentation fault on connect and inet_pton system > > calls. > > Since you're skilled enough to be building libraries and stuff, can't > you build your module with debugging symbols and use the debugger to > analyze your core dump? > > Ciao, > Sheldon. --------------51864F3D17923FA69CB49467 Content-Type: text/x-vcard; charset=us-ascii; name="lokendra.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Lokendra Kr. Verma Content-Disposition: attachment; filename="lokendra.vcf" begin:vcard n:Verma;Lokendra Kr. tel;work:Network Management Systems (NPI) x-mozilla-html:FALSE adr:;;;;;; version:2.1 email;internet:lokendra@npi.stpn.soft.net fn:Lokendra Kr. Verma end:vcard --------------51864F3D17923FA69CB49467-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200112120940.fBC9e2t58547>