[systemd-devel] log_assert_failed_realm crash in systemd journal-file

Aditya Tayade adityadtayade at gmail.com
Thu Dec 17 07:50:52 UTC 2020


Hi,

I am getting below crash in our CI environment with systemd v244-stable
which looks similar to issue #14943
<https://github.com/systemd/systemd/issues/14943>. So could you please
confirm if it is the same issue and whether the PR:
https://github.com/systemd/systemd/pull/15557 (already merged in v246) will
fix this? If yes then we need back port of these PR to v244-stable as well
and if not then could you please help to understand what can be cause of
this?:
(gdb) bt full
#0 __GI_abort () at abort.c:107
act = {__sigaction_handler = {sa_handler = 0x0, sa_sigaction = 0x0},
sa_mask = {__val = {
18446744073709551615 <repeats 16 times>}}, sa_flags = 0, sa_restorer = 0x0}
sigs = {__val = {32, 0 <repeats 15 times>}}
#1 <https://github.com/systemd/systemd/pull/1> 0x0000007f87d2900c in
log_assert_failed_realm (realm=realm at entry=LOG_REALM_SYSTEMD,
text=text at entry=0x7f87d41f30 "p > 0",
file=file at entry=0x7f87d41e1f "src/journal/journal-file.c", line=line at entry
=2442,
func=func at entry=0x7f87d42fe0 <*PRETTY_FUNCTION*.13000> "test_object_seqnum")
at ../git/src/basic/log.c:809
No locals.
#2 <https://github.com/systemd/systemd/pull/2> 0x0000007f87d0e5e8 in
test_object_seqnum (f=0x217c, p=0, needle=8572)
at ../git/src/journal/journal-file.c:2442
o =
r =
*PRETTY_FUNCTION* = "test_object_seqnum"
#3 <https://github.com/systemd/systemd/pull/3> test_object_seqnum
(f=f at entry=0x7f78012030,
p=p at entry=0, needle=needle at entry=8572)
at ../git/src/journal/journal-file.c:2437
o = 0x7f8524a0a8
r =
*PRETTY_FUNCTION* = "test_object_seqnum"
#4 <https://github.com/systemd/systemd/pull/4> 0x0000007f87d0fa84 in
generic_array_bisect_plus_one (idx=0x0, offset=0x7f8524a210, ret=0x0,
direction=DIRECTION_DOWN, test_object=0x7f87d0e528 <test_object_seqnum>,
needle=8572, n=1,
first=0, extra=0, f=0x7f78012030) at ../git/src/journal/journal-file.c:2376
r =
step_back =
o = 0x173318
r =
--Type for more, q to quit, c to continue without paging--
step_back =
o =
*PRETTY_FUNCTION* = "generic_array_bisect_plus_one"
#5 <https://github.com/systemd/systemd/pull/5>
generic_array_bisect_plus_one (f=0x7f78012030, extra=0, first=0, n=1,
needle=8572,
test_object=0x7f87d0e528 <test_object_seqnum>, direction=DIRECTION_DOWN,
ret=0x0,
offset=0x7f8524a210, idx=0x0) at ../git/src/journal/journal-file.c:2352
r =
o =
*PRETTY_FUNCTION* = "generic_array_bisect_plus_one"
#6 <https://github.com/systemd/systemd/pull/6> 0x0000007f87d10f84 in
journal_file_move_to_entry_by_seqnum_for_data (f=f at entry=0x7f78012030,
data_offset=, seqnum=8572, direction=direction at entry=DIRECTION_DOWN,
ret=ret at entry=0x0, offset=offset at entry=0x7f8524a210) at
../git/src/basic/sparse-endian.h:83
d = 0x7f77a0cce8
r =
*PRETTY_FUNCTION* = "journal_file_move_to_entry_by_seqnum_for_data"
#7 <https://github.com/systemd/systemd/pull/7> 0x0000007f87d15990 in
find_location_for_match (j=j at entry=0x7f78000bc0,
m=m at entry=0x7f78001fa0, f=f at entry=0x7f78012030, direction=direction at entry
=DIRECTION_DOWN,
ret=ret at entry=0x0, offset=offset at entry=0x7f8524a210) at
../git/src/journal/sd-journal.c:605
dp = 52456
r =
*PRETTY_FUNCTION* = "find_location_for_match"
#8 <https://github.com/systemd/systemd/pull/8> 0x0000007f87d15838 in
find_location_for_match (j=j at entry=0x7f78000bc0,
m=m at entry=0x7f78001f50, f=f at entry=0x7f78012030, direction=direction at entry
=DIRECTION_DOWN,
ret=ret at entry=0x0, offset=offset at entry=0x7f8524a2a0) at
../git/src/journal/sd-journal.c:626
cp = 7161343769125990453
np = 0
n = 0x6362343731363035
--Type for more, q to quit, c to continue without paging--
i = 0x7f78001fa0
r =
*PRETTY_FUNCTION* = "find_location_for_match"
#9 <https://github.com/systemd/systemd/pull/9> 0x0000007f87d156f8 in
find_location_for_match (j=j at entry=0x7f78000bc0,
m=m at entry=0x7f78001f00, f=f at entry=0x7f78012030, direction=direction at entry
=DIRECTION_DOWN,
ret=ret at entry=0x0, offset=offset at entry=0x7f8524a330) at
../git/src/journal/sd-journal.c:664
cp = 547474115520
i = 0x7f78001f50
np = 0
r =
*PRETTY_FUNCTION* = "find_location_for_match"
#10 <https://github.com/systemd/systemd/pull/10> 0x0000007f87d15838 in
find_location_for_match (j=j at entry=0x7f78000bc0,
m=m at entry=0x7f78001eb0, f=f at entry=0x7f78012030, direction=direction at entry
=DIRECTION_DOWN,
ret=ret at entry=0x0, offset=offset at entry=0x7f8524a3c0) at
../git/src/journal/sd-journal.c:626
cp = 1000000
np = 0
n = 0xf4240
i = 0x7f78001f00
r =
*PRETTY_FUNCTION* = "find_location_for_match"
#11 <https://github.com/systemd/systemd/pull/11> 0x0000007f87d156f8 in
find_location_for_match (j=j at entry=0x7f78000bc0, m=0x7f78001e60,
f=f at entry=0x7f78012030, direction=direction at entry=DIRECTION_DOWN,
ret=ret at entry=0x7f8524a478,
offset=offset at entry=0x7f8524a480) at ../git/src/journal/sd-journal.c:664
cp = 547694617584
i = 0x7f78001eb0
np = 0
r =
--Type for more, q to quit, c to continue without paging--
*PRETTY_FUNCTION* = "find_location_for_match"
#12 <https://github.com/systemd/systemd/pull/12> 0x0000007f87d1725c in
find_location_with_matches (offset=0x7f8524a480, ret=0x7f8524a478,
direction=DIRECTION_DOWN, f=0x7f78012030, j=0x7f78000bc0)
at ../git/src/journal/sd-journal.c:709
r =
r =
*PRETTY_FUNCTION* =
#13 <https://github.com/systemd/systemd/pull/13> next_beyond_location
(direction=DIRECTION_DOWN, f=0x7f78012030, j=0x7f78000bc0)
at ../git/src/journal/sd-journal.c:769
c = 0x555ae98fa0 <journal_thread_impl+1240>
cp = 547694617776
n_entries =
r =
c =
cp =
n_entries =
r =
*PRETTY_FUNCTION* = "next_beyond_location"
found =
k =
#14 <https://github.com/systemd/systemd/pull/14> real_journal_next
(j=0x7f78000bc0, direction=direction at entry=DIRECTION_DOWN)
at ../git/src/journal/sd-journal.c:823
f = 0x7f78012030
found =
new_file = 0x0
i = 8
n_files = 9
--Type for more, q to quit, c to continue without paging--
files = 0x7f78002030
o = 0x7f8524a4b0
r =
*PRETTY_FUNCTION* = "real_journal_next"
*func* = "real_journal_next"
#15 <https://github.com/systemd/systemd/pull/15> 0x0000007f87d18e10 in
sd_journal_next (j=)
at ../git/src/journal/sd-journal.c:860
No locals.

Let me know if any additional information is needed from my side.

Thanks for help in advance!

Regards,
Aditya Tayade
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20201217/2868cdcc/attachment-0001.htm>


More information about the systemd-devel mailing list