Package: libcurl3
Version: 7.32.0-1
Severity: normal

Hello,

After libcurl3 got updated to version 7.32.0-1 on my system I started
experiencing crashes in dovecot (actually in its solr fts plugin).
Downgrading to 7.31.0-2 fixed the problem.


The code (solr-connection.c, line 538) looks like this:

    merr = curl_multi_fdset(post->conn->curlm, &fdread, &fdwrite,
                            &fdexcep, &maxfd);
    if (merr != CURLM_OK) {
            i_error("fts_solr: curl_multi_fdset() failed: %s",
                    curl_multi_strerror(merr));
            break;
    }
    i_assert(maxfd >= 0);

and it now fails the assertion (i.e. maxfd is -1 while merr is OK).


Here comes the full backtrace:

(gdb) bt full
#0  0x00007f30145331e5 in __GI_raise (sig=sig@entry=6) at 
../nptl/sysdeps/unix/sysv/linux/raise.c:56
        resultvar = 0
        pid = 26703
        selftid = 26703
#1  0x00007f3014536398 in __GI_abort () at abort.c:90
        save_stage = 2
        act = {__sigaction_handler = {sa_handler = 0x0, sa_sigaction = 0x0}, 
sa_mask = {__val = {0, 
              139844487963197, 139844487965493, 139844480118806, 
139844480122055, 139844480117288, 
              139844480038019, 139844487930855, 139844476074389, 
139844487931233, 139844480175713, 
              139844515268400, 140735363229896, 140735363230384, 
139844480175849, 139844515268400}}, 
          sa_flags = 344894946, sa_restorer = 0x0}
        sigs = {__val = {32, 0 <repeats 15 times>}}
#2  0x00007f30148ee158 in default_fatal_finish (type=<optimized out>, 
status=status@entry=0) at failures.c:191
        backtrace = 0x7f3016a80768 "/usr/lib/dovecot/libdovecot.so.0(+0x4414a) 
[0x7f30148ee14a] -> /usr/lib/dovecot/libdovecot.so.0(+0x4418e) [0x7f30148ee18e] 
-> /usr/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7f30148c582a] -> 
/usr/lib/d"...
#3  0x00007f30148ee18e in i_internal_fatal_handler (ctx=0x7fff81552910, 
format=<optimized out>, 
    args=<optimized out>) at failures.c:649
        status = 0
#4  0x00007f30148c582a in i_panic (
    format=format@entry=0x7f3013047ce0 "file %s: line %d (%s): assertion 
failed: (%s)") at failures.c:263
        ctx = {type = LOG_TYPE_PANIC, exit_status = 0, timestamp = 0x0}
        args = {{gp_offset = 40, fp_offset = 48, overflow_arg_area = 
0x7fff81552a00, 
            reg_save_area = 0x7fff81552940}}
#5  0x00007f30130478d9 in solr_connection_post_more 
(post=post@entry=0x7f3016b7de70, 
    data=data@entry=0x7f3016a80618 
"<delete><id>15477/6819951b7c1dab5173330000d5254ef1/fred</id></delete>", 
    size=<optimized out>) at solr-connection.c:545
        fdread = {__fds_bits = {0 <repeats 16 times>}}
        fdwrite = {__fds_bits = {0 <repeats 16 times>}}
        fdexcep = {__fds_bits = {0 <repeats 16 times>}}
        timeout_tv = {tv_sec = 42, tv_usec = 139844482455576}
        timeout = 139844479764032
        msg = <optimized out>
        merr = <optimized out>
        ret = <optimized out>
        handles = 1
        maxfd = -1
        n = 0
        __FUNCTION__ = "solr_connection_post_more"
#6  0x00007f3013047abf in solr_connection_post (conn=<optimized out>, 
    cmd=0x7f3016a80618 
"<delete><id>15477/6819951b7c1dab5173330000d5254ef1/fred</id></delete>")
    at solr-connection.c:603
        post = 0x7f3016b7de70
#7  0x00007f30130443f1 in fts_backend_solr_update_expunge (uid=15477, 
_ctx=0x7f3016b14f30)
    at fts-backend-solr.c:417
        cmd = 0x7f3016a805e0
        _data_stack_cur_id = 7
#8  fts_backend_solr_update_expunge (_ctx=0x7f3016b14f30, uid=15477) at 
fts-backend-solr.c:387
        ctx = 0x7f3016b14f30
        hdr = {last_indexed_uid = 15456, settings_checksum = 0, unused = 0}
#9  0x00007f3014b88cfb in maildir_expunge (mbox=0x7f3016b14360, path=<optimized 
out>, ctx=0x7f3016b1b8a0)
    at maildir-sync-index.c:91
        box = 0x7f3016b14360
#10 0x00007f3014b8dd24 in maildir_file_do_try (mbox=mbox@entry=0x7f3016b14360, 
uid=uid@entry=15477, 
    callback=callback@entry=0x7f3014b88cb0 <maildir_expunge>, 
context=context@entry=0x7f3016b1b8a0)
    at maildir-util.c:101
        path = <optimized out>
        fname = 0x7f300f2a1bd0 "1376458518.M648600P25724.nezt,S=6224,W=6386:2,T"
        flags = (unknown: 0)
        have_flags = <optimized out>
        ret = <optimized out>
#11 0x00007f3014b8dfa4 in maildir_file_do (mbox=mbox@entry=0x7f3016b14360, 
uid=15477, 
    callback=callback@entry=0x7f3014b88cb0 <maildir_expunge>, 
context=context@entry=0x7f3016b1b8a0)
    at maildir-util.c:140
        _data_stack_cur_id = 6
        i = <optimized out>
        ret = <optimized out>
#12 0x00007f3014b8913f in maildir_sync_index (ctx=0x7f3016b1b8a0, 
partial=false) at maildir-sync-index.c:576
        mbox = 0x7f3016b14360
        view = 0x7f3016b1ab80
        view2 = <optimized out>
        iter = 0x7f3016b1aab0
        trans = 0x7f3016b7d230
        hdr = 0x7f3016b181c0
        empty_hdr = {major_version = 0 '\000', minor_version = 174 '\256', 
base_header_size = 5800, 
          header_size = 32560, record_size = 350777392, compat_flags = 48 '0', 
unused = "\177\000", 
          indexid = 380153344, flags = 32560, uid_validity = 344973591, 
next_uid = 32560, 
          messages_count = 380741872, unused_old_recent_messages_count = 32560, 
seen_messages_count = 347658207, 
          deleted_messages_count = 32560, first_recent_uid = 347297952, 
first_unseen_uid_lowwater = 32560, 
          first_deleted_uid_lowwater = 344896730, log_file_seq = 32560, 
log_file_tail_offset = 380746304, 
          log_file_head_offset = 32560, unused_old_sync_size = 139844482455576, 
          unused_old_sync_stamp = 380742528, day_stamp = 32560, day_first_uid = 
{347976452, 32560, 380723616, 
            32560, 380745888, 32560, 380715872, 32560}}
        rec = <optimized out>
        seq = 26703
        seq2 = <optimized out>
        uid = 15477
        prev_uid = 15477
        uflags = (unknown: 0)
        filename = 0x7f300f2a1bd0 
"1376458518.M648600P25724.nezt,S=6224,W=6386:2,T"
        uid_validity = 1370168652
        next_uid = <optimized out>
        hdr_next_uid = 15481
        first_recent_uid = 15481
        first_uid = 1
        changes = 0
        ret = 0
        time_before_sync = 1376458885
        expunged_guid_128 = "p@\366L`h\300m7\255\310I3\272\064\242"
        private_flags_mask = 0
        expunged = true
        full_rescan = false
        __FUNCTION__ = "maildir_sync_index"
#13 0x00007f3014b87d58 in maildir_sync_context (ctx=ctx@entry=0x7f3016a7f340, 
forced=forced@entry=false, 
    find_uid=find_uid@entry=0x0, 
lost_files_r=lost_files_r@entry=0x7fff81552f7b) at maildir-sync.c:910
        sync_flags = <optimized out>
        new_changed = false
        cur_changed = true
        lock_failure = false
        fname = 0x7f30148ec70b <t_malloc0+43> 
"H\211\330H\213l$\020H\213\\$\bH\203\304\030\303\017\037"
        why = WHY_DELAYEDCUR
        ret = <optimized out>
        __FUNCTION__ = "maildir_sync_context"
#14 0x00007f3014b884fd in maildir_storage_sync_init (box=0x7f3016b14360, 
    flags=(MAILBOX_SYNC_FLAG_FULL_READ | MAILBOX_SYNC_FLAG_FIX_INCONSISTENT)) 
at maildir-sync.c:1041
        _data_stack_cur_id = 5
        mbox = 0x7f3016b14360
        ctx = 0x7f3016a7f340
        lost_files = <optimized out>
        force_resync = false
        ret = 0
        __FUNCTION__ = "maildir_storage_sync_init"
#15 0x00007f3014bb63e3 in mailbox_sync_init (box=0x7f3016b14360, 
    flags=(MAILBOX_SYNC_FLAG_FULL_READ | MAILBOX_SYNC_FLAG_FIX_INCONSISTENT)) 
at mail-storage.c:1320
        _data_stack_cur_id = 4
        ctx = <optimized out>
#16 0x00007f3014bb6507 in mailbox_sync (box=<optimized out>, flags=<optimized 
out>, 
    flags@entry=MAILBOX_SYNC_FLAG_FULL_READ) at mail-storage.c:1368
        ctx = <optimized out>
        status = {sync_delayed_expunges = 0}
#17 0x00007f3015073202 in select_open (readonly=false, mailbox=<optimized out>, 
ctx=0x7f3016b0a408)
    at cmd-select.c:296
        client = 0x7f3016b09b00
        status = {messages = 380139120, recent = 32560, unseen = 345001684, 
uidvalidity = 32560, 
          uidnext = 380105616, first_unseen_seq = 32560, first_recent_uid = 
128, last_cached_seq = 0, 
          highest_modseq = 128, keywords = 0x7f30148ec70b <t_malloc0+43>, 
permanent_flags = 128, 
          nonpermanent_modseqs = 0, permanent_keywords = 0, allow_new_keywords 
= 0}
        flags = MAILBOX_FLAG_DROP_RECENT
        ret = <optimized out>
#18 cmd_select_full (cmd=<optimized out>, readonly=<optimized out>) at 
cmd-select.c:419
        client = <optimized out>
        ctx = <optimized out>
        args = 0x7f3016b0cb68
        list_args = 0x7f3015073fd6 <cmd_status+454>
        mailbox = 0x7f3016a7f300 "INBOX"
        ret = 26703
        __FUNCTION__ = "cmd_select_full"
#19 0x00007f3015076edc in command_exec (cmd=cmd@entry=0x7f3016b0a310) at 
imap-commands.c:148
        hook = 0x7f3016a88cd0
        ret = <optimized out>
#20 0x00007f3015075f2e in client_command_input (cmd=0x684f) at imap-client.c:682
        client = 0x7f3016b09b00
        command = <optimized out>
        __FUNCTION__ = "client_command_input"
#21 0x00007f3015075fda in client_command_input (cmd=0x7f3016b0a310) at 
imap-client.c:733
        client = 0x7f3016b09b00
        command = <optimized out>
        __FUNCTION__ = "client_command_input"
#22 0x00007f301507623d in client_handle_next_command (remove_io_r=<synthetic 
pointer>, client=0x7f3016b09b00)
    at imap-client.c:774
        size = 22
#23 client_handle_input (client=client@entry=0x7f3016b09b00) at 
imap-client.c:786
        _data_stack_cur_id = 3
        ret = true
        remove_io = false
        handled_commands = true
        __FUNCTION__ = "client_handle_input"
#24 0x00007f3015076b35 in client_input (client=0x7f3016b09b00) at 
imap-client.c:825
        cmd = <optimized out>
        output = 0x7f3016ab3658
        bytes = 56
        __FUNCTION__ = "client_input"
#25 0x00007f30148fb016 in io_loop_call_io (io=0x7f3016ab3700) at ioloop.c:379
        ioloop = 0x7f3016a87670
        t_id = 2
#26 0x00007f30148fbcc7 in io_loop_handler_run 
(ioloop=ioloop@entry=0x7f3016a87670) at ioloop-epoll.c:213
        ctx = 0x7f3016a879e0
        events = 0x0
        event = 0x7f3016a87a50
        list = 0x7f3016ac6760
        io = <optimized out>
        tv = {tv_sec = 1799, tv_usec = 999812}
        events_count = <optimized out>
        msecs = <optimized out>
        ret = 1
        i = <optimized out>
        call = <optimized out>
#27 0x00007f30148faa28 in io_loop_run (ioloop=0x7f3016a87670) at ioloop.c:398
No locals.
#28 0x00007f30148e7483 in master_service_run (service=0x7f3016a87520, 
    callback=callback@entry=0x7f301507eb60 <client_connected>) at 
master-service.c:544
No locals.
#29 0x00007f301506e3e7 in main (argc=1, argv=0x7f3016a87370) at main.c:389
        set_roots = {0x7f3015284d00 <imap_setting_parser_info>, 0x0}
        login_set = {auth_socket_path = 0x7f3016a7f070 
"/run/dovecot/auth-master", postlogin_socket_path = 0x0, 
          postlogin_timeout_secs = 60, callback = 0x7f301507ea00 
<login_client_connected>, 
          failure_callback = 0x7f301507e750 <login_client_failed>}
        service_flags = <optimized out>
        storage_service_flags = <optimized out>
        username = 0x0
        c = <optimized out>


Hope it helps,

      Fred

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.10-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libcurl3 depends on:
ii  libc6              2.17-92
ii  libgssapi-krb5-2   1.10.1+dfsg-6.1
ii  libidn11           1.28-1
ii  libldap-2.4-2      2.4.31-1+nmu2
ii  librtmp0           2.4+20121230.gitdf6c518-1
ii  libssh2-1          1.4.3-1
ii  libssl1.0.0        1.0.1e-3
ii  multiarch-support  2.17-92
ii  zlib1g             1:1.2.8.dfsg-1

Versions of packages libcurl3 recommends:
ii  ca-certificates  20130610

libcurl3 suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to