473,407 Members | 2,598 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

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_vsyscall ()
(gdb) bt
#0 0x00766402 in __kernel_vsyscall ()
#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 1693
On Aug 16, 12:36 pm, pycraze <dennis.vargh...@wipro.comwrote:
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_vsyscall ()
(gdb) bt
#0 0x00766402 in __kernel_vsyscall ()
#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.programmer 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_vsyscall ()
(gdb) bt
#0 0x00766402 in __kernel_vsyscall ()
#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.comwrote:
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_vsyscall ()
(gdb) bt
#0 0x00766402 in __kernel_vsyscall ()
#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.ruwrote:
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_vsyscall ()
(gdb) bt
#0 0x00766402 in __kernel_vsyscall ()
#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
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...
3
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...
16
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:...
15
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...
2
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...
1
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...
10
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...
0
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...
1
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...
5
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...

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.