
Hey, I'm trying to use the unit test framework of Boost, but my program seg fault. My code is based on that example: http://boost.org/libs/test/example/unit_test_example3.cpp Here is the code : http://rafb.net/p/5UDMk864.html Here is the backtrace : http://rafb.net/p/GT86KB44.html does someone see the problem ? thank you Vincent Torri

"Vincent Torri"
Hey,
I'm trying to use the unit test framework of Boost, but my program seg fault. My code is based on that example:
http://boost.org/libs/test/example/unit_test_example3.cpp
Here is the code :
http://rafb.net/p/5UDMk864.html
Here is the backtrace :
http://rafb.net/p/GT86KB44.html
does someone see the problem ?
1. What is the boost version? 2. What is the your target platform? 3. Does it work with different STL implementation? 4 .Could you minimize your test module and exclude any code specific to your project? 5. Could you try the latest version of boost? (1.34 RC) Gennadiy

On Sun, 4 Feb 2007, Gennadiy Rozental wrote:
"Vincent Torri"
wrote in message news:Pine.LNX.4.64.0702031440340.23338@grozny.maths.univ-evry.fr... Hey,
I'm trying to use the unit test framework of Boost, but my program seg fault. My code is based on that example:
http://boost.org/libs/test/example/unit_test_example3.cpp
Here is the code :
http://rafb.net/p/5UDMk864.html
Here is the backtrace :
http://rafb.net/p/GT86KB44.html
does someone see the problem ?
1. What is the boost version?
1.33.1
2. What is the your target platform?
Linux
3. Does it work with different STL implementation?
I didn't test it. I use STLport 5.1. Boost is built with STLport support.
4 .Could you minimize your test module and exclude any code specific to your project?
I'll try
5. Could you try the latest version of boost? (1.34 RC)
I'll try Thank you Vincent

On Sun, 4 Feb 2007, Gennadiy Rozental wrote:
4 .Could you minimize your test module and exclude any code specific to your project?
I've removed all of my specific code, and it works :/ So the seg fault comes from my code :/ But if you have a general idea about the problem...
5. Could you try the latest version of boost? (1.34 RC)
is there any good doc about installing RC 1.34 ? i've looked in the provided doc of the cvs, and I've not found any useful link. Vincent Torri

"Vincent Torri"
On Sun, 4 Feb 2007, Gennadiy Rozental wrote:
5. Could you try the latest version of boost? (1.34 RC)
is there any good doc about installing RC 1.34 ? i've looked in the provided doc of the cvs, and I've not found any useful link.
I never really understood problems with installing. Take an archive and place it somewhere or use cvs to retrieve particular branch. Build Boost.Test lib using bjam (build bjam first if you need to). Point onto installed location in your make file. Gennadiy

On Mon, 5 Feb 2007, Gennadiy Rozental wrote:
I never really understood problems with installing. Take an archive and place it somewhere or use cvs to retrieve particular branch. Build Boost.Test lib using bjam (build bjam first if you need to). Point onto installed location in your make file.
isn't the 1.34 version using boost build v2 ? I want to build boost with STLport 5.1, and i think that i've read that that v2 supports STLport 5 correctly. Vincent Torri PS: i've finally succeeded in compiling successfully my example. The main developper of STLport gave me a build of some of the boost libs.

On Sun, 4 Feb 2007, Gennadiy Rozental wrote:
3. Does it work with different STL implementation?
I've asked the STLport devs, and it seems that I'm not compiling Boost with STLport (5.1) support. Here is how I compile Boost: bjam "-sTOOLS=gcc-stlport" -sSTLPORT_PATH="$HOME/local/include/stlport/" -sSTLPORT_VERSION="5.1.0" --prefix=$HOME/local --with-thread --with-test install It seems that it's not the good way. Can someone tell me how I can build Boost with STLport 5.1 support, please ? thank you Vincent

On 2/3/07, Vincent Torri
Hey,
I'm trying to use the unit test framework of Boost, but my program seg fault. My code is based on that example:
http://boost.org/libs/test/example/unit_test_example3.cpp
Here is the code :
http://rafb.net/p/5UDMk864.html
Here is the backtrace :
Your code is unavailable. rafb is a nice paste server, but the code is deleted after a day or less. you may want to use another service such as http://www.pasteserver.net/ good luck -- Server Levent Yilmaz Mechanical Engineering @ PITT
participants (3)
-
Gennadiy Rozental
-
Server Levent Yilmaz
-
Vincent Torri