From owner-freebsd-i386@FreeBSD.ORG Mon Nov 4 09:40:00 2013 Return-Path: Delivered-To: freebsd-i386@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 64BCF66E for ; Mon, 4 Nov 2013 09:40:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 42BD52763 for ; Mon, 4 Nov 2013 09:40:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rA49e04J029348 for ; Mon, 4 Nov 2013 09:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rA49e06i029338; Mon, 4 Nov 2013 09:40:00 GMT (envelope-from gnats) Resent-Date: Mon, 4 Nov 2013 09:40:00 GMT Resent-Message-Id: <201311040940.rA49e06i029338@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-i386@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Motiejus Jakštys Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 54B0259F for ; Mon, 4 Nov 2013 09:39:22 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4220F2752 for ; Mon, 4 Nov 2013 09:39:22 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id rA49dMtB079964 for ; Mon, 4 Nov 2013 09:39:22 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id rA49dMPD079963; Mon, 4 Nov 2013 09:39:22 GMT (envelope-from nobody) Message-Id: <201311040939.rA49dMPD079963@oldred.freebsd.org> Date: Mon, 4 Nov 2013 09:39:22 GMT From: Motiejus Jakštys To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: i386/183651: Failed to compile erlang R15B03-1 with DTrace X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Nov 2013 09:40:00 -0000 >Number: 183651 >Category: i386 >Synopsis: Failed to compile erlang R15B03-1 with DTrace >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-i386 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Nov 04 09:40:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Motiejus Jakštys >Release: FreeBSD 10.0-BETA2 r257166 (i386) >Organization: 80 SYMBOLS >Environment: FreeBSD 10.0-BETA2 #0 r257166 Sorry, no full output now. Will modify later. >Description: I get this error when trying to compile: gmake[5]: Entering directory `/usr/ports/lang/erlang/work/otp_src_R15B03/lib/hipe/rtl' erlc -W +debug_info +inline -o../ebin hipe_rtl.erl gmake[5]: *** [../ebin/hipe_rtl.beam] Segmentation fault (core dumped) FreeBSD 10.0-BETA2 #0 r257166 This happens only when DTrace configuration option is set. If DTrace is off, all works fine. Looks like dtrace userland/kernelland are working: # :/usr/ports/lang/erlang # dtrace -n 'syscall:::entry { @num[execname] = count(); }' dtrace: description 'syscall:::entry ' matched 536 probes dtrace: buffer size lowered to 6m dtrace: aggregation size lowered to 3m gdb dump: /usr/ports/lang/erlang/work/otp_src_R15B03/lib/hipe/main# gdb ../../../bin/i386-portbld-freebsd10.0/beam beam.core [8/1973] GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd"... Core was generated by `beam'. Program terminated with signal 11, Segmentation fault. Reading symbols from /lib/libutil.so.9...done. Loaded symbols for /lib/libutil.so.9 Reading symbols from /lib/libm.so.5...done. Loaded symbols for /lib/libm.so.5 Reading symbols from /usr/lib/libelf.so.1...done. Loaded symbols for /usr/lib/libelf.so.1 Reading symbols from /lib/libncurses.so.8...done. Loaded symbols for /lib/libncurses.so.8 Reading symbols from /lib/libthr.so.3...done. Loaded symbols for /lib/libthr.so.3 Reading symbols from /lib/libc.so.7...done. Loaded symbols for /lib/libc.so.7 Reading symbols from /libexec/ld-elf.so.1...done. Loaded symbols for /libexec/ld-elf.so.1 #0 0x080ed8bf in init_driver (drv=0x83bdee0, de=0x839d2c0, handle=0x0) at global.h:1171 1171 global.h: No such file or directory. in global.h [New Thread 28c03080 (LWP 100543/beam)] (gdb) bt #0 0x080ed8bf in init_driver (drv=0x83bdee0, de=0x839d2c0, handle=0x0) at global.h:1171 #1 0x080e71a2 in init_io () at global.h:1171 #2 0x080aa964 in erl_init (ncpu=1) at _ctype.h:125 #3 0x080acfb6 in erl_start (argc=34, argv=0xbfbfd798) at _ctype.h:125 #4 0x080935af in main (argc=34, argv=0xbfbfd798) at sys/unix/erl_main.c:29 (gdb) bt full #0 0x080ed8bf in init_driver (drv=0x83bdee0, de=0x839d2c0, handle=0x0) at global.h:1171 res = -1077947068 fpe_was_unmasked = 1 #1 0x080e71a2 in init_io () at global.h:1171 i = 65536 dp = (ErlDrvEntry **) 0x0 maxports = "�\017�\025\b|);\b\212\004-\bx���r�\020\b" maxportssize = 21 ports_bits = 28 port_extra_shift = 16 #2 0x080aa964 in erl_init (ncpu=1) at _ctype.h:125 No locals. #3 0x080acfb6 in erl_start (argc=34, argv=0xbfbfd798) at _ctype.h:125 i = 3 arg = 0xbfbfd9c9 "u" Parg = 0x0 have_break_handler = 1 envbuf = "�\000\000\000\000\030R6\b\001\000\000\000W\2056(��7(" envbufsz = 21 ncpu = 1 #4 0x080935af in main (argc=34, argv=0xbfbfd798) at sys/unix/erl_main.c:29 No locals. (gdb) Original thread in erlang-questions mailing list: http://erlang.org/pipermail/erlang-questions/2013-November/075913.html >How-To-Repeat: Compile Erlang from ports with HiPE and GCC 4.6 on FreeBSD10 (r257166) on i386. >Fix: >Release-Note: >Audit-Trail: >Unformatted: