Segfault with make bootrap on master

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Segfault with make bootrap on master

Stephen Berman
I just pulled from master at commit
c3ac93bb9ff8b1fe1fc32f99c725e6cc209aa6ca
and executed `make boostrap' and it segfaulted:

Dumping under the name emacs
22386272 of 33554432 static heap bytes used
96702 pure bytes used
mv -f emacs bootstrap-emacs
make -C ../lisp compile-first EMACS="../src/bootstrap-emacs"
make[3]: Entering directory '/mnt/data/steve/lib/emacs/lfs/lisp'
  ELC      /home/steve/git/emacs-master/lisp/emacs-lisp/macroexp.elc
  ELC      /home/steve/git/emacs-master/lisp/emacs-lisp/cconv.elc
  ELC      /home/steve/git/emacs-master/lisp/emacs-lisp/byte-opt.elc
  ELC      /home/steve/git/emacs-master/lisp/emacs-lisp/bytecomp.elc
  ELC      /home/steve/git/emacs-master/lisp/emacs-lisp/autoload.elc
make[3]: Leaving directory '/mnt/data/steve/lib/emacs/lfs/lisp'
make -C ../lisp autoloads EMACS="../src/bootstrap-emacs"
make[3]: Entering directory '/mnt/data/steve/lib/emacs/lfs/lisp'
make -C ../leim all EMACS="../src/bootstrap-emacs"
make[4]: Entering directory '/mnt/data/steve/lib/emacs/lfs/leim'
  GEN      /home/steve/git/emacs-master/leim/../lisp/leim/quail/CCDOSPY.el
Converting /home/steve/git/emacs-master/leim/CXTERM-DIC/CCDOSPY.tit to quail-package...
Decoding with coding system euc-china...
Processing header part...
Formatting translation rules...
  GEN      /home/steve/git/emacs-master/leim/../lisp/leim/quail/Punct.el
Converting /home/steve/git/emacs-master/leim/CXTERM-DIC/Punct.tit to quail-package...
Decoding with coding system euc-china...
Processing header part...
Fatal error 11: Segmentation fault
Backtrace:
../src/bootstrap-emacs[0x50a10d]
../src/bootstrap-emacs[0x4f046e]
../src/bootstrap-emacs[0x508259]
../src/bootstrap-emacs[0x5082c7]
../src/bootstrap-emacs[0x5082e2]
../src/bootstrap-emacs[0x5083ab]
/lib/libpthread.so.0(+0x121c0)[0x7fed5d8e91c0]
../src/bootstrap-emacs[0x47ce1f]
../src/bootstrap-emacs[0x47d07e]
../src/bootstrap-emacs[0x480739]
../src/bootstrap-emacs[0x48139e]
../src/bootstrap-emacs[0x481b2e]
../src/bootstrap-emacs[0x562db4]
../src/bootstrap-emacs[0x5658f7]
../src/bootstrap-emacs[0x562b96]
../src/bootstrap-emacs[0x5630b0]
../src/bootstrap-emacs[0x56547b]
../src/bootstrap-emacs[0x562b96]
../src/bootstrap-emacs[0x5630b0]
../src/bootstrap-emacs[0x56547b]
../src/bootstrap-emacs[0x562b96]
../src/bootstrap-emacs[0x5630b0]
../src/bootstrap-emacs[0x565c26]
../src/bootstrap-emacs[0x562b96]
../src/bootstrap-emacs[0x5630b0]
../src/bootstrap-emacs[0x5630cb]
../src/bootstrap-emacs[0x565c77]
../src/bootstrap-emacs[0x562b96]
../src/bootstrap-emacs[0x5630b0]
../src/bootstrap-emacs[0x565c26]
../src/bootstrap-emacs[0x562b96]
../src/bootstrap-emacs[0x5630b0]
../src/bootstrap-emacs[0x563496]
../src/bootstrap-emacs[0x562836]
../src/bootstrap-emacs[0x562f51]
../src/bootstrap-emacs[0x5630b0]
../src/bootstrap-emacs[0x562b96]
../src/bootstrap-emacs[0x565ced]
../src/bootstrap-emacs[0x562b96]
../src/bootstrap-emacs[0x5630b0]
../src/bootstrap-emacs[0x55722e]
...
/bin/sh: line 1: 22677 Segmentation fault      EMACSLOADPATH= '../src/bootstrap-emacs' -batch --no-site-file --no-site-lisp -l titdic-cnv -f batch-titdic-convert -dir /home/steve/git/emacs-master/leim/../lisp/leim/quail /home/steve/git/emacs-master/leim/CXTERM-DIC/Punct.tit
make[4]: *** [Makefile:106: /home/steve/git/emacs-master/leim/../lisp/leim/quail/Punct.el] Error 139
make[4]: Leaving directory '/mnt/data/steve/lib/emacs/lfs/leim'
make[3]: *** [Makefile:350: leim] Error 2
make[3]: Leaving directory '/mnt/data/steve/lib/emacs/lfs/lisp'
make[2]: *** [Makefile:730: /home/steve/git/emacs-master/lisp/loaddefs.el] Error 2
make[2]: Leaving directory '/mnt/data/steve/lib/emacs/lfs/src'
make[1]: *** [Makefile:416: src] Error 2
make[1]: Leaving directory '/mnt/data/steve/lib/emacs/lfs'
make: *** [Makefile:1099: bootstrap] Error 2

Any idea what the problem is?

Steve Berman

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Segfault with make bootrap on master

Noam Postavsky-2
Stephen Berman <[hidden email]> wrote:

>   GEN      /home/steve/git/emacs-master/leim/../lisp/leim/quail/Punct.el
> Converting /home/steve/git/emacs-master/leim/CXTERM-DIC/Punct.tit to
> quail-package...
> Decoding with coding system euc-china...
> Processing header part...
> Fatal error 11: Segmentation fault

> /bin/sh: line 1: 22677 Segmentation fault      EMACSLOADPATH=
> '../src/bootstrap-emacs' -batch --no-site-file --no-site-lisp -l titdic-cnv
> -f batch-titdic-convert -dir
> /home/steve/git/emacs-master/leim/../lisp/leim/quail
> /home/steve/git/emacs-master/leim/CXTERM-DIC/Punct.tit

I can reproduce this (use 'rm lisp/leim/quail/Punct.el' to avoid
needing a whole bootstrap).

I get:

lisp.h:1399: Emacs fatal error: assertion failed: VECTORLIKEP (a)
Fatal error 6: Aborted

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Segfault with make bootrap on master

Eli Zaretskii
> From: Noam Postavsky <[hidden email]>
> Date: Sat, 5 Aug 2017 09:11:44 -0400
> Cc: Emacs developers <[hidden email]>
>
> lisp.h:1399: Emacs fatal error: assertion failed: VECTORLIKEP (a)
> Fatal error 6: Aborted

Can you show a backtrace and tell what object is 'a' in that case?

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Segfault with make bootrap on master

Eli Zaretskii
In reply to this post by Noam Postavsky-2
> From: Noam Postavsky <[hidden email]>
> Date: Sat, 5 Aug 2017 09:11:44 -0400
> Cc: Emacs developers <[hidden email]>
>
> Stephen Berman <[hidden email]> wrote:
>
> >   GEN      /home/steve/git/emacs-master/leim/../lisp/leim/quail/Punct.el
> > Converting /home/steve/git/emacs-master/leim/CXTERM-DIC/Punct.tit to
> > quail-package...
> > Decoding with coding system euc-china...
> > Processing header part...
> > Fatal error 11: Segmentation fault
>
> > /bin/sh: line 1: 22677 Segmentation fault      EMACSLOADPATH=
> > '../src/bootstrap-emacs' -batch --no-site-file --no-site-lisp -l titdic-cnv
> > -f batch-titdic-convert -dir
> > /home/steve/git/emacs-master/leim/../lisp/leim/quail
> > /home/steve/git/emacs-master/leim/CXTERM-DIC/Punct.tit
>
> I can reproduce this (use 'rm lisp/leim/quail/Punct.el' to avoid
> needing a whole bootstrap).
>
> I get:
>
> lisp.h:1399: Emacs fatal error: assertion failed: VECTORLIKEP (a)
> Fatal error 6: Aborted

Should be fixed now.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Segfault with make bootrap on master

Noam Postavsky-2
On Sat, Aug 5, 2017 at 9:29 AM, Eli Zaretskii <[hidden email]> wrote:
>>
>> lisp.h:1399: Emacs fatal error: assertion failed: VECTORLIKEP (a)
>> Fatal error 6: Aborted
>
> Should be fixed now.

Yeah, that avoids the segfault. Attached is the backtrace from
earlier, for reference.

bad-charset.txt (8K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Segfault with make bootrap on master

Eli Zaretskii
> From: Noam Postavsky <[hidden email]>
> Date: Sat, 5 Aug 2017 09:33:43 -0400
> Cc: Stephen Berman <[hidden email]>,
> Emacs developers <[hidden email]>
>
> Attached is the backtrace from earlier, for reference.

Thanks.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Segfault with make bootrap on master

Eli Zaretskii
In reply to this post by Noam Postavsky-2
> From: Noam Postavsky <[hidden email]>
> Date: Sat, 5 Aug 2017 09:33:43 -0400
> Cc: Stephen Berman <[hidden email]>,
> Emacs developers <[hidden email]>
>
> On Sat, Aug 5, 2017 at 9:29 AM, Eli Zaretskii <[hidden email]> wrote:
> >>
> >> lisp.h:1399: Emacs fatal error: assertion failed: VECTORLIKEP (a)
> >> Fatal error 6: Aborted
> >
> > Should be fixed now.
>
> Yeah, that avoids the segfault.

OK, I found the reason why it segfaulted, and fixed it for real (I
hope).

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Segfault with make bootrap on master

Noam Postavsky-2
On Sat, Aug 5, 2017 at 9:48 AM, Eli Zaretskii <[hidden email]> wrote:
>
> OK, I found the reason why it segfaulted, and fixed it for real (I
> hope).

Works here.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Segfault with make bootrap on master

Eli Zaretskii
> From: Noam Postavsky <[hidden email]>
> Date: Sat, 5 Aug 2017 09:54:11 -0400
> Cc: Stephen Berman <[hidden email]>,
> Emacs developers <[hidden email]>
>
> On Sat, Aug 5, 2017 at 9:48 AM, Eli Zaretskii <[hidden email]> wrote:
> >
> > OK, I found the reason why it segfaulted, and fixed it for real (I
> > hope).
>
> Works here.

Thanks for testing.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Segfault with make bootrap on master

Stephen Berman
On Sat, 05 Aug 2017 17:02:11 +0300 Eli Zaretskii <[hidden email]> wrote:

>> From: Noam Postavsky <[hidden email]>
>> Date: Sat, 5 Aug 2017 09:54:11 -0400
>> Cc: Stephen Berman <[hidden email]>,
>> Emacs developers <[hidden email]>
>>
>> On Sat, Aug 5, 2017 at 9:48 AM, Eli Zaretskii <[hidden email]> wrote:
>> >
>> > OK, I found the reason why it segfaulted, and fixed it for real (I
>> > hope).
>>
>> Works here.
>
> Thanks for testing.

FTR, works for me too; thanks for fixing it.

Steve Berman

Loading...