Neutrino Coredump erstellen

Gesperrt
Benutzeravatar
gandharva
Administrator
Beiträge: 387
Registriert: Mo 4. Apr 2016, 23:49
Box: Tank

Neutrino Coredump erstellen

Beitrag von gandharva »

Wenn ihr ein Debug Image installiert, müsst ihr folgende Schritte durchführen um einen Coredump und einen Backtrace zu erhalten. Es müssen keine weiteren Libs installiert werden.

Wichtig! Nach dem flashen des Debug Images per Konsole auf die Box und die Datei /var/etc/.coredump erstellen.
Inhalt der Datei ist der Pfad auf eure Festplatte wo der Coredump später beim Crash automatisch erstellt werden soll. Z.B. so:

Code: Alles auswählen

echo "/media/HGST_HTS541010A9-1" > /var/etc/.coredump
Ihr müsst natürlich den /media/* Pfad auf eure Gegebenheiten anpassen.

Wenn Neutrino dann gecrasht ist, NICHT die Box rebooten sondern auf der Konsole folgendes eingeben:

Code: Alles auswählen

gdb neutrino /media/HGST_HTS541010A9-1/core.neutrino.1638.1383762679
Hier wieder den Pfad und den Dateinamen entsprechend anpassen! Falls neutrino hängen geblieben und nicht gecrasht ist könnt ihr es mit "killall -6 neutrino" vor dem Backtrace abschiessen.

Dann kommt eine ähnliche Ausgabe wie hier und der Cursor bleibt blinkend hinter (gdb) stehen:

Code: Alles auswählen

GNU gdb (crosstool-NG 1.18.0 - Linaro GCC 4.5 2012.03) 7.5-2012.12-1
Copyright (C) 2012 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 "arm-pnx8400-linux-uclibcgnueabi".
For bug reporting instructions, please see:
<https://bugs.launchpad.net/gcc-linaro>...
Reading symbols from /bin/neutrino...done.
[New LWP 1638]
[New LWP 1651]
[New LWP 1652]
[New LWP 1653]
[New LWP 1654]
[New LWP 1655]
[New LWP 1656]
[New LWP 1657]
[New LWP 1658]
[New LWP 1659]
[New LWP 1660]
[New LWP 1661]
[New LWP 1678]
[New LWP 1685]
[New LWP 1708]
[New LWP 1709]
[New LWP 1711]
[New LWP 1714]
[New LWP 1715]
[New LWP 1716]
[New LWP 1717]
[New LWP 1718]
[New LWP 1719]
[New LWP 1720]
[New LWP 1721]
[New LWP 1722]
[New LWP 1723]
[New LWP 1724]
[New LWP 1725]
[New LWP 1745]
[New LWP 1710]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
Core was generated by `neutrino'.
Program terminated with signal 6, Aborted.
#0  0x2b4e8e8c in select () from /lib/libc.so.0
(gdb) 
Dort gebt ihr nun "bt" und oder "bt full" gefolgt von Enter ein um den Backtrace zu generieren. Es erscheint dann wieder eine ähnliche Ausgabe wie hier:

Code: Alles auswählen

(gdb) bt
#0  0x2b4e8e8c in select () from /lib/libc.so.0
#1  0x003d253c in CRCInput::getMsg_us (this=0x976e60, msg=0x7e3b8b10, data=0x7e3b8b0c, Timeout=10000000, bAllowRepeatLR=false) at /home/mokka/ng-buildsystem/source/neutrino-hd/src/driver/rcinput.cpp:585
#2  0x003d2030 in CRCInput::getMsg (this=0x976e60, msg=0x7e3b8b10, data=0x7e3b8b0c, Timeout=100, bAllowRepeatLR=false) at /home/mokka/ng-buildsystem/source/neutrino-hd/src/driver/rcinput.cpp:502
#3  0x001819c0 in CNeutrinoApp::RealRun (this=0x8f0e48, mainMenu=...) at /home/mokka/ng-buildsystem/source/neutrino-hd/src/neutrino.cpp:2204
#4  0x001814cc in CNeutrinoApp::run (this=0x8f0e48, argc=1, argv=0x7e3b8eb4) at /home/mokka/ng-buildsystem/source/neutrino-hd/src/neutrino.cpp:2127
#5  0x00188e28 in main (argc=1, argv=0x7e3b8eb4) at /home/mokka/ng-buildsystem/source/neutrino-hd/src/neutrino.cpp:4089
(gdb) q
Mit "q" gefolgt von Enter kommt ihr dann wieder auf die Konsole. Anschliessend das Log bei http://pastebin.com/ einfügen und den Link dazu im Forum posten.
Nazi lives don't matter.
Gesperrt

Zurück zu „Coolstream HD2“