Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: emacs core dump: getenv problem?
On Tue, May 21, 2013 at 03:46:24PM +0200, Thomas Klausner wrote:
> On Mon, May 20, 2013 at 02:43:17AM +0400, Valeriy E. Ushakov wrote:
> > On Mon, May 20, 2013 at 00:33:01 +0200, Thomas Klausner wrote:
> >
> > > (gdb) p environ[0]
> > > $4 = 0xb <Address 0xb out of bounds>
> > > (gdb) p environ[1]
> > > $5 = 0x0
> > >
> > > Any ideas how this can happen?
> >
> > emacs has a symbol named "environ" and something in ld.so broke
> > recently to make _env.c access emacs symbol instead of ours?
>
> It's not recent breakage. I just took some time until I first started
> emacs in a debugger to take a look at it.
Isn't the environment pointer array traditionally visible via a global
pointer? I thought that was 'environ'.
It is one of the issues that makes writing putenv() difficult.
David
--
David Laight: david%l8s.co.uk@localhost
Home |
Main Index |
Thread Index |
Old Index