[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Strange bug, help needed



On Sun, Jun 22, 2008 at 03:21:38PM +0200, Mike Hommey wrote:
> Hi,
> 
> I am hitting a very strange bug, and my knowledge is limited to
> understand all the ramifications of the issue.
> 
> The bug itself, and how to reproduce it:
> Run iceweasel (3.0~rc2-2) and keep the window open
> Run iceweasel again, which will open a new window in the existing
> iceweasel, and... segfault.
> I only could reproduce this on amd64 (and not on i386, though i haven't
> tested other architectures). I couldn't first reproduce this in a clean
> chroot, until I installed bug-buddy (though removing it afterwards
> doesn't make it work again. Some dependency bug-buddy pulls must be
> catalyzing the problem.

Case closed, I found the culprit:
PR_SetEnv("MOZ_LAUNCHED_CHILD=");

where PR_SetEnv is a macro that ends up being putenv.

So this is why ptmalloc_init was trying to read in libxul.so's content
that was dlclose()d, leading to the segfault. (ptmalloc_init checks the
environment for some MALLOC_* variables)

The remaining mystery to me is why does it only trigger when libgnomeui
(and its dependencies) is loaded. Does dlclose defer munmap ?

Mike


Reply to: