473,385 Members | 1,536 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,385 software developers and data experts.

Exception handler of RHEL4 isn't working after the integration ofboost Serialization code


After the integration of boost serialization code, the exceptions
are not at all getting caught in my application. Im building on RHEL4
kernel 2.6.9-42.ELsmp and gcc version is 4.0.2. The application
terminates when exception is thrown. Removing the serialization code
makes the exceptions getting caught.

The worst part is im not able to reproduce the scenario in a small
program.
Also i tried building the same application on suse8 machine. Even
with the boost serialization code exceptions are getting caught. Issue
is there only with RHEL4 build

Do anyone of you encountered this? Or can you point to any potential
mistake for which this can happen?
Is there any gcc flag that may help in this issue
Thank You
Girish
Feb 13 '08 #1
3 1510
Do anyone of you encountered this? Or can you point to any potential
mistake for which this can happen?
Is there any gcc flag that may help in this issue
One thought.

After an exception is thrown the stack is unwound.
During the unwinding the destructor of all stack objects is called.
If one of the destructors of these objects also throws an exception
then the application will terminate.

struct X
{
~X() {throw int(5);}
};

int main()
{
try
{
X a;
throw int(6);
}
catch(int e)
{
std::cout << "Cought\n"; // Never gets here.
}
std::cout << "Done\n";
}

Feb 13 '08 #2
Im having a simple scenario in my application
int x = 6;
try {
throw x;
}
catch(int p) {
cout << caught << endl;
}
This is not getting caught on RHEL4 + boost. But it does on suse8 +
boost

On Feb 13, 12:40 pm, Martin York <Martin.YorkAma...@gmail.comwrote:
Do anyone of you encountered this? Or can you point to any potential
mistake for which this can happen?
Is there any gcc flag that may help in this issue

One thought.

After an exception is thrown the stack is unwound.
During the unwinding the destructor of all stack objects is called.
If one of the destructors of these objects also throws an exception
then the application will terminate.

struct X
{
~X() {throw int(5);}

};

int main()
{
try
{
X a;
throw int(6);
}
catch(int e)
{
std::cout << "Cought\n"; // Never gets here.
}
std::cout << "Done\n";

}
Feb 13 '08 #3
gi*******@gmail.com wrote:
Im having a simple scenario in my application
int x = 6;
try {
throw x;
}
catch(int p) {
cout << caught << endl;
}
This is not getting caught on RHEL4 + boost. But it does on suse8 +
boost

Sounds implementation specific. I suggest either an RHEL group, the
BOOST mailing list, or gnu.g++.help
Feb 13 '08 #4

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

Similar topics

13
by: tolisss | last post by:
Hi i have setup a global exception handler b4 Application.Run like Application.ThreadException += new ThreadExceptionEventHandler(GlobalExceptionProcessing.AppThreadException ); then after...
3
by: Steve | last post by:
I've been following a couple remoting tutorials on the web, they are all pretty much the same. I've got my different applications built(client, server and remote object (dll)) The client is...
2
by: Seth | last post by:
Ok, here is my setup. I have a fully functioning HTTP Handler implemented. The handler is supposed to handle every single request that comes in to a particular virtual directory. Thus, in IIS, I...
1
by: Tim Anderson | last post by:
I have an app that uses the SOAP serializer to serialize and deserialize a object of a certain class to a file. The class implements ISerializable. From time to time it is necessary to add or...
0
by: stand__sure | last post by:
in re-reading something on .NET remoting I realized that I had done nothing with lease sponsorship and renewal. so, I dug around in msdn2 and found this topic...
0
by: dpp | last post by:
Hi I am calling a method of a .NET component from both win forms and web service applications. Strangly, it is working fine from win forms application, but when i call the same method (same...
4
by: Sharon | last post by:
Hi, I'm using the remoting, and I have a remoting object that has a public event that other processes should register to it. But when the client process is registering to the remote event, it...
6
by: semedao | last post by:
Hi All, I had working code that made custom serialization on objects that inherit from queue in the inherited queue I create my own GetObjectData: public void GetObjectData(SerializationInfo info,...
8
by: WT | last post by:
Is it normal that Visual Studio sets the PreInit handler for a Page from the OnInit code ? No chance to fire it as OnPreInit is run befor OnInit. ??? CS
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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
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: 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...

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.