[erlang-questions] Failed to compile erlang R15B03-1 on FreeBSD10 with DTrace

Motiejus Jakštys desired.mta@REDACTED
Mon Nov 4 08:28:11 CET 2013


Dear FreeBSD users,

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)

Running: 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:
root@REDACTED:/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:

(gdb) root@REDACTED:/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)

Any clues?

Thanks,
Motiejus Jakštys



More information about the erlang-questions mailing list