Re: turning on debugging for Mozilla LDAP CSDK

"Kris" <[email protected]>
Newsgroups gmane.comp.mozilla.devel.directory
Organization http://groups.google.com
Message-ID <[email protected]>
I found that the issue with the core was due to a missing HPUXPA32
patch on 11.11 machines.  After applying patch PHCO_35743, I did not
get cores any longer.  Here is the description of this patch:

PHCO_35743: ABORT
		ABORT ( SR:8606463292 CR:JAGag19081 )
		Applications using the getipnodebyname(3N) API abort
		with a core when the API is invoked on a system,
		which does not have IPv6 installed.

		ABORT ( SR:8606469657 CR:JAGag24844 )
		When_M_CACHE_OPTS and _M_SBA_OPTS malloc(3C)
		tunables are enabled a NULL pointer may be
		dereferenced during cache retirement. This
		causes the application to core dump.



PHCO_35743:
	( SR:8606459906 CR:JAGag16006 )
	fwrite(3S) does not set errno to EFBIG on partially
	successful write.

	Resolution:
	Modified the fwrite(3S) code to take care of partial write
	behavior.

	( SR:8606463292 CR:JAGag19081 )
	getipnodebyname(3N) API  frees the buffer variables without
	first allocating  them. This occurs due to a socket(2N)
	system call failure, on a system that does not have the IPv6
	or IPv4 bundles  installed.

	Resolution:
	getipnodebyname(3N) API has been modified to initialize the
	buffer variables.

	( SR:8606469657 CR:JAGag24844 )
	When_M_CACHE_OPTS and _M_SBA_OPTS malloc(3C) tunables are
	enabled a NULL pointer may be dereferenced during cache
	retirement. This causes the application to core dump.

	Resolution:
	Checks are added in malloc(3C) so that NULL pointer
	dereference is avoided during thread local cache
	retirement.

Thanks for all your help!
Kris

On Mar 13, 3:24 pm, Anton Bobrov <[email protected]> wrote:
> autoconf build defaults to DEBUG build. for sans autoconf builds
> you can define the following when invoking make to enable DEBUG:
>
> BUILD_OPT= BUILD_DEBUG=full DEBUG=full MOZ_DEBUG=1
>
> btw, the stack trace you posted kinda rings a bell. dont recall
> any details the now but i think that HPUX system should get up
> to date on their latest patches before you carry on any further.
> specific patches to look out for are related to their dual IP
> stack implementation which was pretty buggy but i would go with
> geting all the latest patches anyway so there are no loose ends
> .
>
> Kris wrote:
> > Hello,
>
> > Can anyone tell me how to turn on debugging when compiling LDAP CDSK?
>
> > I am trying to debug a core on HP-UX PA when I connect to the
> > Directory server through SSL.  Here is my stack:
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.