473,405 Members | 2,262 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,405 software developers and data experts.

Stack overflow in function ...

Hi All,

I recently started using syslog to record system messages and statuses. I
have been programming in C for years and always used my own system logging
(business requirement). Now that I am using syslog for this new product,
I'm getting these stack overflow messages in the message log file. Does
anyone have any idea why these stack overflow messages are happening? It
doesn't seem to be killing my program when it does it.

Any help would be appreciated.

Jim
Nov 14 '05 #1
12 1700
Jim Lambert wrote:
Hi All,

I recently started using syslog to record system messages and
statuses. I have been programming in C for years and always used my
own system logging (business requirement). Now that I am using
syslog for this new product, I'm getting these stack overflow
messages in the message log file. Does anyone have any idea why
these stack overflow messages are happening? It doesn't seem to be
killing my program when it does it.

Any help would be appreciated.

Jim


BTW, this is on an OpenBSD 3.3 system.

Jim
Nov 14 '05 #2
Jim Lambert <ja*********@futrx.com> spoke thus:
I recently started using syslog to record system messages and statuses. I
etc.


Your post is off-topic for comp.lang.c. Please visit

http://benpfaff.org/writings/clc/off-topic.html
http://www.eskimo.com/~scs/C-faq/top.html

for posting guidelines and frequently asked questions. Thank you.

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
Nov 14 '05 #3
Christopher Benson-Manica wrote:
Jim Lambert <ja*********@futrx.com> spoke thus:
I recently started using syslog to record system messages and
statuses. I etc.


Your post is off-topic for comp.lang.c. Please visit

http://benpfaff.org/writings/clc/off-topic.html
http://www.eskimo.com/~scs/C-faq/top.html

for posting guidelines and frequently asked questions. Thank you.


Anyone know of a newsgroup with people who will help me with a C problem I
am having instead of being pedantic asses?

Thanks,

Jim
Nov 14 '05 #4
Jim Lambert <ja*********@futrx.com> scribbled the following:
Christopher Benson-Manica wrote:
Jim Lambert <ja*********@futrx.com> spoke thus:
I recently started using syslog to record system messages and
statuses. I etc.
Your post is off-topic for comp.lang.c. Please visit

http://benpfaff.org/writings/clc/off-topic.html
http://www.eskimo.com/~scs/C-faq/top.html

for posting guidelines and frequently asked questions. Thank you.

Anyone know of a newsgroup with people who will help me with a C problem I
am having instead of being pedantic asses?


What makes you think you have a C problem? Your problem seems to be with
FreeBSD. Programming languages and operating systems are different
things.
And if you think Christopher was a pedantic ass, you haven't seen
anything yet, believe me.

--
/-- Joona Palaste (pa*****@cc.helsinki.fi) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"It's time, it's time, it's time to dump the slime!"
- Dr. Dante
Nov 14 '05 #5
Joona I Palaste <pa*****@cc.helsinki.fi> scribbled the following:
Jim Lambert <ja*********@futrx.com> scribbled the following:
Christopher Benson-Manica wrote:
Jim Lambert <ja*********@futrx.com> spoke thus:
I recently started using syslog to record system messages and
statuses. I etc.

Your post is off-topic for comp.lang.c. Please visit

http://benpfaff.org/writings/clc/off-topic.html
http://www.eskimo.com/~scs/C-faq/top.html

for posting guidelines and frequently asked questions. Thank you.
Anyone know of a newsgroup with people who will help me with a C problem I
am having instead of being pedantic asses?
What makes you think you have a C problem? Your problem seems to be with
FreeBSD. Programming languages and operating systems are different
things.
And if you think Christopher was a pedantic ass, you haven't seen
anything yet, believe me.


Sorry, I meant OpenBSD, not FreeBSD.

--
/-- Joona Palaste (pa*****@cc.helsinki.fi) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"It sure is cool having money and chicks."
- Beavis and Butt-head
Nov 14 '05 #6
Joona I Palaste wrote:
Joona I Palaste <pa*****@cc.helsinki.fi> scribbled the following:
Jim Lambert <ja*********@futrx.com> scribbled the following:
Christopher Benson-Manica wrote:
Jim Lambert <ja*********@futrx.com> spoke thus:
> I recently started using syslog to record system messages and
> statuses. I etc.

Your post is off-topic for comp.lang.c. Please visit

http://benpfaff.org/writings/clc/off-topic.html
http://www.eskimo.com/~scs/C-faq/top.html

for posting guidelines and frequently asked questions. Thank you. Anyone know of a newsgroup with people who will help me with a C
problem I am having instead of being pedantic asses?

