Hi? My name is Seo Jae Ick.
I have a problem with running a program on Linux RedHat 8.0.
GDB have reported this,
program exited with code 0377
I think, this statement comes when
1) explicit call in process exit(-1) <- 0377(octet) = -1(decimal)
2) return -1 in main function
(any other case exists?)
I have searched exit(-1)in whole codes, but not exists.
And I changed main function's return value to another number (like 128)
Finally, I added exit handler, ExitHandler by calling atexit(ExitHand ler)
But, gdb reports same statement(progr am exited with code 0377)
and, breakpoint in ExitHandler skipped.
Somebody knows the reason of this problem?
Thanks in advance!
Seo Jae Ick 5 42626
On 14 Feb 2004 20:31:31 -0800, in comp.lang.c , se*******@hotma il.com (Seo
Jae Ick) wrote: Hi? My name is Seo Jae Ick.
I have a problem with running a program on Linux RedHat 8.0. GDB have reported this,
program exited with code 0377
I think, this statement comes when
1) explicit call in process exit(-1) <- 0377(octet) = -1(decimal) 2) return -1 in main function
(any other case exists?)
your program crashed, and returned garbage to teh OS, which decided to
interpret it as meaning -1.
Somebody knows the reason of this problem?
You have a bug in your program. You need to find the bug, and fix it.
Narrow down the location, post a (small) piece of code that causes the
crash, and maybe someone here can help fix it.
--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.angelfire.c om/ms3/bchambless0/welcome_to_clc. html>
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Mark McIntyre <ma**********@s pamcop.net> wrote in message news:<41******* *************** **********@4ax. com>... On 14 Feb 2004 20:31:31 -0800, in comp.lang.c , se*******@hotma il.com (Seo Jae Ick) wrote:
Hi? My name is Seo Jae Ick.
I have a problem with running a program on Linux RedHat 8.0. GDB have reported this,
program exited with code 0377
I think, this statement comes when
1) explicit call in process exit(-1) <- 0377(octet) = -1(decimal) 2) return -1 in main function
(any other case exists?)
your program crashed, and returned garbage to teh OS, which decided to interpret it as meaning -1.
Somebody knows the reason of this problem?
You have a bug in your program. You need to find the bug, and fix it. Narrow down the location, post a (small) piece of code that causes the crash, and maybe someone here can help fix it.
-- Mark McIntyre CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html> CLC readme: <http://www.angelfire.c om/ms3/bchambless0/welcome_to_clc. html>
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups ---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
If my program crashed, isn't signal SIGSEGV sent to that program?
SIGSEGV didn't be caughed.
Thank you for your kind advice, Mark!
On 15 Feb 2004 07:50:52 -0800, in comp.lang.c , se*******@hotma il.com (Seo
Jae Ick) wrote: Mark McIntyre <ma**********@s pamcop.net> wrote in message news:<41******* *************** **********@4ax. com>... On 14 Feb 2004 20:31:31 -0800, in comp.lang.c , se*******@hotma il.com (Seo Jae Ick) wrote:
>Hi? My name is Seo Jae Ick. > >I have a problem with running a program on Linux RedHat 8.0. >GDB have reported this, > >program exited with code 0377 >
.... >Somebody knows the reason of this problem? You have a bug in your program.
....If my program crashed, isn't signal SIGSEGV sent to that program?
Possibly. The behavioru of the OS when you have a bug is not defined by C.
Its equally possible that the first thingf that gdb does when you load it
is look for a core dump, and tell you what the core dumped for.
But if you /reeally/ want to find out, you need to ask in a group
specialising in whatever OS and Compiler you're using.
--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.angelfire.c om/ms3/bchambless0/welcome_to_clc. html>
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Mark McIntyre <ma**********@s pamcop.net> wrote in message news:<hm******* *************** **********@4ax. com>... On 15 Feb 2004 07:50:52 -0800, in comp.lang.c , se*******@hotma il.com (Seo Jae Ick) wrote:
Mark McIntyre <ma**********@s pamcop.net> wrote in message news:<41******* *************** **********@4ax. com>... On 14 Feb 2004 20:31:31 -0800, in comp.lang.c , se*******@hotma il.com (Seo Jae Ick) wrote:
>Hi? My name is Seo Jae Ick. > >I have a problem with running a program on Linux RedHat 8.0. >GDB have reported this, > >program exited with code 0377 > ... >Somebody knows the reason of this problem?
You have a bug in your program. ...If my program crashed, isn't signal SIGSEGV sent to that program?
Possibly. The behavioru of the OS when you have a bug is not defined by C.
Its equally possible that the first thingf that gdb does when you load it is look for a core dump, and tell you what the core dumped for.
But if you /reeally/ want to find out, you need to ask in a group specialising in whatever OS and Compiler you're using.
Hello, Mark!
Here is my system's information
OS: RedHat Linux 8.0 (Psyche) Kernel(2.4.18-14smp)
Compiler: gcc 3.2-7
Debugger: gdb-5.2.1-4
Though I can't fix this problem still, thank you for your help.
Seo Jae Ick
Mark McIntyre <ma**********@s pamcop.net> wrote in message news:<hm******* *************** **********@4ax. com>... On 15 Feb 2004 07:50:52 -0800, in comp.lang.c , se*******@hotma il.com (Seo Jae Ick) wrote:
Mark McIntyre <ma**********@s pamcop.net> wrote in message news:<41******* *************** **********@4ax. com>... On 14 Feb 2004 20:31:31 -0800, in comp.lang.c , se*******@hotma il.com (Seo Jae Ick) wrote:
>Hi? My name is Seo Jae Ick. > >I have a problem with running a program on Linux RedHat 8.0. >GDB have reported this, > >program exited with code 0377 > ... >Somebody knows the reason of this problem?
You have a bug in your program. ...If my program crashed, isn't signal SIGSEGV sent to that program?
Possibly. The behavioru of the OS when you have a bug is not defined by C.
Its equally possible that the first thingf that gdb does when you load it is look for a core dump, and tell you what the core dumped for.
But if you /reeally/ want to find out, you need to ask in a group specialising in whatever OS and Compiler you're using.
Ah, I misunderstood your comment.
I'll try to get answer from linux os newsgroup.
(of course try to fix problem by myself also)
Have a nice day!
Seo Jae Ick This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: fastwings |
last post by:
mm the code
//////makemenu.h////
class menu {
public:
int op;
pmenu(int op,int sub = 0)
{
switch op
{
|
by: 1111111111 |
last post by:
I am writing a program that tells users to enter 2 sides of a
rectangle. From that the program will output a drwaing of the
rectangle using "*"'s... Here is my problem. Say I enter 5 and 10 for
the 2 sides.. This is what is output.
********** *
* *
* *
* *
**********
|
by: Piyu |
last post by:
Hi
I have problem with javascript code. Following is my code
<div class="col1"><input name="loginName" type="text" class="txtbox" value="collins_sd@hotmail.com"></div>
<div class="col1"><input name="password" type="password" class="txtbox" value="collins"></div>
<div class="go_but"><a name="bttngo" href="#" onclick="return checkLogin();">GO »</a></div>
i want when i put password and press enter it should go to...
|
by: Raj |
last post by:
Following is a code to replace blanks in entered string with adequate
number of tabs & spacings as required. I've taken the width of tab as
5 characters here. The problem that occurs here is for the 2nd set of
blanks onwards, i.e. blanks after 2 words. For such blanks, the output
shows 1blank less than what has been entered in input. For 1st set of
blanks there is no problem, but for each successive set of blanks one
less blank is shown in...
|
by: Ali Rizwan |
last post by:
Hi all,
i m having a problem with this code.
Actually i want to refresh connection by closing and opening it.
But the problem is that it do well when i update once but when i update it once more it gives me an error of
Microsoft jet database engine cannot find the input table or query 'Command1'. Make sure it exists and that its name is spelled correctely.
Private Sub Command1_Click()
Adodc1.Recordset.AddNew 0,...
| |
by: paul814 |
last post by:
I am having a bit of a problem with some code....can someone give me
some suggestions?
Parse error: syntax error, unexpected '{' in C:\xampp\htdocs\production
\date2.php on line 28
line 28 is this line:
while($row = mysql_fetch_array(mysql_query($sql)) {
It is the first while..
|
by: thatos |
last post by:
I was requested to make a code for the following question
write a program that will compute the frequency that the 13th of each month lands on sunday,monday,tuesday,wednesday,thursday,friday and saturday over a given period of N years.
input format: must read a single integer from file friday.in
output format: must write the following in file friday.out ; seven space separated integers on one line.These intergers represent the number of times...
|
by: ramu |
last post by:
Hi,
Is there any problem with the following code?
Regards
char *func()
{
char c;
return (&c);
}
|
by: fury30 |
last post by:
this is the program as below and now what i need to do is add the following to it but i am not able to get how to do it
# futval.py
# A program to compute the value of an investment
# carried 10 years into the future
def main():
print "This program calculates the future value"
print "of a 10 year investment."
|
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...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
| |
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |