Opened 3 years ago

Closed 16 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

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

Change History (11)

by tidux, 3 years ago

KDL screenshot

by tidux, 3 years ago

Attachment: temacs.xz added

DANGEROUS, xz-compressed KDL-generating binary

comment:1 by tidux, 3 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, 3 years ago

you mean hrev50954.

comment:3 by tidux, 3 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, 3 years ago

Owner: changed from axeld to nobody
Status: newassigned

comment:5 by miqlas, 2 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?

Version 0, edited 2 years ago by miqlas (next)

comment:6 by korli, 2 years ago

Platform: Allx86

comment:7 by tidux, 16 months ago

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

comment:8 by diver, 16 months ago

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

comment:9 by waddlesplash, 16 months 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.