dbTalk Databases Forums  

v1.7.32 simple1 Seg faults

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss v1.7.32 simple1 Seg faults in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mike Kinney
 
Posts: n/a

Default v1.7.32 simple1 Seg faults - 03-18-2005 , 08:35 PM






I have 1.7.23 running simple1 just fine.

I just installed 1.7.32 and tried to run simple1 and it seg faults.

I have narrowed it down to the line:
mysqlpp::Result res = query.store();
in util.cpp.

I have read the thread from Marco/Chris/Warrent about his SegFaults.

Note: RHEL3 gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-49)
[root@dragon examples]# ldd .libs/lt-simple1
libmysqlpp.so.4 => /usr/local/src/mysql+
+-1.7.32/lib/.libs/libmysqlpp.so.4 (0x00ec5000)
libz.so.1 => /usr/lib/libz.so.1 (0x00a76000)
libmysqlclient.so.10 => /usr/lib/mysql/libmysqlclient.so.10
(0x00da1000)
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x00111000)
libm.so.6 => /lib/tls/libm.so.6 (0x00aaf000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00b39000)
libc.so.6 => /lib/tls/libc.so.6 (0x001c4000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x006b8000)
libnsl.so.1 => /lib/libnsl.so.1 (0x002fc000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00d3c000)
[root@dragon examples]# pwd
/usr/local/src/mysql++-1.7.32/examples

[root@dragon examples]# ./resetdb localhost root foo
Reinitialized sample database successfully.

[root@dragon examples]# ./simple1 localhost root foo
1
2
Query: select * from stock
a
Segmentation fault (core dumped)
[root@dragon examples]# ls -al core
ls: core: No such file or directory

Hmm... no core, but says it cores... hmm...

(You'll note I added old-school debugging "cout's" before each step to
get to that line is what is causing problems.)

--
Mike Kinney
www.RedAceSolutions.com
Phone (503) 590-5606 x201


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw


Reply With Quote
  #2  
Old   
Chris Frey
 
Posts: n/a

Default Re: v1.7.32 simple1 Seg faults - 03-18-2005 , 11:03 PM






I'm not sure what to recommend other than to re-check your build process
very carefully.

There's so many segfault reports on this list that mysql++ must be
really hard to use or something. :-) Mostly they are user error
or a really old compiler, or non-compliant compiler. But I'd sure like
to know if there is some underlying assumption in the code or makefiles
that help confuse the system.

A lot of problem reports seem to come from people with multiple versions
installed. You might want to move 1.7.23 out of harm's way (or tar it up
and delete it) and rebuild 1.7.32 completely.

As for core files, some systems name the core files with a PID number
attached.

If you find the cause, please do report back.

- Chris


On Fri, Mar 18, 2005 at 06:35:38PM -0800, Mike Kinney wrote:
Quote:
I have 1.7.23 running simple1 just fine.

I just installed 1.7.32 and tried to run simple1 and it seg faults.

I have narrowed it down to the line:
mysqlpp::Result res = query.store();
in util.cpp.

I have read the thread from Marco/Chris/Warrent about his SegFaults.

Note: RHEL3 gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-49)
[root@dragon examples]# ldd .libs/lt-simple1
libmysqlpp.so.4 => /usr/local/src/mysql+
+-1.7.32/lib/.libs/libmysqlpp.so.4 (0x00ec5000)
libz.so.1 => /usr/lib/libz.so.1 (0x00a76000)
libmysqlclient.so.10 => /usr/lib/mysql/libmysqlclient.so.10
(0x00da1000)
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x00111000)
libm.so.6 => /lib/tls/libm.so.6 (0x00aaf000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00b39000)
libc.so.6 => /lib/tls/libc.so.6 (0x001c4000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x006b8000)
libnsl.so.1 => /lib/libnsl.so.1 (0x002fc000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00d3c000)
[root@dragon examples]# pwd
/usr/local/src/mysql++-1.7.32/examples

[root@dragon examples]# ./resetdb localhost root foo
Reinitialized sample database successfully.

[root@dragon examples]# ./simple1 localhost root foo
1
2
Query: select * from stock
a
Segmentation fault (core dumped)
[root@dragon examples]# ls -al core
ls: core: No such file or directory

Hmm... no core, but says it cores... hmm...

(You'll note I added old-school debugging "cout's" before each step to
get to that line is what is causing problems.)

--
Mike Kinney
www.RedAceSolutions.com
Phone (503) 590-5606 x201


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...irect (DOT) ca
--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #3  
Old   
Warren Young
 
Posts: n/a

Default Re: v1.7.32 simple1 Seg faults - 03-21-2005 , 09:30 PM



Mike Kinney wrote:
Quote:
I just installed 1.7.32
Since you're using Red Hat, I presume that this means you installed one
of the RPMs. If it was the binary, then...

Quote:
libmysqlclient.so.10 => /usr/lib/mysql/libmysqlclient.so.10
....this is your problem. You're using MySQL 3.23 with a version of
MySQL++ linked against MySQL v4.0.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
Reply




Thread Tools
Display Modes

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 On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.