Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Dec 2001 00:59:03 -0800 (PST)
From:      "Lokendra Kr. Verma" <lokendra@npi.stpn.soft.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/32741: Getting segmentation fault in connect system call
Message-ID:  <200112120859.fBC8x3N13976@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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




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