Bug 183651 - Failed to compile erlang R15B03-1 with DTrace
Summary: Failed to compile erlang R15B03-1 with DTrace
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: i386 (show other bugs)
Version: 10.0-BETA2
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-i386 mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-04 09:40 UTC by Motiejus Jakštys
Modified: 2017-12-31 22:27 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Motiejus Jakštys 2013-11-04 09:40:00 UTC
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.
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:01:41 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped