Created
September 19, 2013 12:53
-
-
Save nox/6623009 to your computer and use it in GitHub Desktop.
Debugging rm-reverse-eta-conversion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nox@Bellcross:~/src/otp/erts/etc/unix[rm-reverse-eta-conversion|REBASE-i 1/3] | |
$ gdb-x86_64-linux ~/Downloads/beam.smp ~/Downloads/core | |
GNU gdb (GDB) 7.6.1 | |
Copyright (C) 2013 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 "--host=x86_64-apple-darwin11.4.2 --target=x86_64-linux-gnu". | |
For bug reporting instructions, please see: | |
<http://www.gnu.org/software/gdb/bugs/>... | |
Reading symbols from /Users/nox/Downloads/beam.smp...done. | |
warning: exec file is newer than core file. | |
[New LWP 21990] | |
[New LWP 21973] | |
[New LWP 21992] | |
[New LWP 21977] | |
[New LWP 21978] | |
[New LWP 21991] | |
[New LWP 21979] | |
[New LWP 21980] | |
[New LWP 21989] | |
[New LWP 21981] | |
[New LWP 21982] | |
[New LWP 21988] | |
[New LWP 21983] | |
[New LWP 21984] | |
[New LWP 21987] | |
[New LWP 21985] | |
[New LWP 21986] | |
warning: Can't read pathname for load map: Input/output error. | |
warning: Could not load shared library symbols for 9 libraries, e.g. /lib/libutil.so.1. | |
Use the "info sharedlibrary" command to see the complete listing. | |
Do you need "set solib-search-path" or "set sysroot"? | |
Core was generated by `/ldisk/daily_build/r17a_master-opu_o_hipe_libs.2013-09-17_20/otp_src_R17A/bin/x'. | |
Program terminated with signal 11, Segmentation fault. | |
#0 0x00000000005a2939 in patch_funentries (Patchlist=48003528101377) at beam/beam_load.c:5757 | |
5757 beam/beam_load.c: No such file or directory. | |
(gdb) source etp-commands | |
%--------------------------------------------------------------------------- | |
% Use etp-help for a command overview and general help. | |
% | |
% To use the Erlang support module, the environment variable ROOTDIR | |
% must be set to the toplevel installation directory of Erlang/OTP, | |
% so the etp-commands file becomes: | |
% $ROOTDIR/erts/etc/unix/etp-commands | |
% Also, erl and erlc must be in the path. | |
%--------------------------------------------------------------------------- | |
etp-set-max-depth 20 | |
etp-set-max-string-length 100 | |
--------------- System Information --------------- | |
OTP release: R17A | |
ERTS version: 5.11 | |
Compile date: Tue Sep 17 20:52:23 2013 | |
Arch: x86_64-unknown-linux-gnu | |
Endianess: Little | |
Word size: 64-bit | |
Halfword: no | |
HiPE support: yes | |
SMP support: yes | |
Thread support: yes | |
Kernel poll: Supported but not used | |
Debug compiled: no | |
Lock checking: no | |
Lock counting: no | |
Node name: nonode@nohost | |
Number of schedulers: 2 | |
Number of async-threads: 10 | |
-------------------------------------------------- | |
(gdb) bt | |
#0 0x00000000005a2939 in patch_funentries (Patchlist=48003528101377) at beam/beam_load.c:5757 | |
#1 0x00000000005a2ffa in erts_make_stub_module (p=0x2ba8928c3da0, Mod=611275, | |
Beam=48003527901154, Info=48003528104226) at beam/beam_load.c:6001 | |
#2 0x00000000005a3cf3 in code_make_stub_module_3 (A__p=0x2ba8928c3da0, BIF__ARGS=0x2ba8921c00c0) | |
at beam/beam_bif_load.c:92 | |
#3 0x00000000005840c6 in process_main () at beam/beam_emu.c:2579 | |
#4 0x00000000004c511f in sched_thread_func (vesdp=0x2ba891c73fc0) at beam/erl_process.c:5801 | |
#5 0x0000000000669c93 in thr_wrapper (vtwd=0x7fffa4ca6280) at pthread/ethread.c:106 | |
#6 0x00002ba890e0a9ca in ?? () | |
#7 0x00002ba8b1f1e700 in ?? () | |
#8 0x0000000000000000 in ?? () | |
(gdb) frame 0 | |
#0 0x00000000005a2939 in patch_funentries (Patchlist=48003528101377) at beam/beam_load.c:5757 | |
5757 in beam/beam_load.c | |
(gdb) info locals | |
MFA = 48003527990818 | |
Mod = 611275 | |
native_address = 1079769844 | |
Info = 48003527990786 | |
tuple = 48003528101394 | |
listp = 0x2ba8b13d8e30 | |
Addresses = 48003528099793 | |
tp = 0x2ba8b13bde20 | |
fe = 0x0 | |
index = 2 | |
uniq = 127648029 | |
(gdb) etp Mod | |
erl_prettypr. | |
(gdb) etp Info | |
{{erl_prettypr,lay,2},127648029,2}. | |
(gdb) frame 2 | |
#2 0x00000000005a3cf3 in code_make_stub_module_3 (A__p=0x2ba8928c3da0, BIF__ARGS=0x2ba8921c00c0) | |
at beam/beam_bif_load.c:92 | |
92 beam/beam_bif_load.c: No such file or directory. | |
(gdb) etp BIF__ARGS[2] | |
{[{module_info,1,1079742436},{module_info,0,1079742452},{tidy_float_2,1,1079742464},{tidy_float_1,1,1079743060},{tidy_float,1,1079743420},{spaces,1,1079743828},{vertical_sep,2,1079744064},{vertical,1,1079744208},{maybe_append,2,1079744316},{seq,4,1079744412},{lay_concrete,2,1079745208},{lay_error_info,2,1079745288},{lay_bit_types,2,1079746084},{append_guard,3,1079746320},{append_clause_body,4,1079746608},{append_rule_body,3,...},{append_clause_body,...},{...},...],[{{{erl_prettypr,lay,2},127648029,1},[{1079762065,load_fe}],1079769844},{{{erl_prettypr,lay,2},127648029,2},[{1079757187,load_fe}],1079769844},{{{erl_prettypr,lay,2},127648029,3},[{1079757405,load_fe}],1079769844},{{{erl_prettypr,lay,2},127648029,4},[{1079766808,load_fe}],1079769844},{{{erl_prettypr,lay,2},127648029,5},[{1079767798,load_fe}],1079769844},{{{erl_prettypr,lay,2},127648029,6},[{1079764201,load_fe}],1079769844},{{{erl_prettypr,lay,2},127648029,7},[{1079754854,load_fe}],1079769844},{{{erl_prettypr,lay,2},127648029,8},[{1079761514,load_fe}],1079769844},{{{erl_prettypr,lay,2},127648029,9},[{1079755675,load_fe}],1079769844},{{{erl_prettypr,lay,2},127648029,10},[{1079754524,load_fe}],1079769844},{{{erl_prettypr,lay,2},127648029,11},[{1079754191,load_fe}],1079769844},{{{erl_prettypr,lay,2},127648029,12},[{1079761042,load_fe}],1079769844},{{{erl_prettypr,lay,2},127648029,13},[{1079759194,load_fe}],1079769844},{{{erl_prettypr,lay,...},127648029,14},[{1079758862,...}],1079769844},{{{erl_prettypr,...},127648029,...},[{...}],1079769844},{{{...},...},[...],...},{{...},...},{...},...]}. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment