473,805 Members | 1,956 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need Urgent Help

Hello ,

i am working on NetBSD 3.0.2 with gcc version 3.3.3 .
While debugging with gdb, i am getting a segmentation fault with
accept system call and gdb is showing following traceback.
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1229071456 (LWP 8798)]
0x00766402 in __kernel_vsysca ll ()
(gdb) bt
#0 0x00766402 in __kernel_vsysca ll ()
#1 0x00df4d88 in accept () from /lib/libpthread.so.0
#2 0x08057799 in run_server () at server.c:150
#3 0x08057f82 in main (argc=1, argv=0xbfbf5064 ) at main.c:160

Could anyone please suggest us what could have caused this
segmentation fault.

Aug 16 '07 #1
4 1713
On Aug 16, 12:36 pm, pycraze <dennis.vargh.. .@wipro.comwrot e:
Hello ,

i am working on NetBSD 3.0.2 with gcc version 3.3.3 .

While debugging with gdb, i am getting a segmentation fault with
accept system call and gdb is showing following traceback.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1229071456 (LWP 8798)]
0x00766402 in __kernel_vsysca ll ()
(gdb) bt
#0 0x00766402 in __kernel_vsysca ll ()
#1 0x00df4d88 in accept () from /lib/libpthread.so.0
#2 0x08057799 in run_server () at server.c:150
#3 0x08057f82 in main (argc=1, argv=0xbfbf5064 ) at main.c:160

Could anyone please suggest us what could have caused this
segmentation fault.
The same thing that always causes a segmentation fault: trying to use
memory that isn't yours or in a way that isn't allowed. Without
seeing the code it's impossible to give any more detail. Since you
mentioned BSD and are using system-specific functions your question
might be more appropriate for comp.unix.progr ammer where they
specialize in such systems.

Robert Gamble

Aug 16 '07 #2
pycraze wrote:
Hello ,

i am working on NetBSD 3.0.2 with gcc version 3.3.3 .
While debugging with gdb, i am getting a segmentation fault with
accept system call and gdb is showing following traceback.
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1229071456 (LWP 8798)]
0x00766402 in __kernel_vsysca ll ()
(gdb) bt
#0 0x00766402 in __kernel_vsysca ll ()
#1 0x00df4d88 in accept () from /lib/libpthread.so.0
#2 0x08057799 in run_server () at server.c:150
#3 0x08057f82 in main (argc=1, argv=0xbfbf5064 ) at main.c:160

Could anyone please suggest us what could have caused this
segmentation fault.
I think that you use not a thread-safe library.
Please, provide more info.
Aug 17 '07 #3
On Aug 16, 9:36 pm, pycraze <dennis.vargh.. .@wipro.comwrot e:
Hello ,

i am working on NetBSD 3.0.2 with gcc version 3.3.3 .

While debugging with gdb, i am getting a segmentation fault with
accept system call and gdb is showing following traceback.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1229071456 (LWP 8798)]
0x00766402 in __kernel_vsysca ll ()
(gdb) bt
#0 0x00766402 in __kernel_vsysca ll ()
#1 0x00df4d88 in accept () from /lib/libpthread.so.0
#2 0x08057799 in run_server () at server.c:150
#3 0x08057f82 in main (argc=1, argv=0xbfbf5064 ) at main.c:160

Could anyone please suggest us what could have caused this
segmentation fault.
Hi.

(a) Could you send the complete command line options including flags,
target, etc. what you are using to generate the exe.?

OR

Could you check (a) is being used properly with required library(s)
calls and flags during compilation.

I don't think you need to have any other big reasons of having SEGSEGV
error message..relax! !!!

BR
Mukesh K Srivastava

Aug 17 '07 #4
Ivan Gotovchits <iv************ *@auriga.ruwrot e:
pycraze wrote:
i am working on NetBSD 3.0.2 with gcc version 3.3.3 .

