C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Suprising seg fault!!!

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
Vinod
Guest





PostPosted: Sat Sep 27, 2003 5:13 am    Post subject: Suprising seg fault!!! Reply with quote



Hi!!

I am having a very strange problem with my C++ code.

I am developing a simulator which converts a source language into
intermediate code (C++). This code when compiled with a library
API(C++) creates a final executable. The executable shows the behavior
of the simulator.

The problem that I am currently facing is that the executable seg
faults based on the directory in which i compile the intermediate
code.

I am using libtools so I do not expect any linking problems. Infact I
donot have any errors during compilation/linking stage. The
intermediate code when compiled always produces the executable. I do
both the intermediate code generation and compilation in the same
directory. When I do these 2 steps in directory A it works. However it
fails when I do the same in directory B. How is this possible???

Thanks in advance for your reply.

Vinod Chamarty
Back to top
Kevin Goodsell
Guest





PostPosted: Sat Sep 27, 2003 5:30 am    Post subject: Re: Suprising seg fault!!! Reply with quote



Vinod wrote:

Quote:
Hi!!

I am having a very strange problem with my C++ code.

I am developing a simulator which converts a source language into
intermediate code (C++). This code when compiled with a library
API(C++) creates a final executable. The executable shows the behavior
of the simulator.

The problem that I am currently facing is that the executable seg
faults based on the directory in which i compile the intermediate
code.

I am using libtools so I do not expect any linking problems. Infact I
donot have any errors during compilation/linking stage. The
intermediate code when compiled always produces the executable. I do
both the intermediate code generation and compilation in the same
directory. When I do these 2 steps in directory A it works. However it
fails when I do the same in directory B. How is this possible???

Thanks in advance for your reply.

I can't see any way that this could possibly be related to the C++
language. It seems to be an issue with your development tools.

http://www.slack.net/~shiva/welcome.txt
http://www.slack.net/~shiva/offtopic.txt

-Kevin
--
My email address is valid, but changes periodically.
To contact me please use the address from a recent posting.


Back to top
Mike Wahler
Guest





PostPosted: Sat Sep 27, 2003 6:24 am    Post subject: Re: [OT] Suprising seg fault!!! Reply with quote



"Vinod" <vchamarty (AT) yahoo (DOT) com> wrote

Quote:
Hi!!

I am having a very strange problem with my C++ code.

But you don't describe anything about C++.

Quote:
When I do these 2 steps in directory A it works. However it
fails when I do the same in directory B. How is this possible???

Directory A is for applications with (A)wesome performance.

Directory B is for applications which (B)omb when launched
from there.

Quote:
Thanks in advance for your reply.

Thanks in advance for reading:
http://www.slack.net/~shiva/welcome.txt
before posting here again.

-Mike
Blame it on the seg. Yeah, that's it, it's the seg's fault.



Back to top
Ron Natalie
Guest





PostPosted: Sat Sep 27, 2003 2:43 pm    Post subject: Re: Suprising seg fault!!! Reply with quote


"Vinod" <vchamarty (AT) yahoo (DOT) com> wrote


Quote:
I am developing a simulator which converts a source language into
intermediate code (C++). This code when compiled with a library
API(C++) creates a final executable. The executable shows the behavior
of the simulator.

This is often a feature of some miscoding that leads to something that in the C++
language is "undefined behavior." One of the insidious problems with undefined
behavior is that it works normally in some cases and not in others.




Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.