Bug 241104

Summary: textproc/rubygem-sassc package problem
Product: Ports & Packages Reporter: Maksim E. Kozlov <maksim.e.kozlov>
Component: Individual Port(s)Assignee: Po-Chuan Hsieh <sunpoet>
Status: Closed FIXED    
Severity: Affects Only Me CC: sunpoet, swills, w.schwarzenfeld
Priority: --- Flags: w.schwarzenfeld: maintainer-feedback? (sunpoet)
Version: Latest   
Hardware: amd64   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241063
Attachments:
Description Flags
original error output none

Description Maksim E. Kozlov 2019-10-06 17:29:22 UTC
Created attachment 208143 [details]
original error output

Hi,

I think that something wrong with creating package of rubygem-sassc port. Originally I run into troubles with GitLab (unicorn, to be exact) which ceased to launch after update (I use packages). Unicorn's log says (full outout of this error in the attachment):

/usr/local/lib/ruby/gems/2.6/gems/ffi-1.11.1/lib/ffi/library.rb:112: [BUG] Illegal instruction at 0x000000080c9890ff
ruby 2.6.5p114 (2019-10-01 revision 67812) [amd64-freebsd12]

After some investigation and googling I found out that error happens on trying to open libsass.so library (by dlopen call, as I understand) and did some experiments.

At firts, I checked it with dltest:

# dltest /usr/local/lib/ruby/gems/2.6/gems/sassc-2.2.1/lib/sassc/libsass.so
Illegal instruction (core dumped)

Then I reinstalled rubygem-sassc from port and check it again:

# dltest /usr/local/lib/ruby/gems/2.6/gems/sassc-2.2.1/lib/sassc/libsass.so
SUCCESS: Loaded /usr/local/lib/ruby/gems/2.6/gems/sassc-2.2.1/lib/sassc/libsass.so

GitLab launched correctly and work without errors after this.

After that I saved "good" libsass.so, reinstalled rubygem-sassc as package again and tryed to launch GitLab - without success. Then I replaced original libsass.so by previously saved and tryed to launch GitLab again - it launched an worked correctly.

My system:

# uname -a
FreeBSD felix 12.0-RELEASE-p10 FreeBSD 12.0-RELEASE-p10 r353051 MYKERNEL  amd64

# cat /usr/local/etc/pkg/repos/FreeBSD.conf 
FreeBSD: {
  url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest"
}
Comment 1 Steve Wills freebsd_committer freebsd_triage 2019-10-06 18:11:20 UTC
This is fixed in PR 241063
Comment 2 Maksim E. Kozlov 2019-10-06 18:45:23 UTC
(In reply to Steve Wills from comment #1)

Hi Steve,

I saw mentioned bug report, but you say there that it "builds but is not usable".  I my case it builds and is usable if I do that on my host. And the problem appears only when I install package from official repository. Are you sure that this is the same problem? I saw the patch, but I'm absolutly far from ruby and can't make an opinion about that.
Comment 3 Steve Wills freebsd_committer freebsd_triage 2019-10-20 20:18:02 UTC
Fixed on ports r515060