While debugging with gdb, i am getting a segmentation fault with
accept system call and gdb is showing following traceback.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1229071456 (LWP 8798)]
0x00766402 in __kernel_vsysca ll ()
(gdb) bt
#0 0x00766402 in __kernel_vsysca ll ()
#1 0x00df4d88 in accept () from /lib/libpthread.so.0
#2 0x08057799 in run_server () at server.c:150
#3 0x08057f82 in main (argc=1, argv=0xbfbf5064 ) at main.c:160

Could anyone please suggest us what could have caused this
segmentation fault.
I think that you use not a thread-safe library.
You don't need threads to get a segmentation fault (and there's
nothing here to indicate that the OP uses threads at all), it's
enough to have either memory corruption in your program or call
some library functions with wrong arguments (e.g. in another
thread somebody got a segmentation fault because he was passing
a NULL pointer to fclose()).
Please, provide more info.
That's definitely required to make any reasonable statements
beyond listing the "usual suspects".
Regards, Jens
--
\ Jens Thoms Toerring ___ jt@toerring.de
\______________ ____________ http://toerring.de
Aug 17 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2520
by: Jenny | last post by:
Need urgent help for an unsolved problem. In our ASP web application, we creat a Back button and if user click on this button, it execute history.go(-1) to go back to the previous page. All our users use IE 6.0 and most of them don't have problem with this button. But one user reported everytime he click on this button, there is a pop-up window shows up and ask him refresh and reload the page, after he clicks OK, the previous page will be...
3
1746
by: Rahul S. | last post by:
Hey all: I need urgent information how to set the environment in Visual.NET wiritng in C. I am working with a licensed version of the Analyze 6.0 software from mayo clinic. I need to write code in C using AVW functions that are licensed by Mayo clinic. In order to access the AVW library of functions, I need to set the
16
2974
by: | last post by:
Hi all, I have a website running on beta 2.0 on server 2003 web sp1 and I keep getting the following error:- Error In: http://www.mywebsite.org/WebResource.axd?d=5WvLfhnJp5Lc8WhQSD4gdA2&t=632614619884218750 -------------------------------------------------------------------------------- System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed. at...
15
4651
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to communicate with a MySQL database table on a web server, from inside of my company's Access-VBA application. I know VBA pretty well but have never before needed to do this HTTP/XML/MySQL type functions.
2
9099
by: Max Power | last post by:
Hi All I am coding a small app in that swaps specific files between a client and server. All files and locations are set at both sides. I want my app to show a file list, based on the file names, from the local and remote machine..... Local is not a problem and works OK. but I am trying :: Form1.getFile.FileName = Inet1.Execute("ftp://ftp.server.net", "DIR") and I
1
1461
by: TexCube | last post by:
Hello everyone, I have an urgent question. Can data be pulled from an access database table to create a directory that can be printed out and bound together? I need to have each row of a database populate a preset page that will be used as a classmate directory. Each page will have info pertinent to an individual classmate. (one page per classmate) I don't want to input the data into a form since it's already been done into an Excel...
10
2299
by: David Thielen | last post by:
Hi; I have help html pages for each page of my ASP.NET webapp. So for the page datasource.aspx, I have help\datasource.htm. Bu what I want when the hyperlink is clicked, for it to look for the following files in order (assuming I am running from the us): help\datasource_en_US.htm help\datasource_en.htm help\datasource.htm
0
1061
by: sanjayhire | last post by:
Hi All, I have just joined the forum. I need your help..As it's very urgent... How to identify a particular process is running on a server(Windows/Unix server) using VB program and since how long a process is running? Please help me out.. Thanks in advance.
1
2123
by: psantosh12 | last post by:
Hello Frnds Please need help to resolve error.......... it is very very urgent........ The error is Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. Details: To enable the details of...
5
2168
by: Justin | last post by:
Here's my XML: <?xml version="1.0" ?> <AppMode Type="Network"> <CurrentFolder Path="c:\tabs"> <Tabs> <FilePath>tabs\Justin.tab</FilePath> <FilePath>tabs\Julie.tab</FilePath> *****There could be 1 of these or 100....quantity can change***** </Tabs>
0
9716
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9596
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10607
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9182
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7645
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6875
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5541
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5677
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.