Project

General

Profile

Actions

Bug #6286

closed

codec_ecu_fr_test misaligned access reported by address sanitizer

Added by neels 6 months ago. Updated 4 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
12/04/2023
Due date:
% Done:

100%

Spec Reference:

Description

with --enable-sanitize, I get this:

codec/codec_ecu_fr_test \
    >../../../src/libosmocore/tests/codec/codec_ecu_fr_test.ok
../../../../src/libosmocore/src/codec/ecu_fr.c:297:15: runtime error: member access within misaligned address 0x60f0000000a4 for type 'struct fr_ecu_state', which requires 8 byte alignment
0x60f0000000a4: note: pointer points here
  01 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
              ^ 
../../../../src/libosmocore/src/codec/ecu_fr.c:298:2: runtime error: member access within misaligned address 0x60f0000000a4 for type 'struct fr_ecu_state', which requires 8 byte alignment
0x60f0000000a4: note: pointer points here
  01 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
              ^ 
../../../../src/libosmocore/src/core/prbs.c:49:11: runtime error: member access within misaligned address 0x60f0000000d4 for type 'struct osmo_prbs_state', which requires 8 byte alignment
0x60f0000000d4: note: pointer points here
  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
              ^ 
../../../../src/libosmocore/src/core/prbs.c:50:12: runtime error: member access within misaligned address 0x60f0000000d4 for type 'struct osmo_prbs_state', which requires 8 byte alignment
0x60f0000000d4: note: pointer points here
  00 00 00 00 40 e9 ac 50  42 7f 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
              ^ 
../../../../src/libosmocore/src/codec/ecu_fr.c:112:12: runtime error: member access within misaligned address 0x60f0000000a4 for type 'struct fr_ecu_state', which requires 8 byte alignment
0x60f0000000a4: note: pointer points here
  01 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
              ^ 
../../../../src/libosmocore/src/codec/ecu_fr.c:113:16: runtime error: member access within misaligned address 0x60f0000000a4 for type 'struct fr_ecu_state', which requires 8 byte alignment
0x60f0000000a4: note: pointer points here
  01 00 00 00 00 00 00 00  d9 ec 9b e2 12 90 1f 80  23 35 59 8c 50 1f 80 5b  ad 3d 4b a0 1f 80 9b 69
              ^ 
../../../../src/libosmocore/src/codec/ecu_fr.c:114:26: runtime error: member access within misaligned address 0x60f0000000a4 for type 'struct fr_ecu_state', which requires 8 byte alignment
0x60f0000000a4: note: pointer points here
  01 00 00 00 01 00 00 00  d9 ec 9b e2 12 90 1f 80  23 35 59 8c 50 1f 80 5b  ad 3d 4b a0 1f 80 9b 69
              ^ 
../../../../src/libosmocore/src/codec/ecu_fr.c:241:12: runtime error: member access within misaligned address 0x60f0000000a4 for type 'struct fr_ecu_state', which requires 8 byte alignment
0x60f0000000a4: note: pointer points here
  01 00 00 00 01 00 00 00  d9 ec 9b e2 12 90 1f 80  23 35 59 8c 50 1f 80 5b  ad 3d 4b a0 1f 80 9b 69
              ^ 
../../../../src/libosmocore/src/codec/ecu_fr.c:249:19: runtime error: member access within misaligned address 0x60f0000000a4 for type 'struct fr_ecu_state', which requires 8 byte alignment
0x60f0000000a4: note: pointer points here
  01 00 00 00 01 00 00 00  d9 ec 9b e2 12 90 1f 80  23 35 59 8c 50 1f 80 5b  ad 3d 4b a0 1f 80 9b 69
              ^ 
../../../../src/libosmocore/src/codec/ecu_fr.c:250:16: runtime error: member access within misaligned address 0x60f0000000a4 for type 'struct fr_ecu_state', which requires 8 byte alignment
0x60f0000000a4: note: pointer points here
  01 00 00 00 01 00 00 00  d9 ec 9b e2 12 90 1f 80  23 35 59 8c 50 1f 80 5b  ad 3d 4b a0 1f 80 9b 69
              ^ 
