[SLUG] C++ Strings Library

From: Paul M Foster (paulf@quillandmouse.com)
Date: Wed Apr 24 2002 - 01:00:15 EDT


This is probably a long shot. I'm coding a database application in C++,
and using the g++ version 3 string library. This is a Red Hat 7.2
system. I'm getting a segfault at a certain point, and using gdb to
trace into that point. The code is trying to instantiate a string from a
char array. It's going through the string library, checking to see if
enough space has been allocated, etc. etc. At some point within that
code, it attempts to allocate more space for the string (24 chars long).
And at that point, it segfaults. There is plenty of memory on this
machine, and I have very little running.

Anyone heard of this type of problem with this version of the g++ string
library?

Paul



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:31:01 EDT