Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Apr 2021 10:37:40 +0200 (CEST)
From:      Ronald Klop <ronald-lists@klop.ws>
To:        freebsd-ports@freebsd.org, freebsd-arm@freebsd.org
Subject:   Illegal instruction on new port mongodb49 on arm64
Message-ID:  <1071728798.124.1617266260257@localhost>

next in thread | raw e-mail | index | archive | help
Hi,

I created a new port for mongodb49: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254631
It compiles fine: https://www.klop.ws/mongodb49-4.9.0.r0.log

When I run an application I get "Illegal Instruction" error.

==============================================================
[root@rpi4 /tmp]# lldb /usr/local/bin/mongo
(lldb) target create "/usr/local/bin/mongo"
Current executable set to '/usr/local/bin/mongo' (aarch64).
(lldb) run
Process 55420 launching
Process 55420 launched: '/usr/local/bin/mongo' (aarch64)
Process 55420 stopped
* thread #1, name = 'mongo', stop reason = signal SIGILL: illegal trap
    frame #0: 0x00000000016a320c mongo`___lldb_unnamed_symbol32$$mongo + 1784
mongo`___lldb_unnamed_symbol32$$mongo:
->  0x16a320c <+1784>: ldaddal x9, x8, [x8]
    0x16a3210 <+1788>: ldr    q0, [x11]
    0x16a3214 <+1792>: mov    w10, #0x20
    0x16a3218 <+1796>: strb   wzr, [sp, #0x68]
(lldb) bt
* thread #1, name = 'mongo', stop reason = signal SIGILL: illegal trap
  * frame #0: 0x00000000016a320c mongo`___lldb_unnamed_symbol32$$mongo + 1784
    frame #1: 0x0000000042b29b58
    frame #2: 0x0000000042b289f8

==============================================================
[root@rpi4 /tmp]# /usr/local/bin/mongo
Illegal instruction (core dumped)

[root@rpi4 /tmp]# lldb /usr/local/bin/mongo -c /var/tmp/0.mongo.0.55421.core
(lldb) target create "/usr/local/bin/mongo" --core "/var/tmp/0.mongo.0.55421.core"
Core file '/var/tmp/0.mongo.0.55421.core' (aarch64) was loaded.

(lldb) bt
* thread #1, name = 'mongo', stop reason = signal SIGILL
  * frame #0: 0x00000000016a320c mongo`___lldb_unnamed_symbol32$$mongo + 1784
    frame #1: 0x0000000042b29b58 ld-elf.so.1`objlist_call_init(list=<unavailable>, lockstate=<unavailable>) at rtld.c:2855:7
    frame #2: 0x0000000042b289f8 ld-elf.so.1`_rtld(sp=<unavailable>, exit_proc=<unavailable>, objp=<unavailable>) at rtld.c:828:5
    frame #3: 0x0000000042b264d8 ld-elf.so.1`.rtld_start at rtld_start.S:41

==============================================================

NB: The default of the port uses LTO. I disabled it on my build system because of lack of memory.

Can anybody help me with this?

It would be interesting to know if this also happens on amd64.

Regards,
Ronald.
 
From owner-freebsd-ports@freebsd.org  Thu Apr  1 08:49:06 2021
Return-Path: <owner-freebsd-ports@freebsd.org>
Delivered-To: freebsd-ports@mailman.nyi.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
 by mailman.nyi.freebsd.org (Postfix) with ESMTP id 61B815C4A36
 for <freebsd-ports@mailman.nyi.freebsd.org>;
 Thu,  1 Apr 2021 08:49:06 +0000 (UTC)
 (envelope-from dewayne@heuristicsystems.com.au)
Received: from hermes.heuristicsystems.com.au (hermes.heuristicsystems.com.au
 [203.41.22.115])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256
 client-signature RSA-PSS (2560 bits) client-digest SHA256)
 (Client CN "hermes.heuristicsystems.com.au",
 Issuer "Heuristic Systems Type 4 Host CA" (not verified))
 by mx1.freebsd.org (Postfix) with ESMTPS id 4F9xgN4tlMz3CFc
 for <freebsd-ports@freebsd.org>; Thu,  1 Apr 2021 08:49:03 +0000 (UTC)
 (envelope-from dewayne@heuristicsystems.com.au)
Received: from [10.0.5.3] (noddy.hs [10.0.5.3]) (authenticated bits=0)
 by hermes.heuristicsystems.com.au (8.15.2/8.15.2) with ESMTPSA id
 1318mOAD006603
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);
 Thu, 1 Apr 2021 19:48:26 +1100 (AEDT)
 (envelope-from dewayne@heuristicsystems.com.au)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple;
 d=heuristicsystems.com.au; s=hsa; t=1617266906; x=1617871707;
 bh=8mMMIJGj4dNcKyFZGsep8eqfPfMbL3k5HKhI4lBrYzk=;
 h=Subject:To:From:Cc:Message-ID:Date;
 b=P1SYiSPYa7S/OWDpUDKjhzRNglyE3/PQECkh98J3F/EUaGOIKJ6z6GRj192gZv4NJ
 ovr1kkqclvgHs3EWRRCwnXl9Va25r0Srvq4iymBW6AXr1vMTmUoBCtjrsVzksm7SLQ
 u8/f5IbHaaEBshwN+nKoPumzpsJNbVVEkl0a+FboDnHnxJvIx0FU6