What makes you think you have a C problem? Your problem seems to be
with FreeBSD. Programming languages and operating systems are
different things.
And if you think Christopher was a pedantic ass, you haven't seen
anything yet, believe me.


Sorry, I meant OpenBSD, not FreeBSD.


I understand about off-topic posts and do know that they are sometimes a
problem. What I have a problem with is people like Benson who can't wait
for some poor schmuck to show up with an off-topic post so they can
"correct" that person. Why not just ignore the message? Isn't the point of
not having off-topic posts to keep the post count down? So why add
yet-another-off-topic-post about an off-topic post?

He posted one response post to my post. It would have been just as easy for
him to answer the question or send me to a newsgroup he thought might answer
the question. Instead he was an ass. It wouldn't have increased the post
count at all and his ranting was probably a longer message than the answer
would have been.

I had a problem and after trying to resolve it and searching google, I
decided to post on the one newsgroup that I thought would be most helpful in
solving the problem. Heck it IS a C program I am having problems with.

Jim

Nov 14 '05 #7
Jim Lambert <ja*********@futrx.com> scribbled the following:
Joona I Palaste wrote:
Joona I Palaste <pa*****@cc.helsinki.fi> scribbled the following:
Jim Lambert <ja*********@futrx.com> scribbled the following:
Christopher Benson-Manica wrote:
> Jim Lambert <ja*********@futrx.com> spoke thus:
>> I recently started using syslog to record system messages and
>> statuses. I etc.
This is what Christopher Benson-Manica wrote:
Your post is off-topic for comp.lang.c. Please visit
>
> http://benpfaff.org/writings/clc/off-topic.html
> http://www.eskimo.com/~scs/C-faq/top.html
>
> for posting guidelines and frequently asked questions. Thank you.
Anyone know of a newsgroup with people who will help me with a C
problem I am having instead of being pedantic asses?

I understand about off-topic posts and do know that they are sometimes a
problem. What I have a problem with is people like Benson who can't wait
for some poor schmuck to show up with an off-topic post so they can
"correct" that person. Why not just ignore the message? Isn't the point of
not having off-topic posts to keep the post count down? So why add
yet-another-off-topic-post about an off-topic post? He posted one response post to my post. It would have been just as easy for
him to answer the question or send me to a newsgroup he thought might answer
the question. Instead he was an ass. It wouldn't have increased the post
count at all and his ranting was probably a longer message than the answer
would have been.


Please point out exactly *where* Christopher was being an ass. All I
can see is him politely telling you you are off-topic and where to find
posting guidelines. Believe it or not, posting guidelines are not
personal insults.

--
/-- Joona Palaste (pa*****@cc.helsinki.fi) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"Insanity is to be shared."
- Tailgunner
Nov 14 '05 #8
Jim Lambert wrote:

Christopher Benson-Manica wrote:
Jim Lambert <ja*********@futrx.com> spoke thus:
I recently started using syslog to record system messages and
statuses. I etc.


Your post is off-topic for comp.lang.c. Please visit

http://benpfaff.org/writings/clc/off-topic.html
http://www.eskimo.com/~scs/C-faq/top.html

for posting guidelines and frequently asked questions. Thank you.


Anyone know of a newsgroup with people who
will help me with a C problem I
am having instead of being pedantic asses?


The "Welcome" message contains hints and links to
better suited newsgroups.

http://www.csclub.uwaterloo.ca/u/dj3...lc-welcome.txt

--
pete
Nov 14 '05 #9
Joona I Palaste wrote:
Jim Lambert <ja*********@futrx.com> scribbled the following:
Joona I Palaste wrote:
Joona I Palaste <pa*****@cc.helsinki.fi> scribbled the following:
Jim Lambert <ja*********@futrx.com> scribbled the following:
> Christopher Benson-Manica wrote:
>> Jim Lambert <ja*********@futrx.com> spoke thus:
>>> I recently started using syslog to record system messages and
>>> statuses. I etc.
This is what Christopher Benson-Manica wrote:
Your post is off-topic for comp.lang.c. Please visit
>>
>> http://benpfaff.org/writings/clc/off-topic.html
>> http://www.eskimo.com/~scs/C-faq/top.html
>>
>> for posting guidelines and frequently asked questions. Thank
>> you.

> Anyone know of a newsgroup with people who will help me with a C
> problem I am having instead of being pedantic asses?

I understand about off-topic posts and do know that they are
sometimes a problem. What I have a problem with is people like
Benson who can't wait for some poor schmuck to show up with an
off-topic post so they can "correct" that person. Why not just
ignore the message? Isn't the point of not having off-topic posts
to keep the post count down? So why add yet-another-off-topic-post
about an off-topic post?

