hi, everyone,
I have post some debug info below (It is just the debug info when login my app based on Wt, and then logout), can you tell me the main problems of my app, thanks.
----------------------------------------------------------
Caught SIGCHLD.
Child pid is 17478 stat = 139
Deleting session: gaekCSQqhvVnoiLx
Debugging Wt app...
Spawned new dedicated process: pid=17497
==17497== Memcheck, a memory error detector.
==17497== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==17497== Using LibVEX rev 1804, a library for dynamic binary translation.
==17497== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==17497== Using valgrind-3.3.0-Debian, a dynamic binary instrumentation framework.
==17497== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==17497== For more details, rerun with: -v
==17497==
Reading Wt configuration from: /etc/wt/wt_config.xml
binding property 'resources' with value 'resources/
binding property 'extBaseURL' with value 'ext/
Session oXbi8hp2xEOygb1A created.
setting Debug
Sessions: 1
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:
1.8.1.6) Gecko/20071008 Ubuntu/7.10 (gutsy) Firefox/
2.0.0.6
Reading resource file: cx.xml
==17497== Thread 3:
==17497== Invalid read of size 4
==17497== at 0x4014C37: (within /lib/
ld-2.6.1.so)
==17497== by 0x46650B1: (within /lib/tls/i686/cmov/
libc-2.6.1.so)
==17497== by 0x400D015: (within /lib/
ld-2.6.1.so)
==17497== by 0x4665274: __libc_dlopen_mode (in /lib/tls/i686/cmov/
libc-2.6.1.so)
==17497== by 0x463F7B6: __nss_lookup_function (in /lib/tls/i686/cmov/
libc-2.6.1.so)
==17497== by 0x463F8CF: (within /lib/tls/i686/cmov/
libc-2.6.1.so)
==17497== by 0x4641465: __nss_services_lookup (in /lib/tls/i686/cmov/
libc-2.6.1.so)
==17497== by 0x46474D4: getservbyname_r (in /lib/tls/i686/cmov/
libc-2.6.1.so)
==17497== by 0x464726D: getservbyname (in /lib/tls/i686/cmov/
libc-2.6.1.so)
==17497== by 0x481CD90: mysql_server_init (in /usr/lib/libmysqlclient.so.15.0.0)
==17497== by 0x48433C1: mysql_init (in /usr/lib/libmysqlclient.so.15.0.0)
==17497== by 0x43AC72A: mysqlpp::DBDriver::DBDriver() (dbdriver.cpp:48)
==17497== Address 0x595a7b4 is 44 bytes inside a block of size 46 alloc'd
==17497== at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==17497== by 0x400D123: (within /lib/
ld-2.6.1.so)
==17497== by 0x40081D8: (within /lib/
ld-2.6.1.so)
==17497== by 0x4010F83: (within /lib/
ld-2.6.1.so)
==17497== by 0x400D015: (within /lib/
ld-2.6.1.so)
==17497== by 0x401099D: (within /lib/
ld-2.6.1.so)
==17497== by 0x46650B1: (within /lib/tls/i686/cmov/
libc-2.6.1.so)
==17497== by 0x400D015: (within /lib/
ld-2.6.1.so)
==17497== by 0x4665274: __libc_dlopen_mode (in /lib/tls/i686/cmov/
libc-2.6.1.so)
==17497== by 0x463F7B6: __nss_lookup_function (in /lib/tls/i686/cmov/
libc-2.6.1.so)
==17497== by 0x463F8CF: (within /lib/tls/i686/cmov/
libc-2.6.1.so)
==17497== by 0x4641465: __nss_services_lookup (in /lib/tls/i686/cmov/
libc-2.6.1.so)
Session exiting: oXbi8hp2xEOygb1A
Sessions: 0
Spawned new dedicated process: pid=17506
==17497==
==17497== Thread 2:
==17497== Invalid read of size 4
==17497== at 0x4140D9E: Wt::WFormWidget::setValidator(Wt::WValidator*) (WFormWidget.C:202)
==17497== by 0x41B4DE9: Wt::WValidator::~WValidator() (WValidator.C:20)
==17497== by 0x4158725: Wt::WLengthValidator::~WLengthValidator() (WLengthValidator:26)
==17497== by 0x4165D4E: Wt::WObject::~WObject() (WObject.C:78)
==17497== by 0x417E4CE: Wt::WResource::~WResource() (WResource.C:30)
==17497== by 0x41D323A: Wt::WWidget::~WWidget() (WWidget.C:38)
==17497== by 0x41CE0E5: Wt::WWebWidget::~WWebWidget() (WWebWidget.C:169)
==17497== by 0x414D8C8: Wt::WInteractWidget::~WInteractWidget() (WInteractWidget.C:46)
==17497== by 0x413F9F5: Wt::WFormWidget::~WFormWidget() (WFormWidget.C:44)
==17497== by 0x41A20CD: Wt::WTextArea::~WTextArea() (WTextArea:32)
==17497== by 0x41CE04D: Wt::WWebWidget::~WWebWidget() (WWebWidget.C:158)
==17497== by 0x414D8C8: Wt::WInteractWidget::~WInteractWidget() (WInteractWidget.C:46)
==17497== Address 0x24 is not stack'd, malloc'd or (recently) free'd
==17497==
==17497== Process terminating with default action of signal 11 (SIGSEGV)
==17497== Access not within mapped region at address 0x24
==17497== at 0x4140D9E: Wt::WFormWidget::setValidator(Wt::WValidator*) (WFormWidget.C:202)
==17497== by 0x41B4DE9: Wt::WValidator::~WValidator() (WValidator.C:20)
==17497== by 0x4158725: Wt::WLengthValidator::~WLengthValidator() (WLengthValidator:26)
==17497== by 0x4165D4E: Wt::WObject::~WObject() (WObject.C:78)
==17497== by 0x417E4CE: Wt::WResource::~WResource() (WResource.C:30)
==17497== by 0x41D323A: Wt::WWidget::~WWidget() (WWidget.C:38)
==17497== by 0x41CE0E5: Wt::WWebWidget::~WWebWidget() (WWebWidget.C:169)
==17497== by 0x414D8C8: Wt::WInteractWidget::~WInteractWidget() (WInteractWidget.C:46)
==17497== by 0x413F9F5: Wt::WFormWidget::~WFormWidget() (WFormWidget.C:44)
==17497== by 0x41A20CD: Wt::WTextArea::~WTextArea() (WTextArea:32)
==17497== by 0x41CE04D: Wt::WWebWidget::~WWebWidget() (WWebWidget.C:158)
==17497== by 0x414D8C8: Wt::WInteractWidget::~WInteractWidget() (WInteractWidget.C:46)
==17497==
==17497== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 110 from 3)
==17497== malloc/free: in use at exit: 615,968 bytes in 12,892 blocks.
==17497== malloc/free: 103,830 allocs, 90,938 frees, 13,168,846 bytes allocated.
==17497== For counts of detected errors, rerun with: -v
==17497== searching for pointers to 12,892 not-freed blocks.
==17497== checked 18,366,216 bytes.
==17497==
==17497== LEAK SUMMARY:
==17497== definitely lost: 0 bytes in 0 blocks.
==17497== possibly lost: 130,905 bytes in 1,818 blocks.
==17497== still reachable: 485,063 bytes in 11,074 blocks.
==17497== suppressed: 0 bytes in 0 blocks.
==17497== Rerun with --leak-check=full to see details of leaked memory.
-------------------------------------------------------------------
Regards,
zhimsong