laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-uecups/+/27003 )
Change subject: daemon: enable multithread logging in main()
......................................................................
daemon: enable multithread logging in main()
It may happen that multiple threads trying to log at the same time,
and the msgb containing a logging message gets corrupted in
libosmocore's _file_wq_write_cb():
msgb(0x7f5ca2a38150): msgb too small to pull 240 (len 120)
Aborted (core dumped)
'''
rc = write(ofd->fd, msgb_data(msg), msgb_length(msg));
if (rc < 0)
return rc;
if (rc != msgb_length(msg)) { // 240 != 120
/* pull the number of bytes we have already written */
msgb_pull(msg, rc); // <-- we abort() here
/* ask write_queue to re-insert the msgb at the head of the queue */
return -EAGAIN;
}
'''
The return value of write() cannot be greater than the given length.
Most likely, the msgb gets corrupted during the write() system call.
Enabling multithread logging in libosmocore solves the problem.
Change-Id: Ib14d0e36e8cd72465bfe55d19b68dbe3423f7f05
Related: SYS#5602
Fixes: OS#5424
---
M daemon/main.c
1 file changed, 1 insertion(+), 0 deletions(-)
Approvals:
Jenkins Builder: Verified
laforge: Looks good to me, approved
diff --git a/daemon/main.c b/daemon/main.c
index fec6f84..788ed70 100644
--- a/daemon/main.c
+++ b/daemon/main.c
@@ -726,6 +726,7 @@
osmo_init_ignore_signals();
osmo_init_logging2(g_tall_ctx, &log_info);
+ log_enable_multithread();
g_daemon = gtp_daemon_alloc(g_tall_ctx);
OSMO_ASSERT(g_daemon);
--
To view, visit https://gerrit.osmocom.org/c/osmo-uecups/+/27003
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-uecups
Gerrit-Branch: master
Gerrit-Change-Id: Ib14d0e36e8cd72465bfe55d19b68dbe3423f7f05
Gerrit-Change-Number: 27003
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: merged
fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-uecups/+/27003 )
Change subject: daemon: enable multithread logging in main()
......................................................................
daemon: enable multithread logging in main()
It may happen that multiple threads trying to log at the same time,
and the msgb containing a logging message gets corrupted in
libosmocore's _file_wq_write_cb():
msgb(0x7f5ca2a38150): msgb too small to pull 240 (len 120)
Aborted (core dumped)
'''
rc = write(ofd->fd, msgb_data(msg), msgb_length(msg));
if (rc < 0)
return rc;
if (rc != msgb_length(msg)) { // 240 != 120
/* pull the number of bytes we have already written */
msgb_pull(msg, rc); // <-- we abort() here
/* ask write_queue to re-insert the msgb at the head of the queue */
return -EAGAIN;
}
'''
The return value of write() cannot be greater than the given length.
Most likely, the msgb gets corrupted during the write() system call.
Enabling multithread logging in libosmocore solves the problem.
Change-Id: Ib14d0e36e8cd72465bfe55d19b68dbe3423f7f05
Related: SYS#5602
Fixes: OS#5424
---
M daemon/main.c
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-uecups refs/changes/03/27003/1
diff --git a/daemon/main.c b/daemon/main.c
index fec6f84..788ed70 100644
--- a/daemon/main.c
+++ b/daemon/main.c
@@ -726,6 +726,7 @@
osmo_init_ignore_signals();
osmo_init_logging2(g_tall_ctx, &log_info);
+ log_enable_multithread();
g_daemon = gtp_daemon_alloc(g_tall_ctx);
OSMO_ASSERT(g_daemon);
--
To view, visit https://gerrit.osmocom.org/c/osmo-uecups/+/27003
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-uecups
Gerrit-Branch: master
Gerrit-Change-Id: Ib14d0e36e8cd72465bfe55d19b68dbe3423f7f05
Gerrit-Change-Number: 27003
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: newchange
Attention is currently required from: laforge, dexter.
Hello Jenkins Builder,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/osmo-iuh/+/26955
to look at the new patch set (#5).
Change subject: ranap_common_ran: add decoder for RAN/RNC originated messages
......................................................................
ranap_common_ran: add decoder for RAN/RNC originated messages
Lets add a counterpart for ranap_common_cn that works the same, but
decodes RAN/RNC originated messages.
Change-Id: Iad4c2743d4d1ddf8ad49002d1fe6866f22eb9e98
Related: OS#5152
---
M include/osmocom/ranap/Makefile.am
M include/osmocom/ranap/ranap_common.h
M include/osmocom/ranap/ranap_common_cn.h
A include/osmocom/ranap/ranap_common_ran.h
M src/Makefile.am
A src/ranap_common_ran.c
6 files changed, 204 insertions(+), 3 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-iuh refs/changes/55/26955/5
--
To view, visit https://gerrit.osmocom.org/c/osmo-iuh/+/26955
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-iuh
Gerrit-Branch: master
Gerrit-Change-Id: Iad4c2743d4d1ddf8ad49002d1fe6866f22eb9e98
Gerrit-Change-Number: 26955
Gerrit-PatchSet: 5
Gerrit-Owner: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: laforge <laforge(a)osmocom.org>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Attention: dexter <pmaier(a)sysmocom.de>
Gerrit-MessageType: newpatchset
Attention is currently required from: laforge, dexter.
Hello Jenkins Builder,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/osmo-iuh/+/26955
to look at the new patch set (#4).
Change subject: ranap_common_ran: add decoder for RAN/RNC originated messages
......................................................................
ranap_common_ran: add decoder for RAN/RNC originated messages
Lets add a counterpart for ranap_common_cn that works the same, but
decodes RAN/RNC originated messages.
Related: OS#515
Change-Id: Iad4c2743d4d1ddf8ad49002d1fe6866f22eb9e98
---
M include/osmocom/ranap/Makefile.am
M include/osmocom/ranap/ranap_common.h
M include/osmocom/ranap/ranap_common_cn.h
A include/osmocom/ranap/ranap_common_ran.h
M src/Makefile.am
A src/ranap_common_ran.c
6 files changed, 187 insertions(+), 3 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-iuh refs/changes/55/26955/4
--
To view, visit https://gerrit.osmocom.org/c/osmo-iuh/+/26955
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-iuh
Gerrit-Branch: master
Gerrit-Change-Id: Iad4c2743d4d1ddf8ad49002d1fe6866f22eb9e98
Gerrit-Change-Number: 26955
Gerrit-PatchSet: 4
Gerrit-Owner: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: laforge <laforge(a)osmocom.org>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Attention: dexter <pmaier(a)sysmocom.de>
Gerrit-MessageType: newpatchset
Attention is currently required from: laforge, dexter.
Hello Jenkins Builder,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/osmo-iuh/+/26955
to look at the new patch set (#3).
Change subject: ranap_common_ran: add decoder for RAN/RNC originated messages
......................................................................
ranap_common_ran: add decoder for RAN/RNC originated messages
Lets add a counterpart for ranap_common_cn that works the same, but
decodes RAN/RNC originated messages.
Related: OS#515
Change-Id: Iad4c2743d4d1ddf8ad49002d1fe6866f22eb9e98
---
M include/osmocom/ranap/Makefile.am
M include/osmocom/ranap/ranap_common.h
M include/osmocom/ranap/ranap_common_cn.h
A include/osmocom/ranap/ranap_common_ran.h
M src/Makefile.am
A src/ranap_common_ran.c
6 files changed, 283 insertions(+), 3 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-iuh refs/changes/55/26955/3
--
To view, visit https://gerrit.osmocom.org/c/osmo-iuh/+/26955
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-iuh
Gerrit-Branch: master
Gerrit-Change-Id: Iad4c2743d4d1ddf8ad49002d1fe6866f22eb9e98
Gerrit-Change-Number: 26955
Gerrit-PatchSet: 3
Gerrit-Owner: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: laforge <laforge(a)osmocom.org>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Attention: dexter <pmaier(a)sysmocom.de>
Gerrit-MessageType: newpatchset
Attention is currently required from: laforge.
Hello Jenkins Builder,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/osmo-iuh/+/26955
to look at the new patch set (#2).
Change subject: ranap_common_ran: add decoder for RAN/RNC originated messages
......................................................................
ranap_common_ran: add decoder for RAN/RNC originated messages
Lets add a counterpart for ranap_common_cn that works the same, but
decodes RAN/RNC originated messages.
Related: OS#515
Change-Id: Iad4c2743d4d1ddf8ad49002d1fe6866f22eb9e98
---
M include/osmocom/ranap/Makefile.am
M include/osmocom/ranap/ranap_common.h
M include/osmocom/ranap/ranap_common_cn.h
A include/osmocom/ranap/ranap_common_ran.h
M src/Makefile.am
A src/ranap_common_ran.c
6 files changed, 283 insertions(+), 3 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-iuh refs/changes/55/26955/2
--
To view, visit https://gerrit.osmocom.org/c/osmo-iuh/+/26955
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-iuh
Gerrit-Branch: master
Gerrit-Change-Id: Iad4c2743d4d1ddf8ad49002d1fe6866f22eb9e98
Gerrit-Change-Number: 26955
Gerrit-PatchSet: 2
Gerrit-Owner: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: laforge <laforge(a)osmocom.org>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: newpatchset
Attention is currently required from: laforge.
fixeria has posted comments on this change. ( https://gerrit.osmocom.org/c/docker-playground/+/26982 )
Change subject: osmo-uecups-master/Dockerfile: do not pass command line options
......................................................................
Patch Set 2:
(1 comment)
Patchset:
PS1:
> spelling: command liNe, not liKe (in script and commit message)
Done.
--
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/26982
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: Ia9b220e4cfbc89b800fafdd153bd63d6d95799e2
Gerrit-Change-Number: 26982
Gerrit-PatchSet: 2
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-CC: laforge <laforge(a)osmocom.org>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Comment-Date: Wed, 26 Jan 2022 19:08:57 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: comment