From owner-freebsd-ppc@freebsd.org Sun May 26 03:16:59 2019 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E805A15BDD48 for ; Sun, 26 May 2019 03:16:58 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5EAD36E709 for ; Sun, 26 May 2019 03:16:58 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: by freefall.freebsd.org (Postfix) id 4FEA84332; Sun, 26 May 2019 03:16:58 +0000 (UTC) Delivered-To: powerpc@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [96.47.72.80]) (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 (4096 bits) client-digest SHA256) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id 4B6964331 for ; Sun, 26 May 2019 03:16:58 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic306-3.consmr.mail.bf2.yahoo.com (sonic306-3.consmr.mail.bf2.yahoo.com [74.6.132.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 77DF46E705 for ; Sun, 26 May 2019 03:16:57 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: h5mUUAoVM1m5K9xLu0TYzK52O42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NgUymIUIwcvy8TC4jGa9asFo7pyMr GBgRhDLJvBbOYkKu8SaoJXxnIjW_dJLUauVzp7wWoWIjrPgCLSQ5SQFNPyZqP.oJJgS27w85nQ1G rNpNO1qoUE65aEMKUarzhwxmfcMzNG9K4y4.C.zAK2XOL4bcuhO0rr9j6lTTfcYmmgBTLvA-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.bf2.yahoo.com with HTTP; Sun, 26 May 2019 03:16:51 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.103]) ([76.115.7.162]) by smtp405.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 7eb2aa92543bebb4d7573df510e88c08; Sun, 26 May 2019 03:16:50 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: 32-bit powerpc FreeBSD head -r347549 ports -r501994: lang/ruby25 build via poudriere failed via SIGSEGV in lib/csu/powerpc/crtsavres.S Message-Id: <5B5EE881-05F4-4256-ACDA-1677B2219696@yahoo.com> Date: Sat, 25 May 2019 20:16:48 -0700 To: ports-list freebsd , "powerpc@freebsd.org" X-Mailer: Apple Mail (2.3445.104.11) X-Rspamd-Queue-Id: 5EAD36E709 X-Spamd-Bar: ------ X-Spamd-Result: default: False [-6.11 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FORGED_RECIPIENTS_FORWARDING(0.00)[]; R_SPF_NEUTRAL(0.00)[?all]; FORWARDED(0.00)[powerpc@localmail.freebsd.org]; MV_CASE(0.50)[]; FREEMAIL_FROM(0.00)[yahoo.com]; TO_DN_SOME(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; MX_GOOD(-0.01)[cached: mta6.am0.yahoodns.net]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.93)[-0.927,0]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:11403, ipnet:96.47.64.0/20, country:US]; MID_RHS_MATCH_FROM(0.00)[]; FORGED_RECIPIENTS(0.00)[freebsd-ports@freebsd.org ..,freebsd-ppc@freebsd.org]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; RCVD_COUNT_FIVE(0.00)[6]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(-2.87)[ip: (-7.40), ipnet: 96.47.64.0/20(-3.71), asn: 11403(-3.18), country: US(-0.06)] X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 May 2019 03:16:59 -0000 [The FreeBSD is from a gcc 4.2.1 toolchain based build.] My poudriere build of lang/ruby25 failed with: --- compile.o --- In file included from ./include/ruby.h:33, from internal.h:15, from compile.c:12: In function 'iseq_build_kw.isra.76', inlined from 'rb_iseq_build_from_ary' at compile.c:7865:30: ./include/ruby/ruby.h:1587:36: warning: argument 1 range [2147483648, = 4294967295] exceeds maximum object size 2147483647 = [-Walloc-size-larger-than=3D] #define RB_ALLOC_N(type,n) = ((type*)ruby_xmalloc2((size_t)(n),sizeof(type))) = ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/ruby/ruby.h:1593:25: note: in expansion of macro 'RB_ALLOC_N' #define ALLOC_N(type,n) RB_ALLOC_N(type,n) ^~~~~~~~~~ compile.c:7765:11: note: in expansion of macro 'ALLOC_N' dvs =3D ALLOC_N(VALUE, (unsigned int)default_len); ^~~~~~~ In file included from ./include/ruby/ruby.h:29, from ./include/ruby.h:33, from internal.h:15, from compile.c:12: compile.c: In function 'rb_iseq_build_from_ary': ./include/ruby/defines.h:195:18: note: in a call to allocation function = 'ruby_xmalloc2' declared here #define xmalloc2 ruby_xmalloc2 ^~~~~~~~~~~~~ ./include/ruby/defines.h:208:7: note: in expansion of macro 'xmalloc2' void *xmalloc2(size_t,size_t) RUBY_ATTR_ALLOC_SIZE((1,2)); ^~~~~~~~ --- miniruby --- linking miniruby --- .rbconfig.time --- --- encdb.h --- generating encdb.h --- .rbconfig.time --- Segmentation fault (core dumped) *** [.rbconfig.time] Error code 139 make[1]: stopped in /wrkdirs/usr/ports/lang/ruby25/work/ruby-2.5.5 --- encdb.h --- Segmentation fault (core dumped) *** [encdb.h] Error code 139 make[1]: stopped in /wrkdirs/usr/ports/lang/ruby25/work/ruby-2.5.5 2 errors The segmentation faults have backtraces like: Core was generated by `./miniruby -I./lib -I. -I.ext/common -n -e = BEGIN{version=3DARGV.shift;mis=3DARGV.dup'. Program terminated with signal SIGSEGV, Segmentation fault. #0 _restgpr_30_x () at /usr/src/lib/csu/powerpc/crtsavres.S:186 186 RESTGPR_X(30) (gdb) bt #0 _restgpr_30_x () at /usr/src/lib/csu/powerpc/crtsavres.S:186 #1 0x0198d998 in rb_sym_intern (ptr=3Dptr@entry=3D0x1a0f3b8 "begin", = len=3Dlen@entry=3D-1317676078, enc=3D) at symbol.c:1026 #2 0x0198da38 in rb_sym_intern_ascii (ptr=3Dptr@entry=3D0x1a0f3b8 = "begin", len=3D-1317676078) at symbol.c:1038 #3 0x0198da6c in rb_sym_intern_ascii_cstr (ptr=3Dptr@entry=3D0x1a0f3b8 = "begin") at symbol.c:1044 #4 0x01987b3c in struct_make_members_list (ar=3Dar@entry=3D0xffffcef4) = at struct.c:359 #5 0x0198a810 in rb_struct_define_without_accessor = (class_name=3Dclass_name@entry=3D0x1a116c0 "Range", super=3D1107060600, = alloc=3Dalloc@entry=3D0x1922b70 ) at struct.c:420 #6 0x01925664 in Init_Range () at range.c:1314 #7 0x018ac2d4 in rb_call_inits () at inits.c:43 #8 0x018869c8 in ruby_setup () at eval.c:61 #9 0x01888a8c in ruby_init () at eval.c:78 #10 0x01812f50 in main (argc=3D, argv=3D) = at ./main.c:41 Core was generated by `./miniruby -I./lib -I. -I.ext/common = ./tool/generic_erb.rb -c -o encdb.h ./templ'. Program terminated with signal SIGSEGV, Segmentation fault. #0 _restgpr_30_x () at /usr/src/lib/csu/powerpc/crtsavres.S:186 186 RESTGPR_X(30) (gdb) bt #0 _restgpr_30_x () at /usr/src/lib/csu/powerpc/crtsavres.S:186 #1 0x0198d998 in rb_sym_intern (ptr=3Dptr@entry=3D0x1a0f3b8 "begin", = len=3Dlen@entry=3D789211824, enc=3D) at symbol.c:1026 #2 0x0198da38 in rb_sym_intern_ascii (ptr=3Dptr@entry=3D0x1a0f3b8 = "begin", len=3D789211824) at symbol.c:1038 #3 0x0198da6c in rb_sym_intern_ascii_cstr (ptr=3Dptr@entry=3D0x1a0f3b8 = "begin") at symbol.c:1044 #4 0x01987b3c in struct_make_members_list (ar=3Dar@entry=3D0xffffcfd4) = at struct.c:359 #5 0x0198a810 in rb_struct_define_without_accessor = (class_name=3Dclass_name@entry=3D0x1a116c0 "Range", super=3D1107060600, = alloc=3Dalloc@entry=3D0x1922b70 ) at struct.c:420 #6 0x01925664 in Init_Range () at range.c:1314 #7 0x018ac2d4 in rb_call_inits () at inits.c:43 #8 0x018869c8 in ruby_setup () at eval.c:61 #9 0x01888a8c in ruby_init () at eval.c:78 #10 0x01812f50 in main (argc=3D, argv=3D) = at ./main.c:41 Where /usr/src/lib/csu/powerpc/crtsavres.S has the ma ro below in use: #define RESTGPR_X(r) _CRTENTRY(__CONCAT(__CONCAT(_restgpr_,r),_x)) = \ lwz r,(-128 + r*4)(11) For reference: (gdb) disass Dump of assembler code for function _restgpr_30_x: =3D> 0x41b3ced8 <+0>: lwz r30,-8(r11) (gdb) info reg r11 r11 0x6f 111 =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)