../../../../src/libosmocore/src/codec/ecu_fr.c:253:25: runtime error: member access within misaligned address 0x60f0000000a4 for type 'struct fr_ecu_state', which requires 8 byte alignment
0x60f0000000a4: note: pointer points here
  01 00 00 00 02 00 00 00  d9 ec 9b e2 12 90 1f 80  23 35 59 8c 50 1f 80 5b  ad 3d 4b a0 1f 80 9b 69
              ^ 
../../../../src/libosmocore/src/codec/ecu_fr.c:254:19: runtime error: member access within misaligned address 0x60f0000000a4 for type 'struct fr_ecu_state', which requires 8 byte alignment
0x60f0000000a4: note: pointer points here
  01 00 00 00 02 00 00 00  d9 ec 9b e2 12 90 1d 80  23 35 59 8c 50 1d 80 5b  ad 3d 4b a0 1d 80 9b 69
              ^ 
../../../../src/libosmocore/src/codec/ecu_fr.c:195:21: runtime error: member access within misaligned address 0x60f0000000a4 for type 'struct fr_ecu_state', which requires 8 byte alignment
0x60f0000000a4: note: pointer points here
  01 00 00 00 02 00 00 00  d9 ec 9b e2 12 90 1d 80  23 35 59 8c 50 1d 80 5b  ad 3d 4b a0 1d 80 9b 69
              ^ 
../../../../src/libosmocore/src/core/prbs.c:63:23: runtime error: member access within misaligned address 0x60f0000000d4 for type 'struct osmo_prbs_state', which requires 8 byte alignment
0x60f0000000d4: note: pointer points here
  00 00 00 00 40 e9 ac 50  42 7f 00 00 01 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
              ^ 
../../../../src/libosmocore/src/core/prbs.c:55:7: runtime error: member access within misaligned address 0x60f0000000d4 for type 'struct osmo_prbs_state', which requires 8 byte alignment
0x60f0000000d4: note: pointer points here
  00 00 00 00 40 e9 ac 50  42 7f 00 00 01 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
              ^ 
../../../../src/libosmocore/src/core/prbs.c:55:15: runtime error: member access within misaligned address 0x60f0000000d4 for type 'struct osmo_prbs_state', which requires 8 byte alignment
0x60f0000000d4: note: pointer points here
  00 00 00 00 40 e9 ac 50  42 7f 00 00 01 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
              ^ 
../../../../src/libosmocore/src/core/prbs.c:57:8: runtime error: member access within misaligned address 0x60f0000000d4 for type 'struct osmo_prbs_state', which requires 8 byte alignment
0x60f0000000d4: note: pointer points here
  00 00 00 00 40 e9 ac 50  42 7f 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
              ^ 
../../../../src/libosmocore/src/core/prbs.c:57:24: runtime error: member access within misaligned address 0x60f0000000d4 for type 'struct osmo_prbs_state', which requires 8 byte alignment
0x60f0000000d4: note: pointer points here
  00 00 00 00 40 e9 ac 50  42 7f 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
              ^ 
../../../../src/libosmocore/src/core/prbs.c:57:16: runtime error: member access within misaligned address 0x60f0000000d4 for type 'struct osmo_prbs_state', which requires 8 byte alignment
0x60f0000000d4: note: pointer points here
  00 00 00 00 40 e9 ac 50  42 7f 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
              ^ 
../../../../src/libosmocore/src/codec/ecu_fr.c:196:21: runtime error: member access within misaligned address 0x60f0000000a4 for type 'struct fr_ecu_state', which requires 8 byte alignment
0x60f0000000a4: note: pointer points here
  01 00 00 00 02 00 00 00  d9 ec 9b e2 12 90 1d 80  23 35 59 8c 50 1d 80 5b  ad 3d 4b a0 1d 80 9b 69
              ^ 
../../../../src/libosmocore/src/codec/ecu_fr.c:257:17: runtime error: member access within misaligned address 0x60f0000000a4 for type 'struct fr_ecu_state', which requires 8 byte alignment
0x60f0000000a4: note: pointer points here
  01 00 00 00 02 00 00 00  d9 ec 9b e2 12 90 00 00  23 35 59 8c 50 00 00 5b  ad 3d 4b a0 00 00 9b 69
              ^ 
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)