Date: Mon, 4 Nov 2013 09:39:22 GMT From: Motiejus Jakštys <desired.mta@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: i386/183651: Failed to compile erlang R15B03-1 with DTrace Message-ID: <201311040939.rA49dMPD079963@oldred.freebsd.org> Resent-Message-ID: <201311040940.rA49e06i029338@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311040939.rA49dMPD079963>