Bug 254117 - lang/guile: installed port dumps core on startup
Summary: lang/guile: installed port dumps core on startup
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Muhammad Moinur Rahman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-07 22:41 UTC by rsmith
Modified: 2021-03-08 11:44 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (bofh)


Attachments
Patch to remove stripping the precompiled modules. (375 bytes, patch)
2021-03-07 22:41 UTC, rsmith
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description rsmith 2021-03-07 22:41:59 UTC
Created attachment 223080 [details]
Patch to remove stripping the precompiled modules.

After installing the port (be it from a package or a local build), the "guile" program dumps core on startup:

    Pre-boot error; key: misc-error, args: ("load-thunk-from-memory" "expected p_filesz == p_memsz" () #f)Abort (core dumped)

Since I had previously built guile-3.0.0, which ran without problems, I started looking at the differences.

In the post-install phase of the port, the pre-compiled modules (with the "go" extension) are stripped, which is not something that I had done. This also explains the error message.

So I removed the post-install target, rebuilt and re-installed the port and it works.
I ran "check-guile -i /usr/local/bin/guile" and it passed OK:

Totals for this test run:
passes:                 42787
failures:               46
unexpected passes:      0
expected failures:      10
unresolved test cases:  66
untested test cases:    1
unsupported test cases: 1
errors:                 0

This is identical to the result I got for 3.0.0.

So I've added a patch to remove the stripping of the precompiled modules.
Comment 1 rsmith 2021-03-07 22:48:22 UTC
Not sure if this is platform specific, but I'm on FreeBSD 13.0-STABLE (stable/13-6f6c64800), amd64 platform.
Comment 2 commit-hook freebsd_committer freebsd_triage 2021-03-08 10:23:22 UTC
A commit references this bug:

Author: bofh
Date: Mon Mar  8 10:22:30 UTC 2021
New revision: 567829
URL: https://svnweb.freebsd.org/changeset/ports/567829

Log:
  lang/guile: Fix core dump on stripped modules

  PR:			254117
  Submitted by:		rsmith@xs4all.nl

Changes:
  head/lang/guile/Makefile