From owner-freebsd-bugs Wed Dec 12 1: 0: 7 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 1715C37B416 for ; Wed, 12 Dec 2001 01:00:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fBC901014872; Wed, 12 Dec 2001 01:00:01 -0800 (PST) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 3263A37B405 for ; Wed, 12 Dec 2001 00:59:03 -0800 (PST) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fBC8x3N13976; Wed, 12 Dec 2001 00:59:03 -0800 (PST) (envelope-from nobody) Message-Id: <200112120859.fBC8x3N13976@freefall.freebsd.org> Date: Wed, 12 Dec 2001 00:59:03 -0800 (PST) From: "Lokendra Kr. Verma" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: kern/32741: Getting segmentation fault in connect system call Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 32741 >Category: kern >Synopsis: Getting segmentation fault in connect system call >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Dec 12 01:00:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Lokendra Kr. Verma >Release: freeBSD 4.3 >Organization: Network Programs(India) >Environment: FRee BSD YokoBSD.npi.stpn.soft.net 4.3-RELEASE FreeBSD #0: Sat Apr 21 10:54:49 GMT 2001 jkh@narf.osd.bsdi.com:/usr/src/sys/compile/GENERIC i386 >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. Instead of making .so library if i make the exe of my application and then i do not get any segmentation fault. Help me sir or suggest me somebody who can help me out. I say thanx in advance. Lokendra >How-To-Repeat: To repeat the problems, i have written simple client server programs for the socket communication. Instead of making exe of both the programs i have build (client.so and server.so) .so libraries separatly. Now for both the library i have written main function which calls the initial function of .so library. now when i run server program i get segmentation fault in accept system call and when i run client program i get segmentation fault in connect system call. I can send u the files which will make u understand the problem better. >Fix: i do not know. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message