URL:
https://github.com/SSSD/sssd/pull/712
Title: #712: SSSCTL: user-checks does not show custom attributes
jhrozek commented:
"""
I'm getting a crash when testing this code:
```
#0 0x00007fdfcaefaeab in raise () from /lib64/libc.so.6
#1 0x00007fdfcaee55b9 in abort () from /lib64/libc.so.6
#2 0x00007fdfcb5a9aad in _dbus_abort.cold.0 () from /lib64/libdbus-1.so.3
#3 0x00007fdfcb5cbef0 in _dbus_warn_check_failed () from /lib64/libdbus-1.so.3
#4 0x00007fdfcb5bd7ef in dbus_message_iter_open_container () from /lib64/libdbus-1.so.3
#5 0x00007fdfcbe38f47 in sbus_copy_iterator_container (from=0x7ffc535c9490,
to=0x7ffc535c94e0, type=101)
at /sssd/src/sbus/interface/sbus_properties.c:190
#6 0x00007fdfcbe390e1 in sbus_copy_iterator_value (from=0x7ffc535c9490,
to=0x7ffc535c94e0)
at /sssd/src/sbus/interface/sbus_properties.c:264
#7 0x00007fdfcbe38f76 in sbus_copy_iterator_container (from=0x7ffc535c95b0,
to=0x7ffc535c9600, type=97)
at /sssd/src/sbus/interface/sbus_properties.c:195
#8 0x00007fdfcbe390e1 in sbus_copy_iterator_value (from=0x7ffc535c95b0,
to=0x7ffc535c9600)
at /sssd/src/sbus/interface/sbus_properties.c:264
#9 0x00007fdfcbe38f76 in sbus_copy_iterator_container (from=0x7ffc535c9720,
to=0x7ffc535c96d0, type=118)
at /sssd/src/sbus/interface/sbus_properties.c:195
#10 0x00007fdfcbe390e1 in sbus_copy_iterator_value (from=0x7ffc535c9720,
to=0x7ffc535c96d0)
at /sssd/src/sbus/interface/sbus_properties.c:264
#11 0x00007fdfcbe3923a in sbus_copy_message_to_dictionary (name=0x7fdfcc2981db
"extraAttributes", msg=0x1822c90,
to=0x1831828) at /sssd/src/sbus/interface/sbus_properties.c:308
#12 0x00007fdfcbe39e82 in sbus_properties_getall_done (subreq=0x0) at
/sssd/src/sbus/interface/sbus_properties.c:658
#13 0x00007fdfcbe398ea in sbus_properties_get_done (subreq=0x0) at
/sssd/src/sbus/interface/sbus_properties.c:489
#14 0x00007fdfcc2896fe in _sbus_ifp_invoke_in__out_ifp_extra_step (ev=0x17f3900,
te=0x182a5f0, tv=...,
private_data=0x182a3b0) at /sssd/src/responder/ifp/ifp_iface/sbus_ifp_invokers.c:852
#15 0x00007fdfcba0a785 in tevent_common_loop_timer_delay (ev=ev@entry=0x17f3900) at
../tevent_timed.c:369
#16 0x00007fdfcba0b87b in epoll_event_loop_once (ev=0x17f3900, location=<optimized
out>) at ../tevent_epoll.c:915
#17 0x00007fdfcba09dab in std_event_loop_once (ev=0x17f3900, location=0x7fdfceb9c3bd
"/sssd/src/util/server.c:724")
at ../tevent_standard.c:114
#18 0x00007fdfcba06098 in _tevent_loop_once (ev=ev@entry=0x17f3900,
location=location@entry=0x7fdfceb9c3bd "/sssd/src/util/server.c:724") at
../tevent.c:725
#19 0x00007fdfcba062eb in tevent_common_loop_wait (ev=0x17f3900,
---Type <return> to continue, or q <return> to quit---
location=0x7fdfceb9c3bd "/sssd/src/util/server.c:724") at ../tevent.c:848
#20 0x00007fdfcba09d3b in std_event_loop_wait (ev=0x17f3900, location=0x7fdfceb9c3bd
"/sssd/src/util/server.c:724")
at ../tevent_standard.c:145
#21 0x00007fdfceb72593 in server_loop (main_ctx=0x17f4d90) at
/sssd/src/util/server.c:724
#22 0x0000000000408d59 in main (argc=6, argv=0x7ffc535c9d18) at
/sssd/src/responder/ifp/ifpsrv.c:361
```
But this looks like I haven't gotten to your codepath yet. Did you see the error
locally as well?
"""
See the full comment at
https://github.com/SSSD/sssd/pull/712#issuecomment-452282273