Re: [Cppcms-users] I would like to have my blog...
Brought to you by:
artyom-beilis
|
From: Paolo B. <pao...@gm...> - 2015-01-07 18:42:10
|
Dear list, I think I got the point, in captcha.cpp:46 there must be a font name that it exists. No fallback is done. In my system I executed "fc-match Monospace," and the results was Inconsolata I replaced "helvetica" with "Inconsolata" and cppblog still crashed for the lack of /usr/share/fonts/Type1/n019003l.pfb. This file is part of the gsfonts package, once I also added the package cppblog halts with this error: Failed: No configuration defined That I think is expected since I just executed it from the compilation directory. So, I think the fact that the font name on the captcha.cpp:46 must be exact and that gsfonts must be installed should be added to the documentation. I hope I am fine now, in the case I'll share here. Cheers, Paolo On Wed, Jan 7, 2015 at 6:13 PM, Paolo Bolzoni <pao...@gm...> wrote: > It seems a bug in the captcha... > > % gdb ./cppblog > GNU gdb (GDB) 7.8.1 > [...] > Reading symbols from ./cppblog...done. > (gdb) catch throw > Catchpoint 1 (throw) > (gdb) run > Starting program: /home/paolo/cppblog/pkg/cppblog/usr/bin/cppblog > Catchpoint 1 (exception thrown), 0x00007ffff6da1050 in __cxa_throw () > from /usr/lib/libstdc++.so.6 > (gdb) bt > #0 0x00007ffff6da1050 in __cxa_throw () from /usr/lib/libstdc++.so.6 > #1 0x00007ffff70948e9 in > Magick::throwException(MagickLib::_ExceptionInfo&) () from > /usr/lib/libGraphicsMagick++.so.3 > #2 0x000000000041cc11 in captcha_maker (this=0x68a560 <(anonymous > namespace)::maker_instance>, width_=120, height_=60) at > /home/paolo/cppblog/src/cppblog_0.1.0/apps/captcha.cpp:56 > #3 __static_initialization_and_destruction_0 (__initialize_p=1, > __priority=65535) at > /home/paolo/cppblog/src/cppblog_0.1.0/apps/captcha.cpp:157 > #4 _GLOBAL__sub_I__ZN4apps7captchaC2ERN6cppcms7serviceE () at > /home/paolo/cppblog/src/cppblog_0.1.0/apps/captcha.cpp:177 > #5 0x0000000000474d5d in __libc_csu_init () > #6 0x00007ffff67a8fcf in __libc_start_main () from /usr/lib/libc.so.6 > #7 0x000000000041de62 in _start () > (gdb) k > Kill the program being debugged? (y or n) y > (gdb) q > % > > On Thu, Jan 1, 2015 at 9:14 AM, augustin <aug...@ov...> wrote: >> On Sunday, December 21, 2014 02:36:54 AM Paolo Bolzoni wrote: >>> Sometimes it crashes outright, sometime it needs few seconds. But >>> meanwhile it uses 100% of the CPU, is it expected? What can I try? >> >> It is certainly not expected! >> I have never installed nor used cppblog, so I won't be able to help you much. >> However, the symptom you describe point to some infinite loop. The application >> crashes when it runs out of memory. >> I guess it's up to you to debug the application and report back here, for the >> benefit of other users who might encounter a similar problem. >> >> Good luck, and happy new year! >> >> >> augustin. >> >> >> >> >> -- >> Friends: http://www.reuniting.info/ >> My projects: >> http://astralcity.org/ http://lesenjeux.fr/ http://linux.overshoot.tv/ >> http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ >> http://openteacher.info/ http://minguo.info/ http://jacqueslemaire.fr/ >> http://www.wechange.org/ http://searching911.info/ >> >> >> >> >> >> >> >> >> >> >> >> >> . |