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<...
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+
+./...
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 ...
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
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
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 inside the db_map constructor. I tested with gcc-4.2.1 and also the standard gcc-4.0.1 and both...
Running GWT trunk on Hardy beta on VMWare on OSX using... Running GWT trunk on Hardy beta on VMWare on OSX using the wmii3 wm, all to write a demo gadget using the friendfeed api. Yay for saturday!
08:29 AM April 05, 2008
from web
"The WinSock API provides a few features not found... "The WinSock API provides a few features not found in Berkeley Sockets, aimed at making network programming easier under Windows.", right...
04:08 PM August 16, 2008
from web
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