He posted one response post to my post. It would have been just as
easy for him to answer the question or send me to a newsgroup he
thought might answer the question. Instead he was an ass. It
wouldn't have increased the post count at all and his ranting was
probably a longer message than the answer would have been.


Please point out exactly *where* Christopher was being an ass. All I
can see is him politely telling you you are off-topic and where to
find posting guidelines. Believe it or not, posting guidelines are not
personal insults.


LOL. I've been corrected. I guess he was just trying to be a nice guy and
help me out.

Anyway, sorry for the bandwidth use. This will be my last post on this
subject.

Regards,

Jim
Nov 14 '05 #10
Jim Lambert wrote:

I recently started using syslog to record system messages and
statuses. I have been programming in C for years and always used
my own system logging (business requirement). Now that I am
using syslog for this new product, I'm getting these stack
overflow messages in the message log file. Does anyone have any
idea why these stack overflow messages are happening? It doesn't
seem to be killing my program when it does it.


I don't know the answer, but one possibility occurs to me. Your
system inherently assigns a small and economical stack, and
expands it whenever it overflows. The log messages clue you in to
this occurence. Maybe you want to look more closely at local
variables in some functions that are getting called recursively.

Did you get (and never examine or enable) the same messages in the
syslog file for earlier applications?

--
Chuck F (cb********@yahoo.com) (cb********@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!
Nov 14 '05 #11
Jim Lambert wrote:
.... snip ...
I had a problem and after trying to resolve it and searching
google, I decided to post on the one newsgroup that I thought
would be most helpful in solving the problem. Heck it IS a C
program I am having problems with.


I mistakenly and absent mindedly made a suggestion earlier, which
I now regret in the light of your excessive protests against being
redirected. Had you taken the trouble to lurk, read the welcome
message and the faq, you would have found a suitable elsewhere
with zero traffic.

--
Chuck F (cb********@yahoo.com) (cb********@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!
Nov 14 '05 #12
CBFalconer wrote:
Jim Lambert wrote:

I recently started using syslog to record system messages and
statuses. I have been programming in C for years and always used
my own system logging (business requirement). Now that I am
using syslog for this new product, I'm getting these stack
overflow messages in the message log file. Does anyone have any
idea why these stack overflow messages are happening? It doesn't
seem to be killing my program when it does it.


I don't know the answer, but one possibility occurs to me. Your
system inherently assigns a small and economical stack, and
expands it whenever it overflows. The log messages clue you in to
this occurence. Maybe you want to look more closely at local
variables in some functions that are getting called recursively.

Did you get (and never examine or enable) the same messages in the
syslog file for earlier applications?


Thank you, thank you! I appreciate it. I had defined a variable too many
times and I was overflowing the stack.

Thanks again,

Jim

Nov 14 '05 #13

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

Similar topics

3
by: ip4ram | last post by:
I am quite puzzled by the stack overflow which I am encountering.Here is the pseudocode //define stack structure //function operating on stack void my_stack_function( function parameters) {...
7
by: Aguilar, James | last post by:
Hello all, To begin, yes, this -is- a homework assignment. However, it is for my Algorithms class, and my instructor has given us explicit permission to use "expert" groups like newsgroups, so...
19
by: Jim | last post by:
I have spent the past few weeks designing a database for my company. The problem is I have started running into what I believe are stack overflow problems. There are two tab controls on the form...
4
by: Victor | last post by:
Hello, I've got a situation in which the number of (valid) recursive calls I make will cause stack overflow. I can use getrlimit (and setrlimit) to test (and set) my current stack size. ...
2
by: David W. Walker | last post by:
I am attempting to port a C code that runs OK on a number of Linux and Unix machines to Windows XP using Visual Studio C++. I have set the program up as a console application, but when I try to run...
6
by: Daz | last post by:
Hi everyone! It is indeed, once again time for me to ask another stupid question. I have been searching around on the net for quite a while, and can't find anything that explains 'exactly'...
8
by: Geoff Cox | last post by:
Hello, When using Internet Explorer, on networked PCs in a college, to view a page of mine with Javascript code in it the "stack overflow" error message appears. When I access the same file...
24
by: John | last post by:
I know this is a very fundamental question. I am still quite confused if the program call stack stack should always grows upwards from the bottom, or the opposite, or doesn't matter?? That means...
7
by: amit.atray | last post by:
Environement : Sun OS + gnu tools + sun studio (dbx etc) having some Old C-Code (ansi + KR Style) and code inspection shows some big size variable (auto) allocated (on stack) say for ex. char...
3
by: jack113256 | last post by:
Hi everyone: I have a question in using Callback function, there is my code: /******* code start *********/ #include <stdio.h> void a(); void b(); void run();
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
0
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...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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.