httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@gonzo.ben.algroup.co.uk>
Subject Re: errors
Date Sun, 21 Apr 1996 12:56:24 GMT
Cliff Skolnick wrote:
> 
> 
> OK..so I turned on a paranoid run time checker...
> 
> 
> 
> Read from uninitialized (rui):
> Attempting to read 1 byte at address 0x6b75d
>     which is 93 bytes into a heap block of size 1072 bytes at 0x6b700
> This block was allocated from:
> 	[1] _nss_XbyY_buf_alloc() at 0xef61bc28 
> 	[2] _getpwnam() at 0xef601a38 
> 	[3] uname2id() at line 898 in "util.c"
> 	[4] set_user() at line 628 in "http_core.c"
> 	[5] invoke_cmd() at line 376 in "http_config.c"
> 	[6] handle_command() at line 486 in "http_config.c"
> 	[7] srm_command_loop() at line 495 in "http_config.c"
> 	[8] process_resource_config() at line 559 in "http_config.c"
> 
> Current function is pstrcat
> 
> 
> Looks like this pops up many times, same thing...
> 
> I also see sometimes the offendign function is pstrdup().

(Re my last post) Ooops! I see it gives us the source of the allocation in
great detail but why no stack trace for the current function? Can it be made to
give one?

BTW uname2id does _not_ return a pointer, so the fact that this memory block
is reused would seem to indicate a major cockup somewhere!

Cheers,

Ben.

> 
> 
> Now if data was *just* right, these copies could be falling off the end of
> some buffer and corrupting memory in some cases.  I'll be looking at this
> a little more on sunday, but this may be a hint at the cause of the 
> hostname truncation....
> 
> Cliff
> 
> --
> Cliff Skolnick                                      cliff@organic.com
> 
> "They that can give up essential liberty to obtain a little temporary
> safety deserve neither liberty nor safety." -- Benjamin Franklin, 1759
> 

-- 
Ben Laurie                  Phone: +44 (181) 994 6435
Freelance Consultant and    Fax:   +44 (181) 994 6472
Technical Director          Email: ben@algroup.co.uk
A.L. Digital Ltd,           URL: http://www.algroup.co.uk
London, England.

Mime
View raw message