Opened 8 years ago

Closed 6 years 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:
Platform: x86

Description

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
make

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 8 years ago.
KDL screenshot
temacs.xz (2.6 MB ) - added by tidux 8 years ago.
DANGEROUS, xz-compressed KDL-generating binary

Change History (11)

by tidux, 8 years ago

KDL screenshot

by tidux, 8 years ago

Attachment: temacs.xz added

DANGEROUS, xz-compressed KDL-generating binary

comment:1 by tidux, 8 years ago

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 by korli, 8 years ago

you mean hrev50954.

comment:3 by tidux, 8 years ago

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:

https://bbs.archlinux.org/viewtopic.php?id=197841

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

comment:4 by axeld, 8 years ago

Owner: changed from axeld to nobody
Status: newassigned

comment:5 by miqlas, 7 years ago

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?

Current recipe lives here: https://github.com/haikuports/haikuports/blob/master/app-editors/emacs/emacs-25.2.recipe

Last edited 7 years ago by miqlas (previous) (diff)

comment:6 by korli, 7 years ago

Platform: Allx86

comment:7 by tidux, 6 years ago

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

comment:8 by diver, 6 years ago

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

comment:9 by waddlesplash, 6 years ago

Resolution: fixed
Status: assignedclosed

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

Note: See TracTickets for help on using tickets.