emacs-devel
[Top][All Lists]
Advanced

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

Re: Dumper problems and a possible solutions


From: Eli Zaretskii
Subject: Re: Dumper problems and a possible solutions
Date: Wed, 25 Jun 2014 21:36:24 +0300

> Date: Wed, 25 Jun 2014 22:30:22 +0400
> From: Dmitry Antipov <address@hidden>
> Cc: address@hidden
> 
> On 06/25/2014 10:08 PM, Rich Felker wrote:
> 
> > Are there such objects that need to be preserved across dumping?
> 
> I don't know, and the worst thing is that we can't control over this.
> With my debug build, 'ldd src/temacs  | wc -l' shows 112 external
> libraries. What if just one of these libraries uses malloc() to allocate
> an internal object in __attribute__((constructor)) function?

If they do, the dumped Emacs will likely crash.  Unless these
libraries invoke those constructors again when the dumped Emacs comes
up, in which case this problem doesn't exist anyway, besides some
wasted memory that cannot be used.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]