Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: Berkeley DB 4.8 - C++ STL API on Mac OSX 10.6.2

Started 1 month, 1 week ago by user10870838
Hallo, I build Berkeley DB 4.8.24 with new STL API and it works fine. Then I wanted to process the examples_stl . It's no problem to build all the examples. But then I try to run any application I got a "Segmentation fault" error. I selected the StlAccessExample.cpp and the error results from line 82: typedef db_map<char *, char *, ElementHolder<...
Site: www.oracle.com  www.oracle.com - site profile
Forum: Berkeley DB   Berkeley DB
 - forum profile
Total authors: 2 authors
Total thread posts: 7 posts
Thread activity: no new posts during last week
Domain info for: oracle.com

Other posts in this thread:

Oracle, Sandra ... replied 1 month, 1 week ago
Hello, What does your link line look like? Are you including the appropriate libdb_stl* library? Thanks, Sandra

user10870838 replied 1 month, 1 week ago
Hi, I followed the advise from the readme and I used make exstl_access : +./libtool --mode=compile g++ -c -I. -I../dist/.. -O -I../dist/../stl ../dist/../examples_stl/StlAccessExample.cpp+ +libtool: compile: g++ -c -I. -I../dist/.. -O -I../dist/../stl ../dist/../examples_stl/StlAccessExample.cpp -fno-common -DPIC -o .libs/StlAccessExample.o+ +./...

user10870838 replied 1 month, 1 week ago
I actually have tested with ... typedef db_map<char *, char *, ElementHolder<char *> > strmap_t; // Create a map container with inmemory anonymous database. strmap_t dbmap; and this segfaulted. When inserting an exit(0) call above " strmap_t dbmap " the segfault vanished. So I guess that somehow the problem is ...

Oracle, Sandra ... replied 1 month, 1 week ago
Thanks, It looks like I can reproduce the problem on Mac OSX. I also get a segfault at: // Create a map container with inmemory anonymous database. strmap_t dbmap; I did try on several other platforms without any problems. I'll let you know when I've isolated the problem. Sandra

Oracle, Sandra ... replied 1 month, 1 week ago
Hello, I just wanted to let you know that we have opened an internal SR #18001 to track this issue. It certainly looks to be a bug which is easily reproduced on Mac OSX as you pointed out. Thank you, Sandra

Oracle, Sandra ... replied 1 month ago
Hello, This bug was fixed in our mainline and will be available in the next release. Thanks for pointing it out. Sandra

 

Top contributing authors

Name
Posts
Oracle, Sandra ...
4
user's latest post:
Berkeley DB 4.8 - C++ STL API on...
Published (2009-11-19 05:38:00)
Hello, This bug was fixed in our mainline and will be available in the next release. Thanks for pointing it out. Sandra
user10870838
3
user's latest post:
Berkeley DB 4.8 - C++ STL API on...
Published (2009-11-13 01:24:00)
I actually have tested with ... typedef db_map&lt;char *, char *, ElementHolder&lt;char *&gt; &gt; strmap_t; // Create a map container with inmemory anonymous database. strmap_t dbmap; and this segfaulted. When inserting an exit(0) call above " strmap_t dbmap " the segfault vanished. So I guess that somehow the problem is inside the db_map constructor. I tested with gcc-4.2.1 and also the standard gcc-4.0.1 and both...

Related threads on "www.oracle.com":

Related threads on other sites:

Thread profile page for "Berkeley DB 4.8 - C++ STL API on Mac OSX 10.6.2" on http://www.oracle.com. This report page is a snippet summary view from a single thread "Berkeley DB 4.8 - C++ STL API on Mac OSX 10.6.2", located on the Message Board at http://www.oracle.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity

This page was found by:   StlAccessExample.cpp