Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

[crash report] bin/kraken run #1

Closed
benjamn opened this issue Mar 5, 2013 · 13 comments
Closed

[crash report] bin/kraken run #1

benjamn opened this issue Mar 5, 2013 · 13 comments
Assignees

Comments

@benjamn
Copy link

benjamn commented Mar 5, 2013

Big caveat: I just installed Erlang R16B, and while the shell seems to work, I've never used it for anything real, so my Erlang installation might be the problem.

Here's the output from bin/kraken run:

~/src/kraken % bin/kraken run     
Erlang R16B (erts-5.10.1) [source] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false]


=PROGRESS REPORT==== 5-Mar-2013::11:45:48 ===
          supervisor: {local,sasl_safe_sup}
             started: [{pid,<0.41.0>},
                       {name,alarm_handler},
                       {mfargs,{alarm_handler,start_link,[]}},
                       {restart_type,permanent},
                       {shutdown,2000},
                       {child_type,worker}]

=PROGRESS REPORT==== 5-Mar-2013::11:45:48 ===
          supervisor: {local,sasl_safe_sup}
             started: [{pid,<0.42.0>},
                       {name,overload},
                       {mfargs,{overload,start_link,[]}},
                       {restart_type,permanent},
                       {shutdown,2000},
                       {child_type,worker}]

=PROGRESS REPORT==== 5-Mar-2013::11:45:48 ===
          supervisor: {local,sasl_sup}
             started: [{pid,<0.40.0>},
                       {name,sasl_safe_sup},
                       {mfargs,
                           {supervisor,start_link,
                               [{local,sasl_safe_sup},sasl,safe]}},
                       {restart_type,permanent},
                       {shutdown,infinity},
                       {child_type,supervisor}]

=PROGRESS REPORT==== 5-Mar-2013::11:45:48 ===
          supervisor: {local,sasl_sup}
             started: [{pid,<0.43.0>},
                       {name,release_handler},
                       {mfargs,{release_handler,start_link,[]}},
                       {restart_type,permanent},
                       {shutdown,2000},
                       {child_type,worker}]

=PROGRESS REPORT==== 5-Mar-2013::11:45:48 ===
         application: sasl
          started_at: 'kraken@benjamn-mbp1'
{"init terminating in do_boot",{undef,[{kraken,start,[],[]},{init,start_it,1,[]},{init,start_em,1,[]}]}}

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()
@benjamn
Copy link
Author

benjamn commented Mar 5, 2013

Here's the dump: https://gist.github.com/benjamn/5093593

@krisr
Copy link
Contributor

krisr commented Mar 5, 2013

Thanks for the bug report. I'll see if I can reproduce and get back to you shortly.

@ghost ghost assigned krisr Mar 5, 2013
@krisr
Copy link
Contributor

krisr commented Mar 5, 2013

Hey Benjamn, that happens to be the same error you would get if you forgot to build the project first. Did you run "./rebar get-deps compile" first?

@benjamn
Copy link
Author

benjamn commented Mar 5, 2013

@krisr, yep I did, although there were some warnings at the end:

~/src/kraken % ./rebar get-deps compile
==> Entering directory `/Users/benjamn/src/kraken/deps/log4erl'
==> Entering directory `/Users/benjamn/src/kraken/deps/mochiweb'
==> mochiweb (get-deps)
==> Leaving directory `/Users/benjamn/src/kraken/deps/mochiweb'
==> log4erl (get-deps)
==> Leaving directory `/Users/benjamn/src/kraken/deps/log4erl'
==> kraken (get-deps)
==> Entering directory `/Users/benjamn/src/kraken/deps/log4erl'
==> Entering directory `/Users/benjamn/src/kraken/deps/mochiweb'
==> mochiweb (compile)
src/mochifmt_std.erl:6: parameterized modules are no longer supported
src/mochifmt_records.erl:12: parameterized modules are no longer supported
src/mochifmt_std.erl:11: variable 'THIS' is unbound
src/mochifmt_records.erl:19: variable 'Recs' is unbound
src/mochifmt_std.erl:14: variable 'THIS' is unbound

@krisr
Copy link
Contributor

krisr commented Mar 5, 2013

Looks like it failed to build a dependency because erlang R16B no longer supports parameterized modules and did get to compile kraken as a result. It's unfortunate that log4erl depends on mochiweb since we are not using it at all. I'll see what I can do after getting the latest erlang build on my machine. In the meantime, you could try using an older version of erlang. I know R15B02 works.

@benjamn
Copy link
Author

benjamn commented Mar 5, 2013

Got it, thanks. I'll leave it to you to close/edit this issue to reflect whatever you decide to do.

@krisr
Copy link
Contributor

krisr commented Mar 5, 2013

There is an update to mochiweb for this already, I'll sort out the dependencies in log4erl and push a fix shortly.

@manjuraj
Copy link

manjuraj commented Mar 6, 2013

@krisr I encountered the same issue

@krisr
Copy link
Contributor

krisr commented Mar 6, 2013

@manjuraj Thanks for the report. I have some time this evening so I'm going to work on getting log4erl building with erlang R16B. I'll keep you posted.

@krisr
Copy link
Contributor

krisr commented Mar 6, 2013

@manjuraj, @benjamn, I forked log4erl and made it depend on a more recent version of mochiweb which compiles successfully with later version of erlang. You may need to clean out your kraken/deps/* directories to get things in a working state after you pull the change. Let me know if it works for you now and I'll go ahead and close this issue.

@benjamn
Copy link
Author

benjamn commented Mar 6, 2013

@krisr works for me after updating, thanks!

@manjuraj
Copy link

manjuraj commented Mar 7, 2013

@krisr works for me too

@lloydchang
Copy link

Hello @krisr @benjamn @manjuraj, I'm also confirming that current git HEAD 698fc66 runs successfully using Erlang R16B. Thank you.

@krisr krisr closed this as completed Apr 24, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

4 participants