https://bugs.openldap.org/show_bug.cgi?id=9378

--- Comment #20 from Howard Chu <h...@openldap.org> ---
For completeness sake, here are the scripts used to launch baloo_file and kill
it repeatedly, which were needed to reproduce the issue.

#####
#!/bin/bash

while(true); do
#    /usr/bin/baloo_file
    /usr/bin/baloo_file 2>&1 &
    PID=$!
    wait -f $PID
    EXITCODE=$?
    echo "# killed $PID, exitcode $EXITCODE"

    # SIGABRT or SIGSEGV
    if [[ "$EXITCODE" -eq  6 ]] || [[ "$EXITCODE" -eq 11 ]];
    then
        echo "===========================" 1>&2
        echo "===========================" 1>&2
        echo "SIGABRT or SIGSEGV happened." 1>&2
        echo "===========================" 1>&2
        echo "===========================" 1>&2
        touch ~/__IMPORTANT_FILE__
        exit 1
    fi
    sleep 0.1s
done;
#####
#!/bin/bash

sleep $(shuf -i 30-50 -n 1)s; 
while (true);
do
    sudo killall -s 9 baloo_file
    sleep $(shuf -i 20-480 -n 1)s
done;
#####

-- 
You are receiving this mail because:
You are on the CC list for the issue.

Reply via email to