Opened 2 years ago

Closed 10 months ago

#13305 closed bug (fixed)

Emacs bootstrap binary causes KDL

Reported by: tidux Owned by: nobody
Priority: high Milestone: R1
Component: System/Kernel Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: x86


Compiling and linking Emacs 25.1 results in a KDL on latest nightly works (with some private patches, will supply if requested) until the temacs binary is used to attempt to bootstrap the final Emacs binary, at which point temacs crashes and hits the Debugger.

LDFLAGS=-lnetwork ./configure --with-gnutls --without-jpeg --without-png

Attempting to run the src/temacs binary with no arguments after the make fails leads to a KDL. See attached screenshot.

Attachments (2)

emacs-25.1-kdl-haiku2017-02-14T15:09:32-08:00.png (972.7 KB) - added by tidux 2 years ago.
KDL screenshot
temacs.xz (2.6 MB) - added by tidux 2 years ago.
DANGEROUS, xz-compressed KDL-generating binary

Change History (11)

Changed 2 years ago by tidux

KDL screenshot

Changed 2 years ago by tidux

Attachment: temacs.xz added

DANGEROUS, xz-compressed KDL-generating binary

comment:1 Changed 2 years ago by tidux

Updating to hrev40954 appears to have fixed part of the issue, moving it from a KDL to a segfault.

[x86] ~/src/emacs-25.1> src/temacs 
Fatal error 11: Segmentation violationSegmentation violation
[x86] ~/src/emacs-25.1> uname -a
Haiku shredder 1 hrev50954 Feb 14 2017 12:39:07 BePC x86 Haiku

comment:2 Changed 2 years ago by korli

you mean hrev50954.

comment:3 Changed 2 years ago by tidux

OK, so giving up on the virtual memory exhaustion issue for now, I switched to x86_64 and the build process works right up until the creation of the final emacs binary, which segfaults and fails. This exact problem is listed here:

So it might have something to do with position-independent code now.

comment:4 Changed 2 years ago by axeld

Owner: changed from axeld to nobody
Status: newassigned

comment:5 Changed 22 months ago by miqlas

Update: Emacs is already in HaikuPorts. I noticed temacs crash too during the porting, but no KDL on AMD64. Not tested on gcc2h hovewer. Maybe solved already?

Version 0, edited 22 months ago by miqlas (next)

comment:6 Changed 22 months ago by korli

Platform: Allx86

comment:7 Changed 11 months ago by tidux

Emacs 26.1 from Haikuports works on nightlies now. This issue can be closed.

comment:8 Changed 11 months ago by diver

Does the attached binary in temacs.xz​ work now?

comment:9 Changed 10 months ago by waddlesplash

Resolution: fixed
Status: assignedclosed

The comments above say it now segfaults instead of KDLs, so, "yes".

Note: See TracTickets for help on using tickets.