Hello Igor,
Tuesday, March 6, 2007, 2:57:08 PM, you wrote:
> On Sat, Mar 03, 2007 at 11:48:03AM +0200, Igor Savchenko wrote:
>> (gdb) backtrace
>> #0 0x282cc754 in getenv () from /lib/libc.so.6
>> #1 0x282bea45 in tzsetwall () from /lib/libc.so.6
>> #2 0x282bf121 in localtime_r () from /lib/libc.so.6
>> #3 0x0805f830 in ngx_localtime (s=1172832711, tm=0xbfbfe720) at
>> src/os/unix/ngx_time.c:15
>> #4 0x08056ea4 in ngx_time_update (sec=1172832711, msec=2) at
>> src/core/ngx_times.c:118
>> #5 0x080613a0 in ngx_signal_handler (signo=23) at
>> src/os/unix/ngx_process.c:299
>> #6 0xbfbfff94 in ?? ()
>> #7 0x00000017 in ?? ()
>> #8 0x00000000 in ?? ()
>> #9 0xbfbfe7c0 in ?? ()
>> #10 0x00000002 in ?? ()
>> #11 0x08061360 in ngx_init_signals () at src/os/unix/ngx_process.c:278
>> #12 0x0804f67f in main (argc=134875136, argv=0xbfbfec80) at
>> src/core/nginx.c:353
> p environ[0]
> p environ[1]
> p environ[2]
> p environ[3]
> и так далее пока не будет NULL.
(gdb) p environ[0]
$1 = 0x2000 <Address 0x2000 out of bounds>
(gdb) p environ[1]
$2 = 0x40000000 <Address 0x40000000 out of bounds>
(gdb) p environ[2]
$3 = 0x2000 <Address 0x2000 out of bounds>
(gdb) p environ[3]
$4 = 0xffffffff <Address 0xffffffff out of bounds>
(gdb) p environ[4]
$5 = 0xffffffff <Address 0xffffffff out of bounds>
(gdb) p environ[5]
$6 = 0xffffffff <Address 0xffffffff out of bounds>
(gdb) p environ[6]
$7 = 0x7 <Address 0x7 out of bounds>
(gdb) p environ[7]
$8 = 0x8 <Address 0x8 out of bounds>
(gdb) p environ[8]
$9 = 0x1000 <Address 0x1000 out of bounds>
(gdb) p environ[9]
$10 = 0x1 <Address 0x1 out of bounds>
(gdb) p environ[10]
$11 = 0x1 <Address 0x1 out of bounds>
(gdb) p environ[11]
$12 = 0x1 <Address 0x1 out of bounds>
(gdb) p environ[12]
$13 = 0x0
(gdb) p environ[13]
$14 = 0x0
(gdb)
---------------------------------
Igor V. Savchenko
http://webta.net
mailto: igor@xxxxxxxxx
ICQ: 86915046