[erlang-questions] No producing crash dump file

James Kingsbery <>
Mon Nov 18 21:58:07 CET 2013


Here is the full command used to start ejabberd, as one would get from ps
-ef:

/home/goodson/goodson/usr/local/lib/erlang/erts-5.10.1/bin/beam.smp -K true
-P 250000 -A64 -sbt ps -- -root /home/goodson/goodson/usr/local/lib/erlang
-progname start.sh -- -home /home/jamie -- -name
 -setcookie <cookie> -noshell -noinput
-config
/home/jamie/goodson/opt/svc.ejabberd/ejabberd/etc/ejabberd/app.config -pa
/home/jamie/goodson/opt/svc.ejabberd/ejabberd/lib/ejabberd/ebin -mnesia dir
"/home/jamie/goodson/var/lib/ejabberd/" -kernel
inet_dist_listen_min 4200 inet_dist_listen_max 4210 -s lager -s sighandler
-s ejabberd -s ecrn_app manual_start -sasl sasl_error_logger -smp enable
-mnesia dc_dump_limit 40 dump_log_write_threshold 50000 no_table_loaders 50
extra_db_nodes [''] -s mnesia start

As you can see there's no -heart. Also, if you ps -ef | grep heart, there
is no heart process running. But, as I mentioned earlier, the core dump
shows heart port as non-null.


On Mon, Nov 18, 2013 at 3:24 AM, Samuel <> wrote:

> How are you running your erlang node? Heart should not start unless
> explicitly started, as far as I know
>
> On 11 November 2013 17:13, James Kingsbery <>
> wrote:
> > Hi All,
> >
> > I'm relatively new to Erlang and there's a problem I don't quite
> understand.
> > I'm running ejabberd, and every so often it crashes. To figure out why it
> > crashed, I know to look in the erl_crash.dump. The problem is, there
> doesn't
> > seem to be any erl_crash.dump file. There is a core dump file though.
> > Loading it into gdb and running "bt full," here are the top two frames:
> >
> > (gdb) bt full
> > #0  0x000000000054df83 in prepare_crash_dump (secs=<optimized out>) at
> > sys/unix/sys.c:735
> >         max = <optimized out>
> >         env = "\005", '\000' <repeats 15 times>"\200, \373!ڴ"
> >         heart_port = 0x7fb46f31eab0
> >         hp = 0x7fb4d6efb938
> >         heart_fd = {865035, -1}
> >         has_heart = 0
> >         i = <optimized out>
> >         envsz = <optimized out>
> >         heap = {4460060, 140412855877120, 1}
> >         list = 18446744073709551611
> > #1  erts_sys_prepare_crash_dump (secs=<optimized out>) at
> sys/unix/sys.c:780
> >
> > So, it appears that it crashed while it was trying to write the crash
> dump,
> > but didn't get all the way. I did some research, and it sounds a lot
> like a
> > problem that had been posted earlier
> > (
> https://groups.google.com/forum/#!msg/erlang-programming/XH2Uly6hsLY/aeR2Yx2UkZMJ
> ).
> > Heart was not enabled on the command line, which means this shouldn't be
> the
> > problem, but... in the core dump, heart_port is set to something
> non-null.
> > This should mean that heart is lurking somewhere, shouldn't it? If so, is
> > there a way to tell heart to *really* not run?
> >
> > Any help anyone has to offer would be greatly appreciated.
> >
> > Best,
> > Jamie
> >
> > _______________________________________________
> > erlang-questions mailing list
> > 
> > http://erlang.org/mailman/listinfo/erlang-questions
> >
>
>
>
> --
> Samuel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20131118/7b60cfde/attachment.html>


More information about the erlang-questions mailing list