[erlang-questions] Re: Erlang/OTP R14B01 has been released

Boris Mühmer <>
Mon Dec 13 19:49:20 CET 2010


Here is my output from the gdb session (after "inet:getifaddrs()."):

$ gdb /opt/erlang-otp/lib/erlang/erts-5.8.2/bin/beam.smp core
GNU gdb (GDB) 7.2-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /opt/Erlang-Dists/otp_R14B01/lib/erlang/erts-5.8.2/bin/beam.smp...done.
[New Thread 2705]
[New Thread 2697]
[New Thread 2702]
[New Thread 2703]
[New Thread 2701]
[New Thread 2704]
[New Thread 2706]

warning: Can't read pathname for load map: Input/output error.
Reading symbols from /lib/libutil.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libutil.so.1
Reading symbols from /lib/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libncurses.so.5...(no debugging symbols found)...done.
Loaded symbols for /lib/libncurses.so.5
Reading symbols from /lib/libpthread.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/librt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/librt.so.1
Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Core was generated by `/opt/erlang-otp/lib/erlang/erts-5.8.2/bin/beam.smp -- -root /opt/erlang-otp/lib'.
Program terminated with signal 11, Segmentation fault.
#0  0x0000000000577ba2 in inet_ctl_getifaddrs (desc=<value optimized out>, cmd=<value optimized out>, 
    buf=<value optimized out>, len=0, rbuf=<value optimized out>, rsize=<value optimized out>)
    at drivers/common/inet_drv.c:4948
4948		if (ifa_p->ifa_addr->sa_family == AF_INET
(gdb) bt
#0  0x0000000000577ba2 in inet_ctl_getifaddrs (desc=<value optimized out>, cmd=<value optimized out>, 
    buf=<value optimized out>, len=0, rbuf=<value optimized out>, rsize=<value optimized out>)
    at drivers/common/inet_drv.c:4948
#1  inet_ctl (desc=<value optimized out>, cmd=<value optimized out>, buf=<value optimized out>, len=0, 
    rbuf=<value optimized out>, rsize=<value optimized out>) at drivers/common/inet_drv.c:7272
#2  0x0000000000579539 in packet_inet_ctl (e=0x15faa80, cmd=1, buf=0x0, len=0, rbuf=0x7fb7cdc27c58, rsize=16)
    at drivers/common/inet_drv.c:9741
#3  0x000000000048dda2 in erts_port_control (p=0x7fb7cdc9e810, prt=0x7fb7cdc69958, command=<value optimized out>, 
    iolist=<value optimized out>) at beam/io.c:2219
#4  0x00000000004fe7e3 in port_control_3 (A__p=0x7fb7cdc9e810, A_1=<value optimized out>, 
    A_2=<value optimized out>, A_3=18446744073709551611) at beam/erl_bif_port.c:455
#5  0x000000000052a853 in process_main () at beam/beam_emu.c:2277
#6  0x000000000049da93 in sched_thread_func (vesdp=<value optimized out>) at beam/erl_process.c:3566
#7  0x00000000005a465a in thr_wrapper (vtwd=<value optimized out>) at pthread/ethread.c:106
#8  0x00007fb7cf4bf971 in start_thread () from /lib/libpthread.so.0
#9  0x00007fb7cf01394d in clone () from /lib/libc.so.6
#10 0x0000000000000000 in ?? ()
(gdb) fr 1
#1  inet_ctl (desc=<value optimized out>, cmd=<value optimized out>, buf=<value optimized out>, len=0, 
    rbuf=<value optimized out>, rsize=<value optimized out>) at drivers/common/inet_drv.c:7272
7272		return inet_ctl_getifaddrs(desc, rbuf, rsize);
(gdb) l
7267	
7268	    case INET_REQ_GETIFADDRS: {
7269		DEBUGF(("inet_ctl(%ld): GETIFADDRS\r\n", (long)desc->port));
7270		if (!IS_OPEN(desc))
7271		    return ctl_xerror(EXBADPORT, rbuf, rsize);
7272		return inet_ctl_getifaddrs(desc, rbuf, rsize);
7273	    }
7274	
7275	    case INET_REQ_IFGET: {
7276		DEBUGF(("inet_ctl(%ld): IFGET\r\n", (long)desc->port)); 	
(gdb) p desc
$1 = <value optimized out>
(gdb) p cmd
$2 = <value optimized out>
(gdb) p buf
$3 = <value optimized out>
(gdb) p len
$4 = 0
(gdb) p rbuf
$5 = <value optimized out>
(gdb) p rsize
$6 = <value optimized out>


Anything else I could do?


  - boris




More information about the erlang-questions mailing list