public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: Sven Eckelmann <sven@narfation.org>
To: b.a.t.m.a.n@lists.open-mesh.org
Cc: 3zl Trizonelabs <trizonelabs@gmail.com>
Subject: Re: [B.A.T.M.A.N.] alfred dies without any log/dmesg entry
Date: Mon, 11 Jan 2016 11:03:51 +0100	[thread overview]
Message-ID: <6156489.uHiVaphWnp@sven-edge> (raw)
In-Reply-To: <CAJuY50wv1F1OcJc-ne=JJB3xyLUMBVf=Uo8w36rM07vntXj=cQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1526 bytes --]

On Wednesday 30 December 2015 13:32:39 3zl Trizonelabs wrote:
> ref: alfred ver 2015.1 / .2 @openwrt CC
> 
> afred.facters disabled
> 
> alfred process dies (not listed in ps ) without leaving any log entry
> 
> does anybody have any hint or idea ?

I don't use the new OpenWrt init scripts and therefore hoped that one of the 
authors would answer here.

But maybe it is an alfred crash. You can try to find more about the reasons of 
a crash by enabling core dumps [1]. I think the netifd init script should then 
enable the rest ("ulimit -c unlimited" and setting 
/proc/sys/kernel/core_pattern).

You should then check /tmp for *.core files when you've detected that alfred 
isn't running anymore. If you find some from the alfred process then you can 
assume that there was some crash. You can analyze these core dumps as 
described in the OpenWrt wiki [2]. Just specify the core file instead of 
"192.168.1.1:9000" as the first parameter for ./scripts/remote-gdb. 

You may also want to change the alfred/Makefile before compiling your image to 
make debugging easier. Try replacing the lines

    TARGET_CFLAGS  += -ffunction-sections -fdata-sections -flto
    TARGET_LDFLAGS += -Wl,--gc-sections -fuse-linker-plugin

With

    TARGET_CFLAGS += -ggdb3 -O0

to make the output of things like "bt full" in remote-gdb a lot better to 
read.

Kind regards,
	Sven

[1] OpenWrt config: CONFIG_KERNEL_ELF_CORE=y
    under "Global build settings" as "Enable process core dump support"
[2] https://wiki.openwrt.org/doc/devel/gdb

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

      reply	other threads:[~2016-01-11 10:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-30 11:32 [B.A.T.M.A.N.] alfred dies without any log/dmesg entry 3zl Trizonelabs
2016-01-11 10:03 ` Sven Eckelmann [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6156489.uHiVaphWnp@sven-edge \
    --to=sven@narfation.org \
    --cc=b.a.t.m.a.n@lists.open-mesh.org \
    --cc=trizonelabs@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox