SIGSEGV with empty COI

Bug #1765361 reported by Alejandro Perez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Moonshot Trust-Router
Fix Committed
High
Jennifer Richards

Bug Description

It might occur with other combinations, but this is what I found.

When there is an empty COI (ie. COI without any IDP realm or RP realm), and you perform several tidc queries (both successful and failed), it eventually SIGSEGVs.

#0 0x000000000041aedb in tr_comm_sweep_func (head=0x63b550) at common/tr_comm.c:375
        comm = 0x0
        old_next = <optimized out>
#1 tr_comm_table_sweep (ctab=0x636080) at common/tr_comm.c:1389
No locals.
#2 0x000000000040c466 in trps_sweep_ctable (trps=trps@entry=0x634310) at trp/trps.c:1323
        tmp_ctx = 0x636330
        sweep_time = {tv_sec = 11410, tv_nsec = 672013793}
        memb = <optimized out>
        iter = 0x638f90
        rc = TRP_ERROR
#3 0x000000000040603f in tr_trps_sweep (listener=<optimized out>, event=<optimized out>, arg=<optimized out>)
    at tr/tr_trp.c:354
        cookie = <optimized out>
        trps = 0x634310
        ev = 0x639520
        table_str = 0x0
#4 0x00007ffff76923dc in event_base_loop () from /usr/lib/x86_64-linux-gnu/libevent-2.0.so.5
No symbol table info available.
#5 0x0000000000403fd0 in main (argc=<optimized out>, argv=<optimized out>) at tr/tr_main.c:256
        main_ctx = 0x634070
        tr = 0x634150
        opts = {version_requested = 0, config_dir = 0x4277b9 "."}
        ev_base = 0x639b60
        tids_ev = {n_sock_fd = 2, sock_fd = {8, 9, 0, 0, 0, 0, 0, 0, 0, 0}, ev = {0x637e20, 0x6363e0, 0x0, 0x0, 0x0,
            0x0, 0x0, 0x0, 0x0, 0x0}}
        cfgwatch_ev = 0x6390f0

Revision history for this message
Stefan Paetow (stefan-paetow) wrote :

This is possibly related to #1751320

Changed in moonshot:
importance: Undecided → High
affects: moonshot → moonshot.tr
affects: moonshot.tr → moonshot-tr
Changed in moonshot-tr:
status: New → In Progress
assignee: nobody → Jennifer Richards (jennifer-k)
Revision history for this message
Alejandro Perez (alejandro-perez-mendez) wrote :

Agree with Stefan. It very much looks like they are related.

Changed in moonshot-tr:
status: In Progress → Fix Committed
Revision history for this message
Alejandro Perez (alejandro-perez-mendez) wrote :

Seems fixed in my tests. At least, where it used to fail, it does not now.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.