X-Authentication-Warning: b3.hs: Host noddy.hs [10.0.5.3] claimed to be
 [10.0.5.3]
Subject: Re: No update for a day on ports?
To: freebsd-ports@freebsd.org
References: <20210401082247.668e4394@zeta.dino.sk>
 <YGV0EvmP3Hkk5543@mail.bsd4all.net>
From: Dewayne Geraghty <dewayne@heuristicsystems.com.au>
Cc: freebsd-ports@dino.sk
Message-ID: <3b7de439-12a1-70a4-7aec-8b2a9fde38ba@heuristicsystems.com.au>
Date: Thu, 1 Apr 2021 19:47:01 +1100
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:78.0) Gecko/20100101
 Thunderbird/78.8.1
MIME-Version: 1.0
In-Reply-To: <YGV0EvmP3Hkk5543@mail.bsd4all.net>
Content-Type: text/plain; charset=utf-8
Content-Language: en-GB
Content-Transfer-Encoding: 7bit
X-Rspamd-Queue-Id: 4F9xgN4tlMz3CFc
X-Spamd-Bar: ---
Authentication-Results: mx1.freebsd.org;
 dkim=pass header.d=heuristicsystems.com.au header.s=hsa header.b=P1SYiSPY;
 dmarc=none;
 spf=pass (mx1.freebsd.org: domain of dewayne@heuristicsystems.com.au
 designates 203.41.22.115 as permitted sender)
 smtp.mailfrom=dewayne@heuristicsystems.com.au
X-Spamd-Result: default: False [-3.20 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[];
 R_SPF_ALLOW(-0.20)[+mx]; HAS_XAW(0.00)[]; TO_DN_NONE(0.00)[];
 RCVD_DKIM_ARC_DNSWL_MED(-0.50)[];
 RCVD_IN_DNSWL_MED(-0.20)[203.41.22.115:from];
 RCPT_COUNT_TWO(0.00)[2];
 DKIM_TRACE(0.00)[heuristicsystems.com.au:+];
 FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+];
 SUBJECT_ENDS_QUESTION(1.00)[];
 ASN(0.00)[asn:1221, ipnet:203.40.0.0/13, country:AU];
 MID_RHS_MATCH_FROM(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000];
 ARC_NA(0.00)[];
 R_DKIM_ALLOW(-0.20)[heuristicsystems.com.au:s=hsa];
 FROM_HAS_DN(0.00)[];
 DWL_DNSWL_MED(-2.00)[heuristicsystems.com.au:dkim];
 NEURAL_SPAM_SHORT(1.00)[1.000]; NEURAL_HAM_LONG(-1.00)[-1.000];
 MIME_GOOD(-0.10)[text/plain];
 DMARC_NA(0.00)[heuristicsystems.com.au];
 TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2];
 RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-ports]
X-BeenThere: freebsd-ports@freebsd.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: Porting software to FreeBSD <freebsd-ports.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-ports>,
 <mailto:freebsd-ports-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-ports/>;
List-Post: <mailto:freebsd-ports@freebsd.org>
List-Help: <mailto:freebsd-ports-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-ports>,
 <mailto:freebsd-ports-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 01 Apr 2021 08:49:06 -0000

On 1/04/2021 6:19 pm, Herbert J. Skuhra wrote:
> https://wiki.freebsd.org/git
> 
Thanks Milan for bringing this to everyone's attention.

Would appreciate if anyone can provide insight as to the 4 git commands
that I need to function, in a manner similar to the way I use svnlite
use.  Git equivalents for:

svnlite update /usr/ports
svnlite update -r '{$YYYY-$MM-$DD}' /usr/ports/$category/$port
svnlite log -l $N /usr/ports/$category/$port
svnlite diff /usr/ports/$category/$port

I'm sure many other users would have a similar usage (and similar
non-knowledge of git)

Is this
git clone -o freebsd --config
remote.freebsd.fetch='+refs/notes/*:refs/notes/*'
https://git.freebsd.org/${repo}.git
really the equivalent of
svnlite update /usr/ports
I have a few changes to the infrastructure that I don't want to loose by
overwriting those changes.

As a minor aside, has anyone stated the reason why the user-base of base
or ports are moving to git?  (And its greatly appreciated that 12-stable
will continue to feed svn as it provides an opportunity for users to
migrate to, what for many, is new)

Kind regards, Dewayne.
PS We use ports to build, no remote packages (since FreeBSD 4).



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1071728798.124.1617266260257>