-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
I already start the server, but whenever I start the client I got this error
% ./jsfw client 192.168.181.233 5324 client.json
[Client (192.168.181.233:5324)] <- client.json
AddressSanitizer:DEADLYSIGNAL
=================================================================
==390489==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x72f31ac952dc bp 0x7ffece45b700 sp 0x7ffece45ae88 T0)
==390489==The signal is caused by a READ memory access.
==390489==Hint: address points to the zero page.
#0 0x72f31ac952dc (/usr/lib/libc.so.6+0x17f2dc) (BuildId: 695cfc6aac7d0f77bb7caba0ef01b2e868762b02)
#1 0x72f31ae76b3c in strlen /usr/src/debug/gcc/gcc/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:389
#2 0x613148e26795 in build_device_request /home/yoga/stuff/git_repository/jsfw/client.c:397
#3 0x613148e26ad2 in client_run /home/yoga/stuff/git_repository/jsfw/client.c:432
#4 0x613148e30424 in client /home/yoga/stuff/git_repository/jsfw/main.c:24
#5 0x613148e30665 in main /home/yoga/stuff/git_repository/jsfw/main.c:53
#6 0x72f31ab3d487 (/usr/lib/libc.so.6+0x27487) (BuildId: 695cfc6aac7d0f77bb7caba0ef01b2e868762b02)
#7 0x72f31ab3d54b in __libc_start_main (/usr/lib/libc.so.6+0x2754b) (BuildId: 695cfc6aac7d0f77bb7caba0ef01b2e868762b02)
#8 0x613148e236a4 in _start (/home/yoga/stuff/git_repository/jsfw/jsfw+0x96a4) (BuildId: d0f728eb86b4145ddf479f79de6b4c3cd35c06e9)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/usr/lib/libc.so.6+0x17f2dc) (BuildId: 695cfc6aac7d0f77bb7caba0ef01b2e868762b02)
==390489==ABORTING
this is the server json
{
"controllers": [
{
"filter": { "vendor": "046d", "product": "c52f" },
"tag": "Mouse"
}
]
}
and client json
{
"slots": [
{
"controllers": [
{
"tag": ["Keyboard"],
"vendor": "046d",
"product": "c52f",
"name": "Emanuel"
}
]
}
]
}
Metadata
Metadata
Assignees
Labels
No labels