MYSQL
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives Mailing Lists MYSQL

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old June 18th, 2008, 09:31 PM
Daniel Kolbo
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
dbdriver sigsegv errors.

Hello,

I am using mysql6. mysql++ seems to be 'working' and 'installed'
correctly; however, at the end of the execution of my programs i am
receiving SIGSEGV errors.

When I installed mysql++ simple1 was built. This version of simple1
does NT produce the error. However, when I copy the code and try to
build it myself I receive the error at the end of the file when running
the application. I am able to compile, but when I run the program it
has to abort, and when i debug I get the SIGSEGV error at end of the file.

Here is the commands codeblocks used to compile my project titled 'temp'
that contains the exact same code as simple1.cpp.

mingw32-gexe -Wall -fexceptions -g
-IE:\mysql3.0.3\include_mysql++ -IE:\mysql3.0.3\include_mysql6 -c
E:\C++\codeblocks\Practice\temp\main.cpp -o obj\Debug\main.o
mingw32-gexe -Wall -fexceptions -g
-IE:\mysql3.0.3\include_mysql++ -IE:\mysql3.0.3\include_mysql6 -c
E:\C++\codeblocks\Practice\temp\printdata.cpp -o obj\Debug\printdata.o
mingw32-gexe -o bin\Debug\temp.exe obj\Debug\main.o
obj\Debug\printdata.o obj\Debug\cmdline.o
E:\mysql3.0.3\include_lib_a_def\libmysqlpp.a
size is 1.92 MB
Process terminated with status 0 (0 minutes, 9 seconds)
0 errors, 0 warnings

"E:\mysql3.0.3\include_mysql6" contains the exact contents of
C:\Program Files\MySQL\MySQL Server 6.0\include
"E:\mysql3.0.3\include_mysql++" contains all the mysql++ header files
(the same as the contents of the "include" folder when running the
default install.bat)

In codeblocks' debugger I get a SIGSEGV. This occurs at the end of the
file, right around the return 0 in my int main() c++ console
application. I think the error is occuring when the connection
destructor is being called. Here is the backtrace.
#0 6B3C5834 mysqlpp::DBDriver::~DBDriver(this=0x3e3f80)
(lib/dbdriver.cpp:67)
#1 6B3C21B7 mysqlpp::Connection::~Connection(this=0x22ff30)
(lib/connection.cpp:67)
#2 0040185A main(argc=1, argv=0x3e3f60)
()

Here is the code for the destructor for dbdriver
DBDriver::~DBDriver()
{
if (connected()) {
disconnect();
}

List::const_iterator it;
for (it = applied_options_.begin(); it != applied_options_.end();
++it) {
delete *it;//THIS IS LINE 67 where the SIGSEGV occurs
}
}

I don't think this has to do with mysql6, b/c the default build of
simple1 does not create the error whereas mine does create the error.
Hopefully, this means there is a solution.

What is going on here? Did I link the project correctly?

Thanks,

Reply With Quote
  #2  
Old June 19th, 2008, 12:31 AM
Daniel Kolbo
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
dbdriver sigsegv errors.

Hello,

answering my own question here

So I spent about 5 hours figuring out that I was using an old version of
mysqlpp.dll in my system32 folder. When upgrading to mysql6 i decided
to rebuild the mysql++ dll against the mysql6 headers, but i forgot to
update the system32 folder! No wonder it compiled but didn't run well

So that is my, "don't be stupid like me" post.

Daniel Kolbo wrote:
Hello,
>

I am using mysql6. mysql++ seems to be 'working' and 'installed'
correctly; however, at the end of the execution of my programs i am
receiving SIGSEGV errors.
When I installed mysql++ simple1 was built. This version of simple1
does NT produce the error. However, when I copy the code and try to
build it myself I receive the error at the end of the file when
running the application. I am able to compile, but when I run the
program it has to abort, and when i debug I get the SIGSEGV error at
end of the file.
>

Here is the commands codeblocks used to compile my project titled
'temp' that contains the exact same code as simple1.cpp.
>

mingw32-gexe -Wall -fexceptions -g
-IE:\mysql3.0.3\include_mysql++ -IE:\mysql3.0.3\include_mysql6
-c E:\C++\codeblocks\Practice\temp\main.cpp -o obj\Debug\main.o
mingw32-gexe -Wall -fexceptions -g
-IE:\mysql3.0.3\include_mysql++ -IE:\mysql3.0.3\include_mysql6
-c E:\C++\codeblocks\Practice\temp\printdata.cpp -o obj\Debug\printdata.o
mingw32-gexe -o bin\Debug\temp.exe obj\Debug\main.o
obj\Debug\printdata.o obj\Debug\cmdline.o
E:\mysql3.0.3\include_lib_a_def\libmysqlpp.a
size is 1.92 MB
Process terminated with status 0 (0 minutes, 9 seconds)
0 errors, 0 warnings
>

"E:\mysql3.0.3\include_mysql6" contains the exact contents of
C:\Program Files\MySQL\MySQL Server 6.0\include
"E:\mysql3.0.3\include_mysql++" contains all the mysql++ header
files (the same as the contents of the "include" folder when running
the default install.bat)
>

In codeblocks' debugger I get a SIGSEGV. This occurs at the end of
the file, right around the return 0 in my int main() c++ console
application. I think the error is occuring when the connection
destructor is being called. Here is the backtrace.
#0 6B3C5834 mysqlpp::DBDriver::~DBDriver(this=0x3e3f80)
(lib/dbdriver.cpp:67)
#1 6B3C21B7 mysqlpp::Connection::~Connection(this=0x22ff30)
(lib/connection.cpp:67)
#2 0040185A main(argc=1, argv=0x3e3f60)
()
>

Here is the code for the destructor for dbdriver
DBDriver::~DBDriver()
{
if (connected()) {
disconnect();
}
>

List::const_iterator it;
for (it = applied_options_.begin(); it != applied_options_.end();
++it) {
delete *it;//THIS IS LINE 67 where the SIGSEGV occurs
}
}
>

I don't think this has to do with mysql6, b/c the default build of
simple1 does not create the error whereas mine does create the error.
Hopefully, this means there is a solution.
What is going on here? Did I link the project correctly?
Thanks,
>
>

Reply With Quote
Reply

Viewing: Web Development Archives Mailing Lists MYSQL > dbdriver sigsegv errors.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway