|
|
Choosing A Webhost: |
Re: Building on Mac OS/X 10.3: msg#00025apache.logging.log4cxx.user
Hi all, I've just downloaded and compiled the latest release (0.9.7) on OSX 10.3. I've seen the same problems and found that the "getLogger()" and "getRootLogger()" calls cause segfaults unless I call BasicConfigurator::configure(); first. So, for example delayedloop can be fixed like this: int main(int argc, char **argv) { BasicConfigurator::configure(); DelayedLoop::logger = Logger::getLogger(_T("DelayedLoop")); ... } (with logger made public). This is a bit awkward, because with this it is not possible to assign a static logger globally. I don't have another platform available for testing but I assume that calling "getLogger()" on other platforms works even without having configured first. I haven't investigated the cause of the crash any further. I recently had a problem with code that ran on Linux and crashed on OSX where the cause was an uninitialized variable. If I remember correctly, the variable was automatically assigned 0 on Linux and uninitialized use was 'safe' there while it was containing garbage on OSX and cause a crash. As initialization seems to be the problem here, perhaps this might give a lead on what's wrong. HTH, Sven Michaël CATANZARITI wrote: Hello Curt,
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Access Violation with MSVC 6/Win 2000, Steve Pole |
|---|---|
| Next by Date: | win32 and UNICODE, Sean Rohead |
| Previous by Thread: | Question about late loading of logging dll, Delfin Rojas |
| Next by Thread: | win32 and UNICODE, Sean Rohead |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |