cppcms-users Mailing List for CppCMS C++ Web Framework (Page 125)
Brought to you by:
artyom-beilis
You can subscribe to this list here.
2009 |
Jan
|
Feb
(22) |
Mar
|
Apr
(3) |
May
|
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
(15) |
Nov
(16) |
Dec
(13) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2010 |
Jan
(4) |
Feb
|
Mar
(8) |
Apr
(8) |
May
(8) |
Jun
(36) |
Jul
(63) |
Aug
(126) |
Sep
(47) |
Oct
(66) |
Nov
(46) |
Dec
(42) |
2011 |
Jan
(87) |
Feb
(24) |
Mar
(54) |
Apr
(21) |
May
(22) |
Jun
(18) |
Jul
(22) |
Aug
(101) |
Sep
(57) |
Oct
(33) |
Nov
(34) |
Dec
(66) |
2012 |
Jan
(64) |
Feb
(76) |
Mar
(73) |
Apr
(105) |
May
(93) |
Jun
(83) |
Jul
(84) |
Aug
(88) |
Sep
(57) |
Oct
(59) |
Nov
(35) |
Dec
(49) |
2013 |
Jan
(67) |
Feb
(17) |
Mar
(49) |
Apr
(64) |
May
(87) |
Jun
(64) |
Jul
(93) |
Aug
(23) |
Sep
(15) |
Oct
(16) |
Nov
(62) |
Dec
(73) |
2014 |
Jan
(5) |
Feb
(23) |
Mar
(21) |
Apr
(11) |
May
(1) |
Jun
(19) |
Jul
(27) |
Aug
(16) |
Sep
(5) |
Oct
(37) |
Nov
(12) |
Dec
(9) |
2015 |
Jan
(7) |
Feb
(7) |
Mar
(44) |
Apr
(28) |
May
(5) |
Jun
(12) |
Jul
(8) |
Aug
|
Sep
(39) |
Oct
(34) |
Nov
(30) |
Dec
(34) |
2016 |
Jan
(66) |
Feb
(23) |
Mar
(33) |
Apr
(15) |
May
(11) |
Jun
(15) |
Jul
(26) |
Aug
(4) |
Sep
(1) |
Oct
(30) |
Nov
(10) |
Dec
|
2017 |
Jan
(52) |
Feb
(9) |
Mar
(24) |
Apr
(16) |
May
(9) |
Jun
(12) |
Jul
(33) |
Aug
(8) |
Sep
|
Oct
(1) |
Nov
(2) |
Dec
(6) |
2018 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
(14) |
Jun
(1) |
Jul
(9) |
Aug
(1) |
Sep
(13) |
Oct
(8) |
Nov
(2) |
Dec
(2) |
2019 |
Jan
(1) |
Feb
(1) |
Mar
(3) |
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
2020 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
(9) |
Jul
(6) |
Aug
(25) |
Sep
(10) |
Oct
(10) |
Nov
(6) |
Dec
|
2021 |
Jan
|
Feb
|
Mar
(7) |
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
(9) |
Oct
(1) |
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: augustin <aug...@ov...> - 2010-11-01 07:28:27
|
Oh my! There are days when I'm really ashamed of myself. I made a stupid mistake: I forgot I was using a development database where the values (user names) are different from the ones in the live DB and I used the wrong values during my testing. Still, the truncated query in the error logs sent me down the wrong path, so I'd still like to know the following: > Also, for debugging purposes, how can I access the actual query sent to > the sql server? Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |
From: augustin <aug...@ov...> - 2010-11-01 07:16:29
|
Scratch that. What's being truncated is the sql query in the error log. I still have a funny bug I can't quite figure out. What I need is the output of the full query sent to the sql server, so that I can do something like: cerr << slq.query_string << endl; Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |
From: augustin <aug...@ov...> - 2010-11-01 06:40:45
|
Hello, I get a username and a password from a user and hash the password using md5(): std::string pass_md5 = md5(password); memset (password, '*', 100); // Erase the password from memory. cout << "The md5 is: " << pass_md5 << endl; sql << "SELECT * FROM users WHERE name = ? AND pass = ?", username, pass_md5; if (sql.single(r)) { /* Login successful...*/ } The (critical) problem is that the login is never successful because in the above query, the pass_md5 is truncated. The md5 hash is 32 characters long, but only the 20 first characters are kept in the query. ??? Is this a bug in the API, or am I doing wrong? Also, for debugging purposes, how can I access the actual query sent to the sql server? Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |
From: CN <cn...@gr...> - 2010-11-01 06:06:33
|
On Sun, 31 Oct 2010 18:19:49 +0800, Artyom <art...@ya...> wrote: > Two points: > > 1. Make sure you add the file widget to the form by using: > > *this + uploaded_file > or > > > add(uploaded_file) > > 2. Make sure you use enctype="multipart/form-data" in your form. i.e. > > <form method="post" action="URL" enctype="multipart/form-data" > > <% form as_p info %> > </form> > > Because you can't upload file using regular "post" using > default encoding "application/x-www-form-urlencoded" I have added everything you suggested. Now I get "503 - Service Not Available". My cppCMS application appears to have failed to catch the posted form sent from browser. My problem perhaps fall in the realm of web server administration instead of cppCMS, but helps are greatly appreciated. This comes from Opera's source inspection: <html> <body> <h1>Upload your file</h1> <form method="post" action="http://localhost/upload" enctype="multipart/form-data" accept-charset="UTF-8"> <p>Name: <span class="cppcms_form_input"><input type="text" name="_1" ></span></p> <p><span class="cppcms_form_input"><input type="file" name="_2" ></span></p> <p><span class="cppcms_form_input"><input type="submit" name="_3" value="Upload" ></span></p> </form> </body> <html> No error is logged by my cppCMS application. The following two lighttpd log entries appear after the web page is opened by browser: 2010-11-01 13:35:30: (mod_fastcgi.c.2979) got proc: pid: 0 socket: unix:/tmp/cppcms-socket load: 1 2010-11-01 13:35:30: (mod_fastcgi.c.1508) released proc: pid: 0 socket: unix:/tmp/cppcms-socket load: 0 The following entries are added to lighttpd log after I submit the form in browser. 2010-11-01 13:35:38: (mod_fastcgi.c.2979) got proc: pid: 0 socket: unix:/tmp/cppcms-socket load: 1 2010-11-01 13:35:38: (mod_fastcgi.c.3041) write failed: Broken pipe 32 2010-11-01 13:35:38: (mod_fastcgi.c.1508) released proc: pid: 0 socket: unix:/tmp/cppcms-socket load: 0 Privileges look fine, too: # ls -l /tmp/cppcms-socket srwxrwxrwx 1 www-data www-data 0 2010-11-01 12:39 /tmp/cppcms-socket Regards, CN |
From: Artyom <art...@ya...> - 2010-10-31 10:19:57
|
Two points: 1. Make sure you add the file widget to the form by using: *this + uploaded_file or add(uploaded_file) 2. Make sure you use enctype="multipart/form-data" in your form. i.e. <form method="post" action="URL" enctype="multipart/form-data" > <% form as_p info %> </form> Because you can't upload file using regular "post" using default encoding "application/x-www-form-urlencoded" Artyom ----- Original Message ---- > From: CN <cn...@gr...> > To: cpp...@li... > Sent: Sun, October 31, 2010 7:40:32 AM > Subject: [Cppcms-users] cppcms::widgets::file is always not set > > Basing on ./examples/forms/*, I use cppcms::widgets::file as follows: > > cppcms::widgets::text name; > cppcms::widgets::file uploaded_file; > cppcms::widgets::submit submit; > name.non_empty(); > uploaded_file.non_empty(); > > This is called as usual: > > c.info.load(context()); > > My problem is that > > c.info.validate() > > always returns false. Widget "name" does have been fed with string, but > "uploaded_file" is always not set: > > std:cout << c.info.uploaded_file.value()->filename() << std::endl; > > raises exception "File was not loaded". > > Calling method cppcms::widgets::file::load() does not feed anything to > itself, either: > > c.info.uploaded_file.load(context()); > > Helps are much welcome! > > Best Regards, > CN > > > ------------------------------------------------------------------------------ > Nokia and AT&T present the 2010 Calling All Innovators-North America contest > Create new apps & games for the Nokia N8 for consumers in U.S. and Canada > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: CN <cn...@gr...> - 2010-10-31 09:25:20
|
Basing on ./examples/forms/*, I use cppcms::widgets::file as follows: cppcms::widgets::text name; cppcms::widgets::file uploaded_file; cppcms::widgets::submit submit; name.non_empty(); uploaded_file.non_empty(); This is called as usual: c.info.load(context()); My problem is that c.info.validate() always returns false. Widget "name" does have been fed with string, but "uploaded_file" is always not set: std:cout << c.info.uploaded_file.value()->filename() << std::endl; raises exception "File was not loaded". Calling method cppcms::widgets::file::load() does not feed anything to itself, either: c.info.uploaded_file.load(context()); Helps are much welcome! Best Regards, CN |
From: Artyom <art...@ya...> - 2010-10-30 21:41:03
|
Hello All, CppCMS 0.99.4 is out. Release notes: http://art-blog.no-ip.info/cppcms/blog/post/69 Download: https://sourceforge.net/projects/cppcms/files/ It is recommended for all users to install the latest version, as it includes many bug features and enhancements. Artyom |
From: Artyom <art...@ya...> - 2010-10-28 17:29:28
|
Thanks, In any case I've looked on the code and it seems to be the test issue rather then the library itself issue. So there should not be problems in use. Artyom > > On Thursday 28 October 2010 09:27:45 pm Artyom wrote: > > P.S.: Can you please open a bug on the in bug tracking system? > > Ok: >https://sourceforge.net/tracker/?func=detail&aid=3097422&group_id=209965&atid=1011835 >5 >https://sourceforge.net/tracker/?func=detail&aid=3097421&group_id=209965&atid=1011835 >5 > > |
From: augustin <aug...@ov...> - 2010-10-28 14:58:03
|
On Thursday 28 October 2010 09:27:45 pm Artyom wrote: > P.S.: Can you please open a bug on the in bug tracking system? Ok: https://sourceforge.net/tracker/?func=detail&aid=3097422&group_id=209965&atid=1011835 https://sourceforge.net/tracker/?func=detail&aid=3097421&group_id=209965&atid=1011835 -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |
From: Artyom <art...@ya...> - 2010-10-28 13:27:53
|
Hello, Can you please give me full information about the system: - the version of ICU - the version of GCC - the version of CMake And give me please the file: Testing/Temporary/LastTest.log from your build directory to see exact output of the test. Artyom P.S.: Can you please open a bug on the in bug tracking system? ----- Original Message ---- > From: augustin <aug...@ov...> > To: cpp...@li... > Sent: Thu, October 28, 2010 3:22:11 PM > Subject: [Cppcms-users] Tests 50 and 57 broken. > > I have 'made' cppcms on 4 machines. > > 3 machines run Ubuntu 9.10 and the three fail this test: > Test #57: test_locale_formatting ...........***Failed > > The fourth run Ubuntu 10.4 and this test fails (and only this one): > Test #50: test_locale_codepage .............***Failed > > Augustin. > > > > -- > Friends: http://www.reuniting.info/ http://activistsolutions.org/ > My projects: > http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ > > http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ > http://openteacher.info/ http://minguo.info/ > http://www.wechange.org/ http://searching911.info/ > > > > > > > > > > > > > . > > ------------------------------------------------------------------------------ > Nokia and AT&T present the 2010 Calling All Innovators-North America contest > Create new apps & games for the Nokia N8 for consumers in U.S. and Canada > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: augustin <aug...@ov...> - 2010-10-28 13:18:48
|
I have 'made' cppcms on 4 machines. 3 machines run Ubuntu 9.10 and the three fail this test: Test #57: test_locale_formatting ...........***Failed The fourth run Ubuntu 10.4 and this test fails (and only this one): Test #50: test_locale_codepage .............***Failed Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |
From: augustin <aug...@ov...> - 2010-10-28 13:15:51
|
On Thursday 28 October 2010 07:41:48 pm Artyom wrote: > Yo don't use external boost as it make break binary compatibility of > CppCMS. You use only internal one and slowly it is going to vanish. > > The ifdef is just a reminders of old code that wasn't clean up. > Ok, that's cool. Thanks again. Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |
From: Artyom <art...@ya...> - 2010-10-28 11:41:55
|
> Ooops! Sorry. I forgot to unpack cppcms_boost.tar.bz2 > > I am not updating the wiki, because I don't know what to put: > in which cases would the external boost be used? > What are the advantages/disadvantages of using the internal boost library? > I am using boost anyway, so I may as well use the external library: what is > the minimum install of boost and what cmake or make flags do I need to add to > use the external boost libs? Yo don't use external boost as it make break binary compatibility of CppCMS. You use only internal one and slowly it is going to vanish. The ifdef is just a reminders of old code that wasn't clean up. Artyom |
From: augustin <aug...@ov...> - 2010-10-28 11:38:10
|
On Thursday 28 October 2010 07:31:23 pm Artyom wrote: > Read this: http://art-blog.no-ip.info/wikipp/en/page/cppcms_1x_build#get > You forget to untar cppcms_boost.tar.bz2 Re-oops! It *was* in the wiki. I'm sorry for the noise. Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |
From: augustin <aug...@ov...> - 2010-10-28 11:36:26
|
On Thursday 28 October 2010 07:27:55 pm augustin wrote: > Hello, > > I am trying to compile cppcms on a new machine and downloaded the source > from svn: > svn co http://cppcms.svn.sourceforge.net/svnroot/cppcms/framework/trunk > cppcms > as per: > http://art-blog.no-ip.info/wikipp/en/page/cppcms_1x_build > > 'make' does not work because of a missing file in the repository: > > In file included from cppcms/src/service.cpp:44: > cppcms/private/prefork_acceptor.h:21:33: error: cppcms_boost/bind.hpp: no > such file > In file included from cppcms/src/service.cpp:44: > cppcms/private/prefork_acceptor.h:23: error: ‘cppcms_boost’ is not a > namespace-name > (...) Ooops! Sorry. I forgot to unpack cppcms_boost.tar.bz2 I am not updating the wiki, because I don't know what to put: in which cases would the external boost be used? What are the advantages/disadvantages of using the internal boost library? I am using boost anyway, so I may as well use the external library: what is the minimum install of boost and what cmake or make flags do I need to add to use the external boost libs? Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |
From: Artyom <art...@ya...> - 2010-10-28 11:31:33
|
> > In file included from cppcms/src/service.cpp:44: > cppcms/private/prefork_acceptor.h:21:33: error: cppcms_boost/bind.hpp: no such > > file > In file included from cppcms/src/service.cpp:44: > cppcms/private/prefork_acceptor.h:23: error: ‘cppcms_boost’ is not a > namespace-name > (...) > > I cannot compile cppcms. Read this: http://art-blog.no-ip.info/wikipp/en/page/cppcms_1x_build#get You forget to untar cppcms_boost.tar.bz2 Artyom |
From: augustin <aug...@ov...> - 2010-10-28 11:24:34
|
Hello, I am trying to compile cppcms on a new machine and downloaded the source from svn: svn co http://cppcms.svn.sourceforge.net/svnroot/cppcms/framework/trunk cppcms as per: http://art-blog.no-ip.info/wikipp/en/page/cppcms_1x_build 'make' does not work because of a missing file in the repository: In file included from cppcms/src/service.cpp:44: cppcms/private/prefork_acceptor.h:21:33: error: cppcms_boost/bind.hpp: no such file In file included from cppcms/src/service.cpp:44: cppcms/private/prefork_acceptor.h:23: error: ‘cppcms_boost’ is not a namespace-name (...) I cannot compile cppcms. Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |
From: Artyom <art...@ya...> - 2010-10-28 05:44:13
|
> I set up a clean Debian Lenny chroot, installed cppcms' dependencies and > built the test program again, it works without problems there. > So your guess seems to be right, I am probably linking to an old > libcppcms version, but the problem is, I don't know why. Do I have to > remove the old libcppcms.so before running make install to install the > new libcppcms? I have no other copy of this library in the chroot than > in /usr/lib, and this is overwritten on make install, at least that is > what cmake outputs. So there seems to be no possibility that my program > links against an old release of libcppcms accidentially. Are the header > files updated reliably, too? Or should I try and remove them from my > /usr/include? > Additionally, I seem to have this problem on the two of my build chroots > - - the one I use for ARM builds and the one I use for my 32bit x86 builds. > I will further investigate into this problem and try to clean my build > root and report back. > > Julian Several notes: 1. Make sure that you hadn't installed a thing in /usr/local/(include|lib) and you always install in same prefix. 2. Generally make install solves problem, but if you have issues, remove following: $PREFIX/bin/cppcms_* $PREFIX/lib/libcppcms* $PREFIX/lib/libbooster* $PREFIX/include/cppcms/ $PREFIX/include/booster/ Where $PREFIX is installation prefix that is /usr or /usr/local or any other location. Generally this is not required, but if you have problems, this is good thing to do. 3. Then build clean version of CppCMS (remove build directory and run full build) 4. Run make test and then make install 5. Fully rebuild your application - full clean and full build. Note: this is the way to uninstall things with generic CMake installation: http://www.cmake.org/Wiki/CMake_FAQ#Can_I_do_.22make_uninstall.22_with_CMake.3F Regards, Artyom |
From: Julian P. <ju...@wh...> - 2010-10-27 23:28:37
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 27.10.2010 23:28, schrieb Artyom: > I did also, on x86 - works well. > So give the exact code please. > > If it crashes I think you compile against different version > of CppCMS that you actually link with and you get crash as they ABI > incompatible. > I set up a clean Debian Lenny chroot, installed cppcms' dependencies and built the test program again, it works without problems there. So your guess seems to be right, I am probably linking to an old libcppcms version, but the problem is, I don't know why. Do I have to remove the old libcppcms.so before running make install to install the new libcppcms? I have no other copy of this library in the chroot than in /usr/lib, and this is overwritten on make install, at least that is what cmake outputs. So there seems to be no possibility that my program links against an old release of libcppcms accidentially. Are the header files updated reliably, too? Or should I try and remove them from my /usr/include? Additionally, I seem to have this problem on the two of my build chroots - - the one I use for ARM builds and the one I use for my 32bit x86 builds. I will further investigate into this problem and try to clean my build root and report back. Julian -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBAgAGBQJMyLWlAAoJENidYKvYQHlQJsQP/128jMHL4PTl6Zt4Dz0Wp9wS iWHiFye0pcfg4npF2QqpbG8Mtt3fw/82fgtfcSX4mkmu/5gd7vYyZeKZVZObwvKa F/AsS+t7trLLaivS6o/TSCjh7fXVwijdMkr2wdS93o2AWjV6syzRiR+/JWIBl+Fx mnWzYCKueFhKOBJztEfCmu9YsHrxZb+h91V66bO1AQZa7j0ORyU7Is9zPr4kU4so NUfHRsARvCoiVbz9U0hI7oYQCTeTbg0K2eLrlR8lBluBdztK1aj2ShOSk3EsSqWu Fs4oCTptoSFMM3IiXwPT3HOhOjpRdjlqUapse6ViGcYYK1xo2kOkRLXadw6uayyU 15qazUfmathX7G4dXhNDQtjvNm5mujp1Vxwh3fkKY8wfU4cGvk2b7JsJWooyYQz9 0U05XetL0AaLctzCdj2wZL35Oj2Y0NH8QiUVGPF03Vw/ilP6fIyl+juwLvycVnJB 24+oYSIwGLH46Kdez31fe5uMPxN4ejfN8EP1VcY14aWFPfbMDWXfUBadQFQfFJHz phB7w4HWJfWMM5vFB9S2nBwTZv8VQfFobqHFDEvXDm5AIylJyVmAjLivV4ahtiz9 kEOcQmbUwm0++HCE/J2m8tn9eFht3Rt3lqcBLn6vZLuIc2xOJNY3SHMyH0PQSPUl CjDMM11l+HVDhYsXJSof =vQod -----END PGP SIGNATURE----- |
From: Artyom <art...@ya...> - 2010-10-27 21:28:13
|
> > I know that, but I also surrounded it with a fitting try ... catch block > and it did happen nevertheless. I did also, on x86 - works well. So give the exact code please. If it crashes I think you compile against different version of CppCMS that you actually link with and you get crash as they ABI incompatible. Artyom |
From: Julian P. <ju...@wh...> - 2010-10-27 20:45:35
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I know that, but I also surrounded it with a fitting try ... catch block and it did happen nevertheless. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBAgAGBQJMyI9uAAoJENidYKvYQHlQSjwP/2mBlGia15uaTSwlKFEkAqp0 zD3I6hO+CAbtRFnI8dWL+Hy+dwDiFpa3AOcEz+MRpyimXHBBTTSc+S/M+7dzBxh4 clA+giVb/ieKP6ldPVf+vilc7PPSkWv+cKQU/GxVfse4tudm6XmARaA27Z8WP7V6 xBfux/OcLVckTnbYyhXdCc5+OjiJTX7V+yIGPVisAfUF0dKvB5d4ecWKNn2f3w9h EXOQUtgEkRzKeHYQ7KHDMdd6BpXzkti+9B8ObLkgv64NUqGLapvz13dPOMkcvz+k AK1UZnOKF9zdFAlNbv+QutnzWFFQtLe9oLw/EYZbHBQZ3cM2Taa4ziQcG8e71zkL 3nVQYspa6c+/D4o6a/A7sy9az/NNjE1Tkd3tuxTe0qGIm8TWfETRtqAqPSdgcn2n 6ANKjg2AKsvyJ+JFPIJc7jd0DnoSAsa+EjSRE0K/xQ5h7e45jGh4f6zI7BObSuBN 4d5CFLI7LnsSAbpls1HhYItAONqvLTkj4iegrU5SZHgJYaGRci6vKBpEbKmHN+/t n0zliABnflRdpDmfDJJvfh+41PIlen7wxzODt1qlCA7w8Bmy0SNj0EFvYoF99EPz ypPt/GmFLTUsDsGtCYCJVTirsYHvWvx3s0rRT5hUC/E3UOPNDwVC/gpwcz85A3Tb 0j+XpbMcUGieMMXAFEoi =KGCa -----END PGP SIGNATURE----- |
From: Artyom <art...@ya...> - 2010-10-27 19:43:17
|
> > I wrote a code sample, which consists only of a main function and a throw > and reproduces the problem. It's attached to this mail. int main() { throw(cppcms::json::bad_value_cast("Loading any of the configuration files given failed.")); } If you throw an exception somewhere you should catch it somewhere... If unhandled exception is thrown it calls std::terminate that in his turn calls abort... This is expected behavior You need to write int main() { try { throw cppcms::json::bad_value_cast("Loading any of the configuration files given failed."); } catch(std::exception const &e) { std::cerr << "Catched exception " << e.what() << std::endl; return 1; } return 0; } Actually it is good paratice to make a try...catch block around your all code and catch all exceptions and print what happens. Artyom |
From: Julian P. <ju...@wh...> - 2010-10-27 18:50:19
|
Hallo, I wrote a code sample, which consists only of a main function and a throw and reproduces the problem. It's attached to this mail. >> >> Could it be that you changed the implementation of bad_value_cast so >> that an instantiation like this is not possible anymore? > > Shouldn't be, in any case you may try following: > > Comment out lines: 13 and 14 in file: > booster/lib/backtrace/src/backtrace.cpp Does not fix the problem for me. > Also give me what is your Linux version and libc version + how do you > compile program and CppCMS. > I use the standard Debian Lenny libraries, which means that libc is glibc 2.7. The problem occurs on linux kernels 2.6.21 (ARM) and 2.6.32 (x86), I did not test any other kernel versions. It may be that the problem is not related to 32bit at all, because all of my 64bit capable systems run Ubuntu or Sabayon Linux and therefore use newer versions of glibc. I do not compile with any other C/CXXFLAGS than the defaults used by cmake, the problem occurs with release types RelWithDebInfo and Release, other release types were not tested. GCC is 4.3.2 (on the 32bit platforms using Lenny) and GCCs of the 4.4.x series on the 64bit machines. The sample program has been compiled with the CMake default C/CXXFLAGS for RelWithDebInfo and Release and linked to libcppcms and libbooster. Thanks, Julian |
From: Artyom <art...@ya...> - 2010-10-27 09:55:25
|
> pm augustin wrote: > > Hello Artyom, > > > > Is it possible for you to adjust the mailing list > configuration? > > > > In my mail client (Kmail), the author of all the > emails is "cppcms- > > us...@li...". It seems to me KMail issue. It displays Reply-to rather then >From header. > > In other mailing lists I am subscribed to, the author > of each email is > > properly displayed within the threaded summary list. By default GNU Mailman sets Reply-to the author and not to the list and it makes it very inconvinient to reply to list that finally many users accidentially do not notice and reply to the specific user rather then to the mailing list. I think you need to check your KMail settings as in my case (Yahoo mail) it displays "From" column correctly. Artyom |
From: augustin <aug...@ov...> - 2010-10-27 09:35:53
|
On Saturday 21 August 2010 05:57:09 pm augustin wrote: > Hello Artyom, > > Is it possible for you to adjust the mailing list configuration? > > In my mail client (Kmail), the author of all the emails is "cppcms- > us...@li...". > One has to open each email individually to see the real author (Frank, > Artyom, etc.) > In other mailing lists I am subscribed to, the author of each email is > properly displayed within the threaded summary list. > > I hope it's only a setting that can be easily adjusted in the mailing list > server... Have you had the opportunity to check with sourceforge is this mailing configuration problem can be fixed? Do I need to send you a screen shot to show you the problem? Thanks, Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |