Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation faults on Raspberry Pi 3 #5

Closed
huzhifeng opened this issue Aug 20, 2016 · 1 comment
Closed

Segmentation faults on Raspberry Pi 3 #5

huzhifeng opened this issue Aug 20, 2016 · 1 comment
Assignees
Labels

Comments

@huzhifeng
Copy link

Hi @JiapengLi ,

I observed segmentation faults on Raspberry Pi3 when run ./util/test/test and ./util/parser/lwp
Raspberry Pi3 OS: 2016-05-27-raspbian-jessie.img
lorawan-parser revision: @e08fd428686919dbfd998408d8664c9f2f0ad0fe

Below is the detail, can you have a loot at it?thanks

pi@raspberrypi:~ $ mkdir -p git
pi@raspberrypi:~ $ cd git/
pi@raspberrypi:~/git $ sudo apt-get install -y autoconf libtool
pi@raspberrypi:~/git $ git clone https://github.com/JiapengLi/lorawan-parser.git
pi@raspberrypi:~/git $ cd lorawan-parser/
pi@raspberrypi:~/git/lorawan-parser $ autoreconf -i
pi@raspberrypi:~/git/lorawan-parser $ ./configure
pi@raspberrypi:~/git/lorawan-parser $ make
pi@raspberrypi:~/git/lorawan-parser $ git log -1
commit e08fd428686919dbfd998408d8664c9f2f0ad0fe
Author: Jiapeng Li <gapleehit@gmail.com>
Date:   Thu Jun 23 00:23:14 2016 +0800

    Parser MACCMD, add -T and -m support
pi@raspberrypi:~/git/lorawan-parser $ ./util/parser/lwp -T CD -m "02 30 01"     
MACCMD: 02 30 01 
MACCMD ( LinkCheckAns )
Margin: 48dB
GwCnt: 1
pi@raspberrypi:~/git/lorawan-parser $ ./util/test/test 

--------------------------------------------------------------------------------
Test Normal Message MIC

0AF8DA0E len:13

MIC is OK


--------------------------------------------------------------------------------
Test Normal Message Decrypt

Message MIC is OK

Segmentation fault
pi@raspberrypi:~/git/lorawan-parser $ ./util/parser/lwp -c util/parser/lwp-config.json 
File name: util/parser/lwp-config.json
Found configuration file

--------------------------------------------------------------------------------
         BAND:   EU868
      NWKSKEY:    <16> 2b 7e 15 16 28 ae d2 a6 ab f7 15 88 09 cf 4f 3c 
      APPSKEY:    <16> 2b 7e 15 16 28 ae d2 a6 ab f7 15 88 09 cf 4f 3c 
       APPKEY:    <16> 86 00 00 00 00 00 00 00 86 00 00 00 00 00 00 00 
        JOINR:    <23> 00 01 00 00 00 00 00 00 86 01 00 00 00 00 00 00 86 f7 9f b4 c2 06 60 
        JOINA:    <17> 20 2d 95 83 ab a7 36 c8 0f 97 00 db 42 0a 01 05 54 
    0 MESSAGE:    <23> 00 01 00 00 00 00 00 00 86 01 00 00 00 00 00 00 86 f7 9f b4 c2 06 60 
    1 MESSAGE:    <17> 20 2d 95 83 ab a7 36 c8 0f 97 00 db 42 0a 01 05 54 
    2 MESSAGE:    <17> 40 97 01 00 48 80 00 00 01 2e 3a 00 de 42 f0 72 d2 
    3 MESSAGE:    <17> a0 97 01 00 48 05 00 00 03 01 07 00 61 56 ed ba 18 
    4 MESSAGE:    <17> 40 97 01 00 48 80 01 00 01 63 8b 0e 20 9d e4 87 49 
    5 MESSAGE:    <17> a0 97 01 00 48 05 00 00 03 01 07 00 61 56 ed ba 18 
    6 MESSAGE:    <19> 40 97 01 00 48 e2 02 00 03 06 01 c9 b6 a5 8a 32 0e c7 37 
    7 MESSAGE:    <12> 60 97 01 00 48 00 01 00 35 9c 2e 00 
    8 MESSAGE:    <17> 40 97 01 00 48 80 03 00 01 c7 9d fc e7 d5 d3 d7 fa 
    9 MESSAGE:    <17> a0 97 01 00 48 05 02 00 03 01 07 00 61 5d 83 b2 fb 
   10 MESSAGE:    <19> 40 97 01 00 48 e2 04 00 03 06 01 f6 a5 65 eb c0 fc fb 7b 
   11 MESSAGE:    <12> 60 97 01 00 48 00 03 00 f8 26 10 45 
   12 MESSAGE:    <17> 40 97 01 00 48 80 05 00 01 a8 d6 54 2c 24 c2 cb f3 
   13 MESSAGE:    <17> 40 97 01 00 48 80 06 00 01 22 00 58 c3 79 d7 d3 5b 
     0 MACCMD:     <1> [80] 02 
     1 MACCMD:     <3> [A0] 02 30 01 
     2 MACCMD:     <5> [A0] 03 51 07 00 61 
     3 MACCMD:     <2> [80] 03 07 
     4 MACCMD:     <2> [A0] 04 04 
     5 MACCMD:     <1> [80] 04 
     6 MACCMD:     <5> [A0] 05 07 01 02 03 
     7 MACCMD:     <2> [80] 05 07 
     8 MACCMD:     <1> [A0] 06 
     9 MACCMD:     <3> [80] 06 ff 30 
    10 MACCMD:     <6> [A0] 07 00 01 23 45 11 
    11 MACCMD:     <2> [80] 07 03 
    12 MACCMD:     <2> [A0] 08 01 
    13 MACCMD:     <1> [80] 08 

--------------------------------------------------------------------------------
MSG: 00 01 00 00 00 00 00 00 86 01 00 00 00 00 00 00 86 f7 9f b4 c2 06 60 
LoRaWAN R1
JOIN REQUEST
Join Request MIC is OK
MIC is OK [ B4 C2 06 60 ]
APPEUI: 86:00:00:00:00:00:00:01
DEVEUI: 86:00:00:00:00:00:00:01
DEVNONCE: 0x9FF7
DMSG: 00 01 00 00 00 00 00 00 86 01 00 00 00 00 00 00 86 f7 9f b4 c2 06 60 

--------------------------------------------------------------------------------
MSG: 20 2d 95 83 ab a7 36 c8 0f 97 00 db 42 0a 01 05 54 
LoRaWAN R1
JOIN ACCEPT
Join accept encrypted payload:(17)
Segmentation fault
pi@raspberrypi:~/git/lorawan-parser $
@huzhifeng
Copy link
Author

Hi @JiapengLi ,
Great job!
I updated to the latest version bd40925
It works well on Raspberry Pi3 now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants