We're updating the issue view to help you get more done. 

Segmentation Fault in constructing ResourceBundle

Description

We are using gcc v 2.96 in our work. I have created a wrapper API around the ICU
library to provide only those features we need. The following is a snippet of a
class declaration I'm using, as it pertains to ICU:

class X {
public:
X (int pkg, const char* locale);

protected:
ResourceBundle *bundle;
};

I then have the following definition for the X constructor:
X::X (int pkg, const char* locale)
{
UErrorCode status = U_ZERO_ERROR;

u_init (&status)

assert (U_SUCCESS (status));

...

status = U_ZERO_ERROR;
currentLocale = new Locale (locale);
Locale &localRef = *currentLocale;
char *strPtr = "osBundle";

bundle = new ResourceBundle (strPtr, localeRef, status);
}

I am also using the U_NAMESPACE_USE at the top of my c++ file. I get no compile
or link errors of any kind. What I'm seeing is I get a segmentation fault that
seems to be originating inside of the ICU library. Is there something wrong with
what I'm doing or an imcompatibility with our version of GCC and ICU 2.6.1?

Thanks,

Environment

Status

Assignee

Steven R. Loomis

Reporter

TracBot

Labels

tracCreated

Oct 13, 2003, 10:54 PM

tracOwner

srl

tracProject

ICU4C

tracReporter

DStjohn@2f5b512ee40076ca

tracResolution

fixed

tracReviewer

grhoten

tracStatus

closed

Components

Fix versions

Priority

blocker