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

vc8.0 crash while compiling boost-1.33.1 serialization library with /analyze

VC8.0 crashes while compiling boost-1.33.1 serialization library (or any
other library that includes the serialization headers) if code analysis
(/analyze) is enabled. This problem did not occur with prior beta releases
of boost-1.33.1 or with the VC8.0 beta. You may want to consider whether
the crash of a dependent tool should be allowed to cause the entire VC8 IDE
to hang or whether this might be a design defect. Given the recent price
increases I respectfully suggest that you fix this problem.

Regards,

George.
Dec 9 '05 #1
6 1736
>VC8.0 crashes while compiling boost-1.33.1 serialization library (or any
other library that includes the serialization headers) if code analysis
(/analyze) is enabled.


George,

If you've not done so already, please submit a bug report on this at:

http://lab.msdn.microsoft.com/productfeedback/

Dave
Dec 10 '05 #2
Yes, please do submit a report. Specifically, we'll need to know what
headers you're including, and what compiler options you're using. I tried
the obvious repro (cl /c /analyze foo.cpp, where all foo.cpp does is
#include <boost/serialization/serialization.hpp>, and it compiled OK. I'm
probably just missing some switches or headers that you're using, though.

-Dave

"David Lowndes" <Da****@example.invalid> wrote in message
news:nq********************************@4ax.com...
VC8.0 crashes while compiling boost-1.33.1 serialization library (or any
other library that includes the serialization headers) if code analysis
(/analyze) is enabled.


George,

If you've not done so already, please submit a bug report on this at:

http://lab.msdn.microsoft.com/productfeedback/

Dave

Dec 10 '05 #3
Dave,

I bugged it. The steps to reproduce are below. Note that I am running cl
from the IDE and not from the command line so perhaps the problem is with
the IDE and not cl. Also, make sure that you have the release version of
boost-1.33.1 as this bug cannot be reproduced on earlier betas or release
candidates. These steps are reproducible here so it should work for you as
well.

Regards,

George.

P.S. Code analysis caught some latent bugs in the regex library so it is
really useful when it works.

1. Dowload and install boost-1.33.1 from
http://prdownloads.sourceforge.net/b...r.bz2?download.
Make sure that you have the release version of boost-1.33.1. This problem
cannot be reproduced on earlier beta versions of boost.

2. Install Visual Studio 2005 Team Edition for Software Developers.

3. Open the VS IDE. From the file menu click OPEN Project and navigate to
boost_1_33_1\libs\serialization\vc7ide and open
BoostSerializationLibrary.sln.

4. When prompted select to upgrade the solution to VS8.0 and follow the
prompts until the project is upgraded.

5. In the Solution Configuration combo box select "Debug dynamic"

6. Right click on the "Library" project in solution explorer and select
"Code Analysis for C++" from the Advanced tab of the property sheet.

7. Repeat step 6 for the "LibraryW" project.

8. Right click on the "Library" project and select build.

9. Right click on the "LibraryW" project and select build. Crash will while
building LibraryW project.

"Dave Bartolomeo [MSFT]" <Da*************@nospam.microsoft.com> a écrit dans
le message de news: uD**************@TK2MSFTNGP11.phx.gbl...
Yes, please do submit a report. Specifically, we'll need to know what
headers you're including, and what compiler options you're using. I tried
the obvious repro (cl /c /analyze foo.cpp, where all foo.cpp does is
#include <boost/serialization/serialization.hpp>, and it compiled OK. I'm
probably just missing some switches or headers that you're using, though.

-Dave

"David Lowndes" <Da****@example.invalid> wrote in message
news:nq********************************@4ax.com...
>VC8.0 crashes while compiling boost-1.33.1 serialization library (or any
other library that includes the serialization headers) if code analysis
(/analyze) is enabled.


George,

If you've not done so already, please submit a bug report on this at:

http://lab.msdn.microsoft.com/productfeedback/

Dave


Dec 10 '05 #4
George M. Garner Jr. wrote:
Dave,

I bugged it. The steps to reproduce are below. Note that I am
running cl from the IDE and not from the command line so perhaps the
problem is with the IDE and not cl. Also, make sure that you have
the release version of boost-1.33.1 as this bug cannot be reproduced
on earlier betas or release candidates. These steps are reproducible
here so it should work for you as well.


Here's the link to the bug:

http://lab.msdn.microsoft.com/Produc...ckId=FDBK42095

I was able to repro it as well - added my validation & vote to the bug
report.

I also found a workaround - build from the command line with vcbuild. I'm
guessing that the IDE is choking on the gigantic warning messages that
compiling this code produces.

-cd
Dec 10 '05 #5
Carl,

The crash doesn't occur when building with vcbuild instead of the IDE. When building this project, the compiler emits some extremely long warnings (100's or perhaps 1000's of lines of text for a single warning due to the lengthy template instantiation stack). It looks like the IDE is choking on the gigantic amount of text being stuffed into it by the

compiler. <

That sounds like a classic heap or stack-based buffer overflow. The
real question is why the IDE (or cl) doesn't check the size of the buffer
that is passed to it. I thought that code analysis and the new SL was
supposed to put an end to this sort of thing.

Regards,

George.
Dec 10 '05 #6
George M. Garner Jr. wrote:
Carl,

> The crash doesn't occur when building with vcbuild instead of

the IDE. When building this
> project, the compiler emits some extremely long warnings

(100's or perhaps 1000's of lines of
> text for a single warning due to the lengthy template

instantiation stack). It looks like the IDE is
> choking on the gigantic amount of text being stuffed into it

by the compiler. <

That sounds like a classic heap or stack-based buffer overflow. The
real question is why the IDE (or cl) doesn't check the size of
the buffer that is passed to it. I thought that code analysis and
the new SL was supposed to put an end to this sort of thing.


It could be a buffer overflow, but the flow from CL to the IDE is via a
named pipe, not memory buffers. On the other hand, it could be that
something about the IDE architecture limits the rate at which it can accept
input. Or it may be that the error message parser has an inherent
limitation that makes it unable to eat a single warning that's a megabyte
long. Who knows :) IIRC, there were other similar bugs in the error
window parsing that were reported during the beta, but apparently at least
one survived.

-cd
Dec 10 '05 #7

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

Similar topics

5
by: Lars Schouw | last post by:
I have downloaded the newest boos release. I am havng problems building boost using the intel C++ 8.0 compiler. It looks as if bjam can't fine the icl.exe compiler executable itself. This file is...
14
by: JK Peck | last post by:
I have a fairly large Access application that ran correctly in Access 2000. After upgrading to Access 2003 (and recompiling and updating references), it reliably crashes at a certain point. If I...
6
by: Raja Cherukuri | last post by:
Hi, I am using Boost and VC 7.1 compiler has started complaining about out of heap space with C1060 after it crossed a certain size. No amount of "Zm" option changes work. Saw that there is a...
3
by: Spidey | last post by:
Is there any way to crash the gcc itself, i dont know much about the compiling activity..... ........ can i be done via overflowing some of the internal tables or stack used by gcc.....
19
by: Simon Faulkner | last post by:
Pardon me if this has been done to death but I can't find a simple explanation. I love Python for it's ease and speed of development especially for the "Programming Challenged" like me but why...
4
by: Droopy | last post by:
Hi, My application is running on 65 PC. After a few hours, this applications crash on 2-3 PC. I get no exception in my log files. I set the Application.ThreadException and...
4
by: Gary Wessle | last post by:
Hi I have been trying to find out the reason for this error for an 1hr, please look at it for me. thanks **************** error **************** $ make; ./proj g++ -gdwarf-2 -c -o...
6
by: Peeyush81 | last post by:
Hi All, I am trying to invoke methods in c++ code in two ways, one by compiling the calling code with the called code and running it standalone, other by making a dll of the called code and then...
2
by: brad | last post by:
Try the boost mailing list. They may help you. http://www.boost.org/community/groups.html#users
6
by: Gernot Frisch | last post by:
Hi, the program below workes w/o problems on a GP2X and on the PC, but my PocketPC (using GCC 3.3.3) crashes. Very dissapointing, since I expect some speed boost from it. Thnak you for your...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.