Project

General

Profile

Actions

Bug #5416

closed

osmo-remsim-client-st2: asserts when the simtrace2 is in dfu-mode

Added by lynxis about 2 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
remsim-client
Target version:
-
Start date:
01/24/2022
Due date:
% Done:

100%

Spec Reference:

Description

When the simtrace is in dfu mode, the osmo-remsim-client-st2 asserts:

osmo-remsim-client-st2 -V 1d50 -P 4001 -C1 -I0 -S0 -H 1-1.4 -A3 -i <SOMEIP> -p 9998 -c 1 -n 0 

DRSPRO INFO ../rspro_client_fsm.c:308 RSPRO_CLIENT(server){REESTABLISH}: Creating TCP connection to server at <SOMEIP>:9998
Assert failed rc == 0 user_simtrace2.c:309
This platform has no backtrace function
Aborted
Actions #1

Updated by lynxis about 2 years ago

  • Subject changed from osmo-remsim-client-st2 to osmo-remsim-client-st2: asserts when the simtrace2 is in simtrace
  • Description updated (diff)
Actions #2

Updated by lynxis about 2 years ago

  • Subject changed from osmo-remsim-client-st2: asserts when the simtrace2 is in simtrace to osmo-remsim-client-st2: asserts when the simtrace2 is in dfu-mode
Actions #3

Updated by lynxis about 2 years ago

  • Description updated (diff)
Actions #4

Updated by laforge about 2 years ago

this is quite odd as I would expect osmo_libusb_get_ep_addrs() to fail already at an earlier stage? Isn't DFU only implemented with control pipe requests? So there should be no buil/irq descriptors and hence osmo_libusb_get_ep_addrs should fail?

Actions #5

Updated by laforge over 1 year ago

  • Assignee set to laforge
Actions #6

Updated by laforge over 1 year ago

I can confirm the problem still exists:

LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libasan.so.8  .libs/osmo-remsim-client-st2 -V 1d50 -P 60e3 -C1 -I0 -S0 -H 1-6
DRSPRO INFO ../rspro_client_fsm.c:306 RSPRO_CLIENT(server){REESTABLISH}: Creating TCP connection to server at 127.0.0.1:9998
Assert failed rc == 0 user_simtrace2.c:305
backtrace() returned 10 addresses
/usr/local/lib/libosmocore.so.19(+0x1844a9) [0x7f0c34d3d4a9]
/usr/local/lib/libosmocore.so.19(osmo_generate_backtrace+0x18) [0x7f0c34d3d998]
/usr/local/lib/libosmocore.so.19(+0x184251) [0x7f0c34d3d251]
/usr/local/lib/libosmocore.so.19(osmo_panic+0x127) [0x7f0c34d3d382]
.libs/osmo-remsim-client-st2(+0x2dd47) [0x5578122fdd47]
.libs/osmo-remsim-client-st2(+0x29519) [0x5578122f9519]
/lib/x86_64-linux-gnu/libc.so.6(+0x2718a) [0x7f0c340db18a]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x85) [0x7f0c340db245]
.libs/osmo-remsim-client-st2(+0x29e01) [0x5578122f9e01]
Actions #7

Updated by laforge over 1 year ago

  • Project changed from SIMtrace 2 to osmo-remsim
  • Category set to remsim-client
  • Status changed from New to In Progress
  • % Done changed from 0 to 80

https://gerrit.osmocom.org/c/osmo-remsim/+/30152 changes this to:

$ LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libasan.so.8  .libs/osmo-remsim-client-st2 -V 1d50 -P 60e3 -C1 -I0 -S0 -H 1-6
DRSPRO INFO ../rspro_client_fsm.c:306 RSPRO_CLIENT(server){REESTABLISH}: Creating TCP connection to server at 127.0.0.1:9998
DMAIN ERROR user_simtrace2.c:448 specified USB dev/config/interface doesn't have at least one IN, OUT and IRQ_IN endpoint
Actions #8

Updated by laforge over 1 year ago

  • Status changed from In Progress to Resolved
  • % Done changed from 80 to 100
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)