Bug 28668 - Misplaced sbcl x86_64 core file
Summary: Misplaced sbcl x86_64 core file
Status: RESOLVED INVALID
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 8
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Jani Välimaa
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-28 11:00 CEST by Artem Kurashov
Modified: 2021-03-28 17:35 CEST (History)
1 user (show)

See Also:
Source RPM: sbcl-2.0.10-4.mga8.src.rpm
CVE:
Status comment:


Attachments

Description Artem Kurashov 2021-03-28 11:00:54 CEST
For x86_64 sbcl build its core file must be placed into the /usr/lib64 directory, not in the /usr/lib .

In the current situation sbcl x86_64 fails to run without additional option:
> sbcl
fatal error encountered in SBCL pid 17481 tid 17481:
Can't find sbcl.core

> sbcl --core /usr/lib/sbcl/sbcl.core
This is SBCL 2.0.10-4.mga8, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses.  See the CREDITS and COPYING files in the
distribution for more information.
*
Comment 1 Jani Välimaa 2021-03-28 14:11:38 CEST
I'll check this one.

Assignee: bugsquad => jani.valimaa

Comment 2 Aurelien Oudelet 2021-03-28 14:19:05 CEST
Thanks Jani.

CC: (none) => ouaurelien

Comment 3 Jani Välimaa 2021-03-28 15:01:07 CEST
I can't reproduce this. Not on mga8 nor cauldron.

$ sbcl
This is SBCL 2.0.10-4.mga8, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses.  See the CREDITS and COPYING files in the
distribution for more information.
*
Comment 4 Jani Välimaa 2021-03-28 15:10:40 CEST
(In reply to Artem Kurashov from comment #0)
> For x86_64 sbcl build its core file must be placed into the /usr/lib64
> directory, not in the /usr/lib .
> 
> In the current situation sbcl x86_64 fails to run without additional option:
> > sbcl
> fatal error encountered in SBCL pid 17481 tid 17481:
> Can't find sbcl.core
> 

Have you set $SBCL_HOME? What's the output of 'echo $SBCL_HOME'?
Comment 5 Jani Välimaa 2021-03-28 15:48:50 CEST
Did some tests and I can't produce the issue even after exporting SBCL_HOME with 'bad' value.

$ cat /etc/version
8 3 official

$ echo $SBCL_HOME
/foo/bar/sbcl

$ sbcl
This is SBCL 2.0.10-4.mga8, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses.  See the CREDITS and COPYING files in the
distribution for more information.
* (SB-INT:SBCL-HOMEDIR-PATHNAME)
#P"/usr/bin/../lib/sbcl/"
* (posix-getenv "SBCL_HOME")
"/foo/bar/sbcl"
*
Comment 6 Artem Kurashov 2021-03-28 16:23:08 CEST
(In reply to Jani Välimaa from comment #4)
> Have you set $SBCL_HOME? What's the output of 'echo $SBCL_HOME'?
Hm, yes, somehow $SBCL_HOME landed into my ~/.bashrc:
$ echo $SBCL_HOME
/usr/lib64/sbcl

Excuse me for troubling.
Comment 7 Jani Välimaa 2021-03-28 17:35:53 CEST
Closing as INVALID. Feel free to reopen if needed.

Resolution: (none) => INVALID
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.