List:MySQL++« Previous MessageNext Message »
From:Mike Kinney Date:March 19 2005 2:35am
Subject:v1.7.32 simple1 Seg faults
View as plain text  
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

Thread
v1.7.32 simple1 Seg faultsMike Kinney19 Mar
  • Re: v1.7.32 simple1 Seg faultsChris Frey19 Mar
  • Re: v1.7.32 simple1 Seg faultsWarren Young22 Mar