[Ast-devel] Login Error and spin till core dump
Status: Beta
Brought to you by:
mwilliamson
|
From: Boadie <bo...@gm...> - 2007-10-02 03:50:51
|
I see from the archives allot of people have had the same problem as
me which is after running the install. The server is up and you go
through the first time installation procedure but after that you
cannot log in.
The log files are big and empty and apache reports symptoms which
suggest the ast file is abnormally ending.
To cut a long saga short, involving a long wrestling session with
gdb. I found that in date.cc in libatf has two pieces of nice working
code that has been commented out and replaced with a direct reference
to the environment. The effect of this is a reference to a non-
existent TZ environment variable in Apache 2. This then throws an
exception as the date is attempted. Then one line is written to the
log file and it tries to use the date when writing the error log and
of course the generates an exception. This spins to a predictable
core dump. To fix, remove the return std::getenv("TZ"); and uncomment
the old code and recompile etc.
00522 std::string libatf::date::get_tz()
00523 {
00524 return std::getenv("TZ");
00525 /* tzset();
00526 return get_tz( daylight != 0 );*/
00527 }
00528
00529 std::string libatf::date::get_tz(bool is_dst)
00530 {
00531 return std::getenv("TZ");
00532 /* tzset();
00533 if( is_dst && tzname[1] != NULL && tzname[1][0] != 0 )
00534 return tzname[1];
00535 return tzname[0];*/
00536 }
-Boadie |