Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 749 of 808  Not logged in ELOG logo
ID Date Icon Author Author Email Categorydown OS ELOG Version Subject
  69111   Tue Feb 4 17:19:49 2020 Reply Stefan Rittstefan.ritt@psi.chBug reportLinux3.14 RPMRe: Elogd crashes on search

Looks like. Can you dig into the database file and have a look at that entry? Or send me the file containing that entry (together with your elogd.cfg)

Stefan

Laurent Jean-Rigaud wrote:

At #5, there is message_id=426 . You think it's this elog entries # 426 that is the source of crash  ?

 

Laurent Jean-Rigaud wrote:

Hi Stefan,

My previous dump is useless as your elog-debuginfo rpm is stripped.

So i rebuild elog w/ -g , reinstall it and activate core generation. I restst a search of "test" and get this in gdb corefile .

 

[root@localhost ~]# gdb /var/crash/core.elogd.11613.localhost.localdomain.1580820772
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-115.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
[New LWP 11613]
Reading symbols from /usr/local/sbin/elogd...Reading symbols from /usr/lib/debug/usr/local/sbin/elogd.debug...done.
done.
Missing separate debuginfo for 
Try: yum --enablerepo='*debug*' install /usr/lib/debug/.build-id/b5/a5458535a1397fa6baaf5e8c13a6395426a1b2
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/usr/local/sbin/elogd -D -c /usr/local/elog/elogd.cfg'.
Program terminated with signal 6, Aborted.
#0  0x00007f2746409337 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:55
55      return INLINE_SYSCALL (tgkill, 3, pid, selftid, sig);
(gdb) backtrace
#0  0x00007f2746409337 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:55
#1  0x00007f274640aa28 in __GI_abort () at abort.c:90
#2  0x00007f274644be87 in __libc_message (do_abort=do_abort@entry=2, 
    fmt=fmt@entry=0x7f274655e3b8 "*** Error in `%s': %s: 0x%s ***\n")
    at ../sysdeps/unix/sysv/linux/libc_fatal.c:196
#3  0x00007f2746454679 in malloc_printerr (ar_ptr=0x7f274679a760 <main_arena>, ptr=<optimized out>, 
    str=0x7f274655e450 "free(): invalid next size (normal)", action=3) at malloc.c:4967
#4  _int_free (av=0x7f274679a760 <main_arena>, p=<optimized out>, have_lock=0) at malloc.c:3843
#5  0x000000000045e456 in display_line (lbs=0x222c968, message_id=426, number=<optimized out>, 
    mode=0x7fffde328c90 "summary", expand=1, level=0, printable=0, n_line=3, show_attachments=0, 
    show_att_column=1, date=0x7fffde328b50 "Wed, 04 Dec 2019 07:41:34 +0000", 
    in_reply_to=0x7fffde328ba0 "", reply_to=0x7fffde329600 "", n_attr_disp=14, 
    disp_attr=0x7fffde3792a0, disp_attr_link=0x7fffde329460, attrib=0x7fffde32fec0, n_attr=14, 
    text=0x2378d18 "<div style=\"margin: 0px; padding: 0px; text-indent: 0px;\">\r\n<table border=\"1\" cellpadding=\"1\" cellspacing=\"1\" style=\"height:230px; width:1308px\">\r\n\t<caption>\r\n\t<p style=\"text-align:left\"><strong>MAJ 2"..., show_text=1, attachment=0x7fffde32ccc0, 
    encoding=0x7fffde328bf0 "HTML", select=0, n_display=0x7fffde328a80, locked_by=0x7fffde328ec0 "", 
    highlight=0, re_buf=0x7fffde32b380, highlight_mid=0, absolute_link=0, draft=0x7fffde3290c0 "")
    at src/elogd.c:18520
#6  0x0000000000482140 in show_elog_list (lbs=lbs@entry=0x222c968, past_n=past_n@entry=0, 
    last_n=last_n@entry=0, page_n=<optimized out>, page_n@entry=0, default_page=<optimized out>, 
    default_page@entry=1, info=info@entry=0x0) at src/elogd.c:21859
#7  0x00000000004a74a0 in interprete (lbook=lbook@entry=0x7fffde3c79e0 "MCO", path=<optimized out>, 
    path@entry=0x7fffde3c7520 "") at src/elogd.c:28454
#8  0x00000000004a7b13 in decode_get (logbook=logbook@entry=0x7fffde3c79e0 "MCO", 
    string=<optimized out>) at src/elogd.c:28494
#9  0x00000000004aa03a in process_http_request (request=<optimized out>, 
    request@entry=0x223e288 "GET /MCO/?mode=summary&reverse=0&reverse=1&npp=30&subtext=test"
    i_conn=i_conn@entry=0) at src/elogd.c:29272
#10 0x00000000004ad385 in server_loop () at src/elogd.c:30286
#11 0x0000000000402e97 in main (argc=<optimized out>, argv=<optimized out>) at src/elogd.c:31314

 

 

Is it better to find problem ?

 

 

Laurent Jean-Rigaud wrote:

Hi Stefan.

I installed debuginfo and ran elogd with gdb attached.

(gdb) backtrace 
#0  0x00007fde38104337 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:55
#1  0x00007fde38105a28 in __GI_abort () at abort.c:90
#2  0x00007fde38146e87 in __libc_message (do_abort=do_abort@entry=2, fmt=fmt@entry=0x7fde382593b8 "*** Error in `%s': %s: 0x%s ***\n")
    at ../sysdeps/unix/sysv/linux/libc_fatal.c:196
#3  0x00007fde3814f679 in malloc_printerr (ar_ptr=0x7fde38495760 <main_arena>, ptr=<optimized out>, str=0x7fde38259450 "free(): invalid next size (normal)", action=3)
    at malloc.c:4967
#4  _int_free (av=0x7fde38495760 <main_arena>, p=<optimized out>, have_lock=0) at malloc.c:3843
#5  0x000000000045e756 in display_line ()
#6  0x00000000004824b0 in show_elog_list ()
#7  0x00000000004a69b1 in interprete ()
#8  0x00000000004a7023 in decode_get ()
#9  0x00000000004a954a in process_http_request ()
#10 0x00000000004ac9d3 in server_loop ()
#11 0x00000000004035a6 in main ()

Does it help you ?

 

 

Stefan Ritt wrote:

The only way for me is to reproduce it. Could be corrupted data file, or config file. Try with a new logbook with the same configuration, then add logbook files one by one until it happens.

Stefan

Laurent Jean-Rigaud wrote:

Hi Stefan,

The problem seems to be specific with our logbooks. Maybe one of the file is corrupted or bad string encoding ?! But how to find the source of the problem ?

Any way to improve debug log ? (using debug level = 9 + logfile)

Also, do you have a procedure to debug ELOG with debuginfo package installed to have more informations in trace ?

.

Laurent

 

Stefan Ritt wrote:

Do you see the same problem on this server here?

If not, then it must be related to your specific configuration. You have to teach me how to reporduce the error in order to fix it. Best would be a minimal elogd.cfg which causes the error.

Stefan

Laurent Jean-Rigaud wrote:

OS: CentOS 7 x86_64 up2date with RPM 3.14 x86_64

  • Connexion to ELOG
  • open one logbook and click search,
  • input "test" and click "Search" : BOOM
  • Firefox can not connect anymore on ELOG.

The crash is met with several words now ("test", "post", "4.5", are the one i know). We use a mirror server and the problem appears also on it .

NB: the hangs appears on EL6 x86_64 server with customized RPM built by myself. I retry with 3.14 SRPMS avalaible from ELOG site with same results. Idem with last GIT version. So i tested on EL7 with official RPM x86_64 (not suitable for EL6 as it needs GLIBC_2.14) before to open this ticket.

 

Terminal traces on server side follows.

 

[root@localhost /]# /usr/local/sbin/elogd -c /usr/local/elog/elogd.cfg 2>&1
elogd 3.1.4 built Sep 26 2018, 13:14:57 revision 966e3dd
File "/var/run/elogd.pid" exists, using "/var/run/elogd.pid.8080" instead.
Falling back to default group "elog"
Falling back to default user "elog"
CKeditor detected
Falling back to default group "elog"
Falling back to default user "elog"
Falling back to default group "elog"
Falling back to default user "elog"
Falling back to default group "elog"
Falling back to default user "elog"
Falling back to default group "elog"
Falling back to default user "elog"
ImageMagick NOT detected. Image scaling will not work.
Indexing logbooks ... done
Server listening on port 8080 ...
*** Error in `/usr/local/sbin/elogd': free(): invalid next size (normal): 0x0000000001c59310 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x81679)[0x7f45a898f679]
/usr/local/sbin/elogd[0x45e756]
/usr/local/sbin/elogd[0x4824b0]
/usr/local/sbin/elogd[0x4a69b1]
/usr/local/sbin/elogd[0x4a7023]
/usr/local/sbin/elogd[0x4a954a]
/usr/local/sbin/elogd[0x4ac9d3]
/usr/local/sbin/elogd[0x4035a6]
/lib64/libc.so.6(__libc_start_main+0xf5)[0x7f45a8930505]
/usr/local/sbin/elogd[0x4044d3]
======= Memory map: ========
00400000-004e3000 r-xp 00000000 fd:00 52822202                           /usr/local/sbin/elogd
006e2000-006e3000 r--p 000e2000 fd:00 52822202                           /usr/local/sbin/elogd
006e3000-007c4000 rw-p 000e3000 fd:00 52822202                           /usr/local/sbin/elogd
007c4000-0173a000 rw-p 00000000 00:00 0 
01a66000-01c8f000 rw-p 00000000 00:00 0                                  [heap]
7f459bdea000-7f459bdff000 r-xp 00000000 fd:00 84                         /usr/lib64/libgcc_s-4.8.5-20150702.so.1
7f459bdff000-7f459bffe000 ---p 00015000 fd:00 84                         /usr/lib64/libgcc_s-4.8.5-20150702.so.1
7f459bffe000-7f459bfff000 r--p 00014000 fd:00 84                         /usr/lib64/libgcc_s-4.8.5-20150702.so.1
7f459bfff000-7f459c000000 rw-p 00015000 fd:00 84                         /usr/lib64/libgcc_s-4.8.5-20150702.so.1
7f459c000000-7f459c021000 rw-p 00000000 00:00 0 
7f459c021000-7f45a0000000 ---p 00000000 00:00 0 
7f45a010c000-7f45a0114000 r-xp 00000000 fd:00 1598592                    /usr/lib64/libnss_sss.so.2
7f45a0114000-7f45a0313000 ---p 00008000 fd:00 1598592                    /usr/lib64/libnss_sss.so.2
7f45a0313000-7f45a0314000 r--p 00007000 fd:00 1598592                    /usr/lib64/libnss_sss.so.2
7f45a0314000-7f45a0315000 rw-p 00008000 fd:00 1598592                    /usr/lib64/libnss_sss.so.2
7f45a0315000-7f45a0321000 r-xp 00000000 fd:00 22487                      /usr/lib64/libnss_files-2.17.so
7f45a0321000-7f45a0520000 ---p 0000c000 fd:00 22487                      /usr/lib64/libnss_files-2.17.so
7f45a0520000-7f45a0521000 r--p 0000b000 fd:00 22487                      /usr/lib64/libnss_files-2.17.so
7f45a0521000-7f45a0522000 rw-p 0000c000 fd:00 22487                      /usr/lib64/libnss_files-2.17.so
7f45a0522000-7f45a0528000 rw-p 00000000 00:00 0 
7f45a0528000-7f45a6a52000 r--p 00000000 fd:00 50336362                   /usr/lib/locale/locale-archive
7f45a6a52000-7f45a6ab2000 r-xp 00000000 fd:00 22554                      /usr/lib64/libpcre.so.1.2.0
7f45a6ab2000-7f45a6cb2000 ---p 00060000 fd:00 22554                      /usr/lib64/libpcre.so.1.2.0
7f45a6cb2000-7f45a6cb3000 r--p 00060000 fd:00 22554                      /usr/lib64/libpcre.so.1.2.0
7f45a6cb3000-7f45a6cb4000 rw-p 00061000 fd:00 22554                      /usr/lib64/libpcre.so.1.2.0
7f45a6cb4000-7f45a6cd8000 r-xp 00000000 fd:00 40935                      /usr/lib64/libselinux.so.1
7f45a6cd8000-7f45a6ed7000 ---p 00024000 fd:00 40935                      /usr/lib64/libselinux.so.1
7f45a6ed7000-7f45a6ed8000 r--p 00023000 fd:00 40935                      /usr/lib64/libselinux.so.1
7f45a6ed8000-7f45a6ed9000 rw-p 00024000 fd:00 40935                      /usr/lib64/libselinux.so.1
7f45a6ed9000-7f45a6edb000 rw-p 00000000 00:00 0 
7f45a6edb000-7f45a6ef2000 r-xp 00000000 fd:00 22495                      /usr/lib64/libpthread-2.17.so
7f45a6ef2000-7f45a70f1000 ---p 00017000 fd:00 22495                      /usr/lib64/libpthread-2.17.so
7f45a70f1000-7f45a70f2000 r--p 00016000 fd:00 22495                      /usr/lib64/libpthread-2.17.so
7f45a70f2000-7f45a70f3000 rw-p 00017000 fd:00 22495                      /usr/lib64/libpthread-2.17.so
7f45a70f3000-7f45a70f7000 rw-p 00000000 00:00 0 
7f45a70f7000-7f45a710d000 r-xp 00000000 fd:00 22497                      /usr/lib64/libresolv-2.17.so
7f45a710d000-7f45a730c000 ---p 00016000 fd:00 22497                      /usr/lib64/libresolv-2.17.so
7f45a730c000-7f45a730d000 r--p 00015000 fd:00 22497                      /usr/lib64/libresolv-2.17.so
7f45a730d000-7f45a730e000 rw-p 00016000 fd:00 22497                      /usr/lib64/libresolv-2.17.so
7f45a730e000-7f45a7310000 rw-p 00000000 00:00 0 
7f45a7310000-7f45a7313000 r-xp 00000000 fd:00 62649                      /usr/lib64/libkeyutils.so.1.5
7f45a7313000-7f45a7512000 ---p 00003000 fd:00 62649                      /usr/lib64/libkeyutils.so.1.5
7f45a7512000-7f45a7513000 r--p 00002000 fd:00 62649                      /usr/lib64/libkeyutils.so.1.5
7f45a7513000-7f45a7514000 rw-p 00003000 fd:00 62649                      /usr/lib64/libkeyutils.so.1.5
7f45a7514000-7f45a7522000 r-xp 00000000 fd:00 321861                     /usr/lib64/libkrb5support.so.0.1
7f45a7522000-7f45a7722000 ---p 0000e000 fd:00 321861                     /usr/lib64/libkrb5support.so.0.1
7f45a7722000-7f45a7723000 r--p 0000e000 fd:00 321861                     /usr/lib64/libkrb5support.so.0.1
7f45a7723000-7f45a7724000 rw-p 0000f000 fd:00 321861                     /usr/lib64/libkrb5support.so.0.1
7f45a7724000-7f45a7739000 r-xp 00000000 fd:00 40937                      /usr/lib64/libz.so.1.2.7
7f45a7739000-7f45a7938000 ---p 00015000 fd:00 40937                      /usr/lib64/libz.so.1.2.7
7f45a7938000-7f45a7939000 r--p 00014000 fd:00 40937                      /usr/lib64/libz.so.1.2.7
7f45a7939000-7f45a793a000 rw-p 00015000 fd:00 40937                      /usr/lib64/libz.so.1.2.7
7f45a793a000-7f45a793c000 r-xp 00000000 fd:00 22475                      /usr/lib64/libdl-2.17.so
7f45a793c000-7f45a7b3c000 ---p 00002000 fd:00 22475                      /usr/lib64/libdl-2.17.so
7f45a7b3c000-7f45a7b3d000 r--p 00002000 fd:00 22475                      /usr/lib64/libdl-2.17.so
7f45a7b3d000-7f45a7b3e000 rw-p 00003000 fd:00 22475                      /usr/lib64/libdl-2.17.so
7f45a7b3e000-7f45a7d74000 r-xp 00000000 fd:00 303887                     /usr/lib64/libcrypto.so.1.0.2k
7f45a7d74000-7f45a7f74000 ---p 00236000 fd:00 303887                     /usr/lib64/libcrypto.so.1.0.2k
7f45a7f74000-7f45a7f90000 r--p 00236000 fd:00 303887                     /usr/lib64/libcrypto.so.1.0.2k
7f45a7f90000-7f45a7f9d000 rw-p 00252000 fd:00 303887                     /usr/lib64/libcrypto.so.1.0.2k
7f45a7f9d000-7f45a7fa1000 rw-p 00000000 00:00 0 
7f45a7fa1000-7f45a7fd2000 r-xp 00000000 fd:00 321856                     /usr/lib64/libk5crypto.so.3.1

Abandon [sorry, French locale]

 

Logbook contains 445 entries (shown in ELOG window), 384 files and 4 folders (2017 to 2020).

 

Thanks for help as i start to be annoying to unuse search function.

 

 

 

 

 

 

 

 

  69112   Tue Feb 4 18:33:56 2020 Reply Laurent Jean-Rigaudlollspam@free.frBug reportLinux3.14 RPMRe: Elogd crashes on search

Stefan,

I cut the log in two parts w/o modifying the content and the search runs. It seems that the size of this entrie 426 is closed to a limit (as during testing, i met a message after clicking save to recompile elog to increase a size of something), so it could be the problem.

I reduced the entrie size by extracting the last part in a new entrie and it seems to be OK.

The old size was 250099 bytes. New size is 240084.

I hope this will be OK.

Regards

 

Stefan Ritt wrote:

Looks like. Can you dig into the database file and have a look at that entry? Or send me the file containing that entry (together with your elogd.cfg)

Stefan

Laurent Jean-Rigaud wrote:

At #5, there is message_id=426 . You think it's this elog entries # 426 that is the source of crash  ?

 

Laurent Jean-Rigaud wrote:

Hi Stefan,

My previous dump is useless as your elog-debuginfo rpm is stripped.

So i rebuild elog w/ -g , reinstall it and activate core generation. I restst a search of "test" and get this in gdb corefile .

 

[root@localhost ~]# gdb /var/crash/core.elogd.11613.localhost.localdomain.1580820772
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-115.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
[New LWP 11613]
Reading symbols from /usr/local/sbin/elogd...Reading symbols from /usr/lib/debug/usr/local/sbin/elogd.debug...done.
done.
Missing separate debuginfo for 
Try: yum --enablerepo='*debug*' install /usr/lib/debug/.build-id/b5/a5458535a1397fa6baaf5e8c13a6395426a1b2
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/usr/local/sbin/elogd -D -c /usr/local/elog/elogd.cfg'.
Program terminated with signal 6, Aborted.
#0  0x00007f2746409337 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:55
55      return INLINE_SYSCALL (tgkill, 3, pid, selftid, sig);
(gdb) backtrace
#0  0x00007f2746409337 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:55
#1  0x00007f274640aa28 in __GI_abort () at abort.c:90
#2  0x00007f274644be87 in __libc_message (do_abort=do_abort@entry=2, 
    fmt=fmt@entry=0x7f274655e3b8 "*** Error in `%s': %s: 0x%s ***\n")
    at ../sysdeps/unix/sysv/linux/libc_fatal.c:196
#3  0x00007f2746454679 in malloc_printerr (ar_ptr=0x7f274679a760 <main_arena>, ptr=<optimized out>, 
    str=0x7f274655e450 "free(): invalid next size (normal)", action=3) at malloc.c:4967
#4  _int_free (av=0x7f274679a760 <main_arena>, p=<optimized out>, have_lock=0) at malloc.c:3843
#5  0x000000000045e456 in display_line (lbs=0x222c968, message_id=426, number=<optimized out>, 
    mode=0x7fffde328c90 "summary", expand=1, level=0, printable=0, n_line=3, show_attachments=0, 
    show_att_column=1, date=0x7fffde328b50 "Wed, 04 Dec 2019 07:41:34 +0000", 
    in_reply_to=0x7fffde328ba0 "", reply_to=0x7fffde329600 "", n_attr_disp=14, 
    disp_attr=0x7fffde3792a0, disp_attr_link=0x7fffde329460, attrib=0x7fffde32fec0, n_attr=14, 
    text=0x2378d18 "<div style=\"margin: 0px; padding: 0px; text-indent: 0px;\">\r\n<table border=\"1\" cellpadding=\"1\" cellspacing=\"1\" style=\"height:230px; width:1308px\">\r\n\t<caption>\r\n\t<p style=\"text-align:left\"><strong>MAJ 2"..., show_text=1, attachment=0x7fffde32ccc0, 
    encoding=0x7fffde328bf0 "HTML", select=0, n_display=0x7fffde328a80, locked_by=0x7fffde328ec0 "", 
    highlight=0, re_buf=0x7fffde32b380, highlight_mid=0, absolute_link=0, draft=0x7fffde3290c0 "")
    at src/elogd.c:18520
#6  0x0000000000482140 in show_elog_list (lbs=lbs@entry=0x222c968, past_n=past_n@entry=0, 
    last_n=last_n@entry=0, page_n=<optimized out>, page_n@entry=0, default_page=<optimized out>, 
    default_page@entry=1, info=info@entry=0x0) at src/elogd.c:21859
#7  0x00000000004a74a0 in interprete (lbook=lbook@entry=0x7fffde3c79e0 "MCO", path=<optimized out>, 
    path@entry=0x7fffde3c7520 "") at src/elogd.c:28454
#8  0x00000000004a7b13 in decode_get (logbook=logbook@entry=0x7fffde3c79e0 "MCO", 
    string=<optimized out>) at src/elogd.c:28494
#9  0x00000000004aa03a in process_http_request (request=<optimized out>, 
    request@entry=0x223e288 "GET /MCO/?mode=summary&reverse=0&reverse=1&npp=30&subtext=test"
    i_conn=i_conn@entry=0) at src/elogd.c:29272
#10 0x00000000004ad385 in server_loop () at src/elogd.c:30286
#11 0x0000000000402e97 in main (argc=<optimized out>, argv=<optimized out>) at src/elogd.c:31314

 

 

Is it better to find problem ?

 

 

Laurent Jean-Rigaud wrote:

Hi Stefan.

I installed debuginfo and ran elogd with gdb attached.

(gdb) backtrace 
#0  0x00007fde38104337 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:55
#1  0x00007fde38105a28 in __GI_abort () at abort.c:90
#2  0x00007fde38146e87 in __libc_message (do_abort=do_abort@entry=2, fmt=fmt@entry=0x7fde382593b8 "*** Error in `%s': %s: 0x%s ***\n")
    at ../sysdeps/unix/sysv/linux/libc_fatal.c:196
#3  0x00007fde3814f679 in malloc_printerr (ar_ptr=0x7fde38495760 <main_arena>, ptr=<optimized out>, str=0x7fde38259450 "free(): invalid next size (normal)", action=3)
    at malloc.c:4967
#4  _int_free (av=0x7fde38495760 <main_arena>, p=<optimized out>, have_lock=0) at malloc.c:3843
#5  0x000000000045e756 in display_line ()
#6  0x00000000004824b0 in show_elog_list ()
#7  0x00000000004a69b1 in interprete ()
#8  0x00000000004a7023 in decode_get ()
#9  0x00000000004a954a in process_http_request ()
#10 0x00000000004ac9d3 in server_loop ()
#11 0x00000000004035a6 in main ()

Does it help you ?

 

 

Stefan Ritt wrote:

The only way for me is to reproduce it. Could be corrupted data file, or config file. Try with a new logbook with the same configuration, then add logbook files one by one until it happens.

Stefan

Laurent Jean-Rigaud wrote:

Hi Stefan,

The problem seems to be specific with our logbooks. Maybe one of the file is corrupted or bad string encoding ?! But how to find the source of the problem ?

Any way to improve debug log ? (using debug level = 9 + logfile)

Also, do you have a procedure to debug ELOG with debuginfo package installed to have more informations in trace ?

.

Laurent

 

Stefan Ritt wrote:

Do you see the same problem on this server here?

If not, then it must be related to your specific configuration. You have to teach me how to reporduce the error in order to fix it. Best would be a minimal elogd.cfg which causes the error.

Stefan

Laurent Jean-Rigaud wrote:

OS: CentOS 7 x86_64 up2date with RPM 3.14 x86_64

  • Connexion to ELOG
  • open one logbook and click search,
  • input "test" and click "Search" : BOOM
  • Firefox can not connect anymore on ELOG.

The crash is met with several words now ("test", "post", "4.5", are the one i know). We use a mirror server and the problem appears also on it .

NB: the hangs appears on EL6 x86_64 server with customized RPM built by myself. I retry with 3.14 SRPMS avalaible from ELOG site with same results. Idem with last GIT version. So i tested on EL7 with official RPM x86_64 (not suitable for EL6 as it needs GLIBC_2.14) before to open this ticket.

 

Terminal traces on server side follows.

 

[root@localhost /]# /usr/local/sbin/elogd -c /usr/local/elog/elogd.cfg 2>&1
elogd 3.1.4 built Sep 26 2018, 13:14:57 revision 966e3dd
File "/var/run/elogd.pid" exists, using "/var/run/elogd.pid.8080" instead.
Falling back to default group "elog"
Falling back to default user "elog"
CKeditor detected
Falling back to default group "elog"
Falling back to default user "elog"
Falling back to default group "elog"
Falling back to default user "elog"
Falling back to default group "elog"
Falling back to default user "elog"
Falling back to default group "elog"
Falling back to default user "elog"
ImageMagick NOT detected. Image scaling will not work.
Indexing logbooks ... done
Server listening on port 8080 ...
*** Error in `/usr/local/sbin/elogd': free(): invalid next size (normal): 0x0000000001c59310 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x81679)[0x7f45a898f679]
/usr/local/sbin/elogd[0x45e756]
/usr/local/sbin/elogd[0x4824b0]
/usr/local/sbin/elogd[0x4a69b1]
/usr/local/sbin/elogd[0x4a7023]
/usr/local/sbin/elogd[0x4a954a]
/usr/local/sbin/elogd[0x4ac9d3]
/usr/local/sbin/elogd[0x4035a6]
/lib64/libc.so.6(__libc_start_main+0xf5)[0x7f45a8930505]
/usr/local/sbin/elogd[0x4044d3]
======= Memory map: ========
00400000-004e3000 r-xp 00000000 fd:00 52822202                           /usr/local/sbin/elogd
006e2000-006e3000 r--p 000e2000 fd:00 52822202                           /usr/local/sbin/elogd
006e3000-007c4000 rw-p 000e3000 fd:00 52822202                           /usr/local/sbin/elogd
007c4000-0173a000 rw-p 00000000 00:00 0 
01a66000-01c8f000 rw-p 00000000 00:00 0                                  [heap]
7f459bdea000-7f459bdff000 r-xp 00000000 fd:00 84                         /usr/lib64/libgcc_s-4.8.5-20150702.so.1
7f459bdff000-7f459bffe000 ---p 00015000 fd:00 84                         /usr/lib64/libgcc_s-4.8.5-20150702.so.1
7f459bffe000-7f459bfff000 r--p 00014000 fd:00 84                         /usr/lib64/libgcc_s-4.8.5-20150702.so.1
7f459bfff000-7f459c000000 rw-p 00015000 fd:00 84                         /usr/lib64/libgcc_s-4.8.5-20150702.so.1
7f459c000000-7f459c021000 rw-p 00000000 00:00 0 
7f459c021000-7f45a0000000 ---p 00000000 00:00 0 
7f45a010c000-7f45a0114000 r-xp 00000000 fd:00 1598592                    /usr/lib64/libnss_sss.so.2
7f45a0114000-7f45a0313000 ---p 00008000 fd:00 1598592                    /usr/lib64/libnss_sss.so.2
7f45a0313000-7f45a0314000 r--p 00007000 fd:00 1598592                    /usr/lib64/libnss_sss.so.2
7f45a0314000-7f45a0315000 rw-p 00008000 fd:00 1598592                    /usr/lib64/libnss_sss.so.2
7f45a0315000-7f45a0321000 r-xp 00000000 fd:00 22487                      /usr/lib64/libnss_files-2.17.so
7f45a0321000-7f45a0520000 ---p 0000c000 fd:00 22487                      /usr/lib64/libnss_files-2.17.so
7f45a0520000-7f45a0521000 r--p 0000b000 fd:00 22487                      /usr/lib64/libnss_files-2.17.so
7f45a0521000-7f45a0522000 rw-p 0000c000 fd:00 22487                      /usr/lib64/libnss_files-2.17.so
7f45a0522000-7f45a0528000 rw-p 00000000 00:00 0 
7f45a0528000-7f45a6a52000 r--p 00000000 fd:00 50336362                   /usr/lib/locale/locale-archive
7f45a6a52000-7f45a6ab2000 r-xp 00000000 fd:00 22554                      /usr/lib64/libpcre.so.1.2.0
7f45a6ab2000-7f45a6cb2000 ---p 00060000 fd:00 22554                      /usr/lib64/libpcre.so.1.2.0
7f45a6cb2000-7f45a6cb3000 r--p 00060000 fd:00 22554                      /usr/lib64/libpcre.so.1.2.0
7f45a6cb3000-7f45a6cb4000 rw-p 00061000 fd:00 22554                      /usr/lib64/libpcre.so.1.2.0
7f45a6cb4000-7f45a6cd8000 r-xp 00000000 fd:00 40935                      /usr/lib64/libselinux.so.1
7f45a6cd8000-7f45a6ed7000 ---p 00024000 fd:00 40935                      /usr/lib64/libselinux.so.1
7f45a6ed7000-7f45a6ed8000 r--p 00023000 fd:00 40935                      /usr/lib64/libselinux.so.1
7f45a6ed8000-7f45a6ed9000 rw-p 00024000 fd:00 40935                      /usr/lib64/libselinux.so.1
7f45a6ed9000-7f45a6edb000 rw-p 00000000 00:00 0 
7f45a6edb000-7f45a6ef2000 r-xp 00000000 fd:00 22495                      /usr/lib64/libpthread-2.17.so
7f45a6ef2000-7f45a70f1000 ---p 00017000 fd:00 22495                      /usr/lib64/libpthread-2.17.so
7f45a70f1000-7f45a70f2000 r--p 00016000 fd:00 22495                      /usr/lib64/libpthread-2.17.so
7f45a70f2000-7f45a70f3000 rw-p 00017000 fd:00 22495                      /usr/lib64/libpthread-2.17.so
7f45a70f3000-7f45a70f7000 rw-p 00000000 00:00 0 
7f45a70f7000-7f45a710d000 r-xp 00000000 fd:00 22497                      /usr/lib64/libresolv-2.17.so
7f45a710d000-7f45a730c000 ---p 00016000 fd:00 22497                      /usr/lib64/libresolv-2.17.so
7f45a730c000-7f45a730d000 r--p 00015000 fd:00 22497                      /usr/lib64/libresolv-2.17.so
7f45a730d000-7f45a730e000 rw-p 00016000 fd:00 22497                      /usr/lib64/libresolv-2.17.so
7f45a730e000-7f45a7310000 rw-p 00000000 00:00 0 
7f45a7310000-7f45a7313000 r-xp 00000000 fd:00 62649                      /usr/lib64/libkeyutils.so.1.5
7f45a7313000-7f45a7512000 ---p 00003000 fd:00 62649                      /usr/lib64/libkeyutils.so.1.5
7f45a7512000-7f45a7513000 r--p 00002000 fd:00 62649                      /usr/lib64/libkeyutils.so.1.5
7f45a7513000-7f45a7514000 rw-p 00003000 fd:00 62649                      /usr/lib64/libkeyutils.so.1.5
7f45a7514000-7f45a7522000 r-xp 00000000 fd:00 321861                     /usr/lib64/libkrb5support.so.0.1
7f45a7522000-7f45a7722000 ---p 0000e000 fd:00 321861                     /usr/lib64/libkrb5support.so.0.1
7f45a7722000-7f45a7723000 r--p 0000e000 fd:00 321861                     /usr/lib64/libkrb5support.so.0.1
7f45a7723000-7f45a7724000 rw-p 0000f000 fd:00 321861                     /usr/lib64/libkrb5support.so.0.1
7f45a7724000-7f45a7739000 r-xp 00000000 fd:00 40937                      /usr/lib64/libz.so.1.2.7
7f45a7739000-7f45a7938000 ---p 00015000 fd:00 40937                      /usr/lib64/libz.so.1.2.7
7f45a7938000-7f45a7939000 r--p 00014000 fd:00 40937                      /usr/lib64/libz.so.1.2.7
7f45a7939000-7f45a793a000 rw-p 00015000 fd:00 40937                      /usr/lib64/libz.so.1.2.7
7f45a793a000-7f45a793c000 r-xp 00000000 fd:00 22475                      /usr/lib64/libdl-2.17.so
7f45a793c000-7f45a7b3c000 ---p 00002000 fd:00 22475                      /usr/lib64/libdl-2.17.so
7f45a7b3c000-7f45a7b3d000 r--p 00002000 fd:00 22475                      /usr/lib64/libdl-2.17.so
7f45a7b3d000-7f45a7b3e000 rw-p 00003000 fd:00 22475                      /usr/lib64/libdl-2.17.so
7f45a7b3e000-7f45a7d74000 r-xp 00000000 fd:00 303887                     /usr/lib64/libcrypto.so.1.0.2k
7f45a7d74000-7f45a7f74000 ---p 00236000 fd:00 303887                     /usr/lib64/libcrypto.so.1.0.2k
7f45a7f74000-7f45a7f90000 r--p 00236000 fd:00 303887                     /usr/lib64/libcrypto.so.1.0.2k
7f45a7f90000-7f45a7f9d000 rw-p 00252000 fd:00 303887                     /usr/lib64/libcrypto.so.1.0.2k
7f45a7f9d000-7f45a7fa1000 rw-p 00000000 00:00 0 
7f45a7fa1000-7f45a7fd2000 r-xp 00000000 fd:00 321856                     /usr/lib64/libk5crypto.so.3.1

Abandon [sorry, French locale]

 

Logbook contains 445 entries (shown in ELOG window), 384 files and 4 folders (2017 to 2020).

 

Thanks for help as i start to be annoying to unuse search function.

 

 

 

 

 

 

 

 

 

  69113   Tue Feb 11 12:12:49 2020 Reply Stefan Rittstefan.ritt@psi.chBug reportLinux3.14 RPMRe: Elogd crashes on search

Thanks for the detailed investiations and report. Finally I could reproduce the problem by having messages with a text body size close to 250000 bytes (some internal limit). Never thought that someone really has the patience to write 250'000 chars in a single message, but I guess you did some copy/paste from a large file. Thought in such cases people use attachments. Nevertheless, I fixed an internal memory allocation problem, now it shoudl be fine to have such large messages. Change is committed.

Stefan

Laurent Jean-Rigaud wrote:

Stefan,

I cut the log in two parts w/o modifying the content and the search runs. It seems that the size of this entrie 426 is closed to a limit (as during testing, i met a message after clicking save to recompile elog to increase a size of something), so it could be the problem.

I reduced the entrie size by extracting the last part in a new entrie and it seems to be OK.

The old size was 250099 bytes. New size is 240084.

I hope this will be OK.

Regards

  Draft   Wed Feb 19 17:43:34 2020 Question Gino Guenzburgergino.guenzburger@empa.chBug reportAll3.1.4Re: Find cannot find values with brackets

Hi Stefan

we are running elog

Stefan Ritt wrote:

I‘m happy to merge the PR after a quick test next week.

Stefan

Sebastian Schenk wrote:

For demonstration, I created https://elog.psi.ch/elogs/Linux+Demo/8

The Find search for category aaa(bb) does not give results.
A quick filter corrects the value to aaa\(bb) and delivers results.

I made a simple fix and submitted it as PR to the bitbucket repository.

 

 

  69117   Fri Feb 21 14:42:25 2020 Reply Laurent Jean-Rigaudlollspam@free.frBug reportLinux3.14 RPMRe: Elogd crashes on search

Thanks to you, Stefan !

You software is very usefull for us and it's nice to have support.

Have a nice day !

 

Stefan Ritt wrote:

Thanks for the detailed investiations and report. Finally I could reproduce the problem by having messages with a text body size close to 250000 bytes (some internal limit). Never thought that someone really has the patience to write 250'000 chars in a single message, but I guess you did some copy/paste from a large file. Thought in such cases people use attachments. Nevertheless, I fixed an internal memory allocation problem, now it shoudl be fine to have such large messages. Change is committed.

Stefan

Laurent Jean-Rigaud wrote:

Stefan,

I cut the log in two parts w/o modifying the content and the search runs. It seems that the size of this entrie 426 is closed to a limit (as during testing, i met a message after clicking save to recompile elog to increase a size of something), so it could be the problem.

I reduced the entrie size by extracting the last part in a new entrie and it seems to be OK.

The old size was 250099 bytes. New size is 240084.

I hope this will be OK.

Regards

 

  69135   Tue Apr 14 13:26:50 2020 Warning Stefano Lacaprarastefano.lacaprara@pd.infn.itBug reportLinuxELOG V3.1.3-very long subject cause buffer overflow
Hi,
  I'm using elog 313 on an ubuntu server. 

A user inserted a very long subject by mistake (the text was supposed to go into the body, but he copy pasted in the wrong place).
This results in elogd crash with buffer overflow error when I try to look at the list of that elgbook.

I can reproduce it on my test server by copy pasting lorem ipsum in the Subject field of the demo elogbook. I'm not doing that here for obvious reason.

If I cut the length of the Subject in the *.log file by hand, all is back to normal.

Is there a way to protect from this problem in the front-end?

Thanks,
  Stefano

Full backtrace follow.

*** buffer overflow detected ***: /usr/sbin/elogd terminated
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f4d22c717e5]
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x5c)[0x7f4d22d1315c]
/lib/x86_64-linux-gnu/libc.so.6(+0x117160)[0x7f4d22d11160]
/lib/x86_64-linux-gnu/libc.so.6(+0x1166c9)[0x7f4d22d106c9]
/lib/x86_64-linux-gnu/libc.so.6(_IO_default_xsputn+0x80)[0x7f4d22c756b0]
/lib/x86_64-linux-gnu/libc.so.6(_IO_vfprintf+0x139b)[0x7f4d22c4850b]
/lib/x86_64-linux-gnu/libc.so.6(__vsprintf_chk+0x84)[0x7f4d22d10754]
/lib/x86_64-linux-gnu/libc.so.6(__sprintf_chk+0x7d)[0x7f4d22d106ad]
/usr/sbin/elogd[0x4547ca]
/usr/sbin/elogd[0x4793f0]
/usr/sbin/elogd[0x4955e0]
/usr/sbin/elogd[0x495876]
/usr/sbin/elogd[0x497bae]
/usr/sbin/elogd[0x49a6ca]
/usr/sbin/elogd[0x403ea7]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f4d22c1a830]
/usr/sbin/elogd[0x404ae9]
======= Memory map: ========
00400000-004d4000 r-xp 00000000 ca:01 135411                             /usr/sbin/elogd
006d3000-006d4000 r--p 000d3000 ca:01 135411                             /usr/sbin/elogd
006d4000-007b5000 rw-p 000d4000 ca:01 135411                             /usr/sbin/elogd
007b5000-0172b000 rw-p 00000000 00:00 0 
01a98000-01cd1000 rw-p 00000000 00:00 0                                  [heap]
7f4d1daac000-7f4d1dac2000 r-xp 00000000 ca:01 651589                     /lib/x86_64-linux-gnu/libgcc_s.so.1
7f4d1dac2000-7f4d1dcc1000 ---p 00016000 ca:01 651589                     /lib/x86_64-linux-gnu/libgcc_s.so.1
7f4d1dcc1000-7f4d1dcc2000 rw-p 00015000 ca:01 651589                     /lib/x86_64-linux-gnu/libgcc_s.so.1
7f4d1dcc2000-7f4d1e6af000 r--s 00000000 ca:03 1305745                    /var/lib/sss/mc/initgroups
7f4d1e6af000-7f4d1e6b7000 r-xp 00000000 ca:01 651532                     /lib/x86_64-linux-gnu/libnss_sss.so.2
7f4d1e6b7000-7f4d1e8b6000 ---p 00008000 ca:01 651532                     /lib/x86_64-linux-gnu/libnss_sss.so.2
7f4d1e8b6000-7f4d1e8b7000 r--p 00007000 ca:01 651532                     /lib/x86_64-linux-gnu/libnss_sss.so.2
7f4d1e8b7000-7f4d1e8b8000 rw-p 00008000 ca:01 651532                     /lib/x86_64-linux-gnu/libnss_sss.so.2
7f4d1e8b8000-7f4d1e8c3000 r-xp 00000000 ca:01 652680                     /lib/x86_64-linux-gnu/libnss_files-2.23.so
7f4d1e8c3000-7f4d1eac2000 ---p 0000b000 ca:01 652680                     /lib/x86_64-linux-gnu/libnss_files-2.23.so
7f4d1eac2000-7f4d1eac3000 r--p 0000a000 ca:01 652680                     /lib/x86_64-linux-gnu/libnss_files-2.23.so
7f4d1eac3000-7f4d1eac4000 rw-p 0000b000 ca:01 652680                     /lib/x86_64-linux-gnu/libnss_files-2.23.so
7f4d1eac4000-7f4d1eaca000 rw-p 00000000 00:00 0 
7f4d1eaca000-7f4d1ef26000 r--p 00000000 ca:01 134295                     /usr/lib/locale/locale-archive
7f4d1ef26000-7f4d1ef2d000 r-xp 00000000 ca:01 136072                     /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
7f4d1ef2d000-7f4d1f12c000 ---p 00007000 ca:01 136072                     /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
7f4d1f12c000-7f4d1f12d000 r--p 00006000 ca:01 136072                     /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
7f4d1f12d000-7f4d1f12e000 rw-p 00007000 ca:01 136072                     /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
7f4d1f12e000-7f4d1f137000 r-xp 00000000 ca:01 652677                     /lib/x86_64-linux-gnu/libcrypt-2.23.so
7f4d1f137000-7f4d1f336000 ---p 00009000 ca:01 652677                     /lib/x86_64-linux-gnu/libcrypt-2.23.so
7f4d1f336000-7f4d1f337000 r--p 00008000 ca:01 652677                     /lib/x86_64-linux-gnu/libcrypt-2.23.so
7f4d1f337000-7f4d1f338000 rw-p 00009000 ca:01 652677                     /lib/x86_64-linux-gnu/libcrypt-2.23.so
7f4d1f338000-7f4d1f366000 rw-p 00000000 00:00 0 
7f4d1f366000-7f4d1f436000 r-xp 00000000 ca:01 138952                     /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7f4d1f436000-7f4d1f635000 ---p 000d0000 ca:01 138952                     /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7f4d1f635000-7f4d1f638000 r--p 000cf000 ca:01 138952                     /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7f4d1f638000-7f4d1f63a000 rw-p 000d2000 ca:01 138952                     /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
7f4d1f63a000-7f4d1f63b000 rw-p 00000000 00:00 0 
7f4d1f63b000-7f4d1f682000 r-xp 00000000 ca:01 137392                     /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7f4d1f682000-7f4d1f881000 ---p 00047000 ca:01 137392                     /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7f4d1f881000-7f4d1f883000 r--p 00046000 ca:01 137392                     /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7f4d1f883000-7f4d1f885000 rw-p 00048000 ca:01 137392                     /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
7f4d1f885000-7f4d1f886000 rw-p 00000000 00:00 0 
7f4d1f886000-7f4d1f894000 r-xp 00000000 ca:01 137386                     /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7f4d1f894000-7f4d1fa93000 ---p 0000e000 ca:01 137386                     /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7f4d1fa93000-7f4d1fa94000 r--p 0000d000 ca:01 137386                     /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7f4d1fa94000-7f4d1fa95000 rw-p 0000e000 ca:01 137386                     /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
7f4d1fa95000-7f4d1fabc000 r-xp 00000000 ca:01 137389                     /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7f4d1fabc000-7f4d1fcbc000 ---p 00027000 ca:01 137389                     /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7f4d1fcbc000-7f4d1fcbd000 r--p 00027000 ca:01 137389                     /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7f4d1fcbd000-7f4d1fcbe000 rw-p 00028000 ca:01 137389                     /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
7f4d1fcbe000-7f4d1fd3d000 r-xp 00000000 ca:01 136076                     /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
7f4d1fd3d000-7f4d1ff3c000 ---p 0007f000 ca:01 136076                     /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
7f4d1ff3c000-7f4d1ff3d000 r--p 0007e000 ca:01 136076                     /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
7f4d1ff3d000-7f4d1ff3e000 rw-p 0007f000 ca:01 136076                     /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
7f4d1ff3e000-7f4d1ff70000 r-xp 00000000 ca:01 133867                     /usr/lib/x86_64-linux-gnu/libhogweed.so.4.2
7f4d1ff70000-7f4d2016f000 ---p 00032000 ca:01 133867                     /usr/lib/x86_64-linux-gnu/libhogweed.so.4.2
7f4d2016f000-7f4d20170000 r--p 00031000 ca:01 133867                     /usr/lib/x86_64-linux-gnu/libhogweed.so.4.2
7f4d20170000-7f4d20171000 rw-p 00032000 ca:01 133867                     /usr/lib/x86_64-linux-gnu/libhogweed.so.4.2
7f4d20171000-7f4d201a5000 r-xp 00000000 ca:01 133869                     /usr/lib/x86_64-linux-gnu/libnettle.so.6.2
7f4d201a5000-7f4d203a4000 ---p 00034000 ca:01 133869                     /usr/lib/x86_64-linux-gnu/libnettle.so.6.2
7f4d203a4000-7f4d203a6000 r--p 00033000 ca:01 133869                     /usr/lib/x86_64-linux-gnu/libnettle.so.6.2
7f4d203a6000-7f4d203a7000 rw-p 00035000 ca:01 133869                     /usr/lib/x86_64-linux-gnu/libnettle.so.6.2
7f4d203a7000-7f4d203b8000 r-xp 00000000 ca:01 133877                     /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1
7f4d203b8000-7f4d205b8000 ---p 00011000 ca:01 133877                     /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1
7f4d205b8000-7f4d205b9000 r--p 00011000 ca:01 133877                     /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1
7f4d205b9000-7f4d205ba000 rw-p 00012000 ca:01 133877                     /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1
7f4d205ba000-7f4d205eb000 r-xp 00000000 ca:01 133871                     /usr/lib/x86_64-linux-gnu/libidn.so.11.6.15
7f4d205eb000-7f4d207eb000 ---p 00031000 ca:01 133871                     /usr/lib/x86_64-linux-gnu/libidn.so.11.6.15
7f4d207eb000-7f4d207ec000 r--p 00031000 ca:01 133871                     /usr/lib/x86_64-linux-gnu/libidn.so.11.6.15
7f4d207ec000-7f4d207ed000 rw-p 00032000 ca:01 133871                     /usr/lib/x86_64-linux-gnu/libidn.so.11.6.15
7f4d207ed000-7f4d20846000 r-xp 00000000 ca:01 133875                     /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0
7f4d20846000-7f4d20a45000 ---p 00059000 ca:01 133875                     /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0
7f4d20a45000-7f4d20a4f000 r--p 00058000 ca:01 133875                     /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0
7f4d20a4f000-7f4d20a51000 rw-p 00062000 ca:01 133875                     /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0
7f4d20a51000-7f4d20a6a000 r-xp 00000000 ca:01 651781                     /lib/x86_64-linux-gnu/libz.so.1.2.8
7f4d20a6a000-7f4d20c69000 ---p 00019000 ca:01 651781                     /lib/x86_64-linux-gnu/libz.so.1.2.8
7f4d20c69000-7f4d20c6a000 r--p 00018000 ca:01 651781                     /lib/x86_64-linux-gnu/libz.so.1.2.8
7f4d20c6a000-7f4d20c6b000 rw-p 00019000 ca:01 651781                     /lib/x86_64-linux-gnu/libz.so.1.2.8
7f4d20c6b000-7f4d20c80000 r-xp 00000000 ca:01 137377                     /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7f4d20c80000-7f4d20e7f000 ---p 00015000 ca:01 137377                     /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7f4d20e7f000-7f4d20e80000 r--p 00014000 ca:01 137377                     /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7f4d20e80000-7f4d20e81000 rw-p 00015000 ca:01 137377                     /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
7f4d20e81000-7f4d20eb1000 r-xp 00000000 ca:01 137383                     /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7f4d20eb1000-7f4d210b1000 ---p 00030000 ca:01 137383                     /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7f4d210b1000-7f4d210b2000 r--p 00030000 ca:01 137383                     /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7f4d210b2000-7f4d210b3000 rw-p 00031000 ca:01 137383                     /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
7f4d210b3000-7f4d210b4000 rw-p 00000000 00:00 0 
7f4d210b4000-7f4d210b7000 r-xp 00000000 ca:01 651540                     /lib/x86_64-linux-gnu/libcom_err.so.2.1
7f4d210b7000-7f4d212b6000 ---p 00003000 ca:01 651540                     /lib/x86_64-linux-gnu/libcom_err.so.2.1
7f4d212b6000-7f4d212b7000 r--p 00002000 ca:01 651540                     /lib/x86_64-linux-gnu/libcom_err.so.2.1
7f4d212b7000-7f4d212b8000 rw-p 00003000 ca:01 651540                     /lib/x86_64-linux-gnu/libcom_err.so.2.1
7f4d212b8000-7f4d21357000 r-xp 00000000 ca:01 137380                     /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7f4d21357000-7f4d21556000 ---p 0009f000 ca:01 137380                     /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7f4d21556000-7f4d21557000 r--p 0009e000 ca:01 137380                     /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7f4d21557000-7f4d2155a000 rw-p 0009f000 ca:01 137380                     /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
7f4d2155a000-7f4d215de000 r-xp 00000000 ca:01 137395                     /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7f4d215de000-7f4d217dd000 ---p 00084000 ca:01 137395                     /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7f4d217dd000-7f4d217e0000 r--p 00083000 ca:01 137395                     /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7f4d217e0000-7f4d217e3000 rw-p 00086000 ca:01 137395                     /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
7f4d217e3000-7f4d217e4000 rw-p 00000000 00:00 0 
7f4d217e4000-7f4d217ec000 r-xp 00000000 ca:01 137400                     /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7f4d217ec000-7f4d219eb000 ---p 00008000 ca:01 137400                     /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7f4d219eb000-7f4d219ec000 r--p 00007000 ca:01 137400                     /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7f4d219ec000-7f4d219ed000 rw-p 00008000 ca:01 137400                     /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
7f4d219ed000-7f4d219f0000 r-xp 00000000 ca:01 652668                     /lib/x86_64-linux-gnu/libdl-2.23.so
7f4d219f0000-7f4d21bef000 ---p 00003000 ca:01 652668                     /lib/x86_64-linux-gnu/libdl-2.23.so
7f4d21bef000-7f4d21bf0000 r--p 00002000 ca:01 652668                     /lib/x86_64-linux-gnu/libdl-2.23.so
7f4d21bf0000-7f4d21bf1000 rw-p 00003000 ca:01 652668                     /lib/x86_64-linux-gnu/libdl-2.23.so
7f4d21bf1000-7f4d21c09000 r-xp 00000000 ca:01 652670                     /lib/x86_64-linux-gnu/libpthread-2.23.so
7f4d21c09000-7f4d21e08000 ---p 00018000 ca:01 652670                     /lib/x86_64-linux-gnu/libpthread-2.23.so
7f4d21e08000-7f4d21e09000 r--p 00017000 ca:01 652670                     /lib/x86_64-linux-gnu/libpthread-2.23.so
7f4d21e09000-7f4d21e0a000 rw-p 00018000 ca:01 652670                     /lib/x86_64-linux-gnu/libpthread-2.23.so
7f4d21e0a000-7f4d21e0e000 rw-p 00000000 00:00 0 
7f4d21e0e000-7f4d21f31000 r-xp 00000000 ca:01 130646                     /usr/lib/x86_64-linux-gnu/libgnutls.so.30.6.2
7f4d21f31000-7f4d22130000 ---p 00123000 ca:01 130646                     /usr/lib/x86_64-linux-gnu/libgnutls.so.30.6.2
7f4d22130000-7f4d2213b000 r--p 00122000 ca:01 130646                     /usr/lib/x86_64-linux-gnu/libgnutls.so.30.6.2
7f4d2213b000-7f4d2213d000 rw-p 0012d000 ca:01 130646                     /usr/lib/x86_64-linux-gnu/libgnutls.so.30.6.2
7f4d2213d000-7f4d2213e000 rw-p 00000000 00:00 0 
7f4d2213e000-7f4d2217b000 r-xp 00000000 ca:01 137406                     /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
7f4d2217b000-7f4d2237b000 ---p 0003d000 ca:01 137406                     /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
7f4d2237b000-7f4d2237c000 r--p 0003d000 ca:01 137406                     /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
7f4d2237c000-7f4d2237e000 rw-p 0003e000 ca:01 137406                     /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
7f4d2237e000-7f4d2237f000 rw-p 00000000 00:00 0 
7f4d2237f000-7f4d22398000 r-xp 00000000 ca:01 131029                     /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
7f4d22398000-7f4d22598000 ---p 00019000 ca:01 131029                     /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
7f4d22598000-7f4d22599000 r--p 00019000 ca:01 131029                     /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
7f4d22599000-7f4d2259a000 rw-p 0001a000 ca:01 131029                     /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
7f4d2259a000-7f4d225b1000 r-xp 00000000 ca:01 652676                     /lib/x86_64-linux-gnu/libresolv-2.23.so
7f4d225b1000-7f4d227b1000 ---p 00017000 ca:01 652676                     /lib/x86_64-linux-gnu/libresolv-2.23.so
7f4d227b1000-7f4d227b2000 r--p 00017000 ca:01 652676                     /lib/x86_64-linux-gnu/libresolv-2.23.so
7f4d227b2000-7f4d227b3000 rw-p 00018000 ca:01 652676                     /lib/x86_64-linux-gnu/libresolv-2.23.so
7f4d227b3000-7f4d227b5000 rw-p 00000000 00:00 0 
7f4d227b5000-7f4d229d0000 r-xp 00000000 ca:01 651557                     /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7f4d229d0000-7f4d22bcf000 ---p 0021b000 ca:01 651557                     /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7f4d22bcf000-7f4d22beb000 r--p 0021a000 ca:01 651557                     /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7f4d22beb000-7f4d22bf7000 rw-p 00236000 ca:01 651557                     /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7f4d22bf7000-7f4d22bfa000 rw-p 00000000 00:00 0 
7f4d22bfa000-7f4d22dba000 r-xp 00000000 ca:01 652683                     /lib/x86_64-linux-gnu/libc-2.23.so
7f4d22dba000-7f4d22fba000 ---p 001c0000 ca:01 652683                     /lib/x86_64-linux-gnu/libc-2.23.so
7f4d22fba000-7f4d22fbe000 r--p 001c0000 ca:01 652683                     /lib/x86_64-linux-gnu/libc-2.23.so
7f4d22fbe000-7f4d22fc0000 rw-p 001c4000 ca:01 652683                     /lib/x86_64-linux-gnu/libc-2.23.so
7f4d22fc0000-7f4d22fc4000 rw-p 00000000 00:00 0 
7f4d22fc4000-7f4d22fd1000 r-xp 00000000 ca:01 130557                     /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.10.5
7f4d22fd1000-7f4d231d1000 ---p 0000d000 ca:01 130557                     /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.10.5
7f4d231d1000-7f4d231d2000 r--p 0000d000 ca:01 130557                     /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.10.5
7f4d231d2000-7f4d231d3000 rw-p 0000e000 ca:01 130557                     /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.10.5
7f4d231d3000-7f4d23220000 r-xp 00000000 ca:01 130560                     /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.10.5
7f4d23220000-7f4d2341f000 ---p 0004d000 ca:01 130560                     /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.10.5
7f4d2341f000-7f4d23421000 r--p 0004c000 ca:01 130560                     /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.10.5
7f4d23421000-7f4d23422000 rw-p 0004e000 ca:01 130560                     /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.10.5
7f4d23422000-7f4d23424000 rw-p 00000000 00:00 0 
7f4d23424000-7f4d23482000 r-xp 00000000 ca:01 651645                     /lib/x86_64-linux-gnu/libssl.so.1.0.0
7f4d23482000-7f4d23682000 ---p 0005e000 ca:01 651645                     /lib/x86_64-linux-gnu/libssl.so.1.0.0
7f4d23682000-7f4d23686000 r--p 0005e000 ca:01 651645                     /lib/x86_64-linux-gnu/libssl.so.1.0.0
7f4d23686000-7f4d2368d000 rw-p 00062000 ca:01 651645                     /lib/x86_64-linux-gnu/libssl.so.1.0.0
7f4d2368d000-7f4d236b3000 r-xp 00000000 ca:01 652669                     /lib/x86_64-linux-gnu/ld-2.23.so
7f4d23888000-7f4d23898000 rw-p 00000000 00:00 0 
7f4d238b1000-7f4d238b2000 rw-p 00000000 00:00 0 
7f4d238b2000-7f4d238b3000 r--p 00025000 ca:01 652669                     /lib/x86_64-linux-gnu/ld-2.23.so
7f4d238b3000-7f4d238b4000 rw-p 00026000 ca:01 652669                     /lib/x86_64-linux-gnu/ld-2.23.so
7f4d238b4000-7f4d238b5000 rw-p 00000000 00:00 0 
7ffdfb535000-7ffdfb632000 rw-p 00000000 00:00 0                          [stack]
7ffdfb64d000-7ffdfb64f000 r--p 00000000 00:00 0                          [vvar]
7ffdfb64f000-7ffdfb651000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Aborted
  69136   Thu Apr 16 10:07:18 2020 Reply Stefano Lacaprarastefano.lacaprara@pd.infn.itBug reportLinuxELOG V3.1.3-Re: very long subject cause buffer overflow
Additional information: I tried to recompile with -g (debug) and run it in gdb but the crash is not reproduced that way (w/ or w/o gdb). I guess that the memory handling in debug mode is different so the corruption is not 
there anymore.

Best,
  Stefano

> Hi,
>   I'm using elog 313 on an ubuntu server. 
> 
> A user inserted a very long subject by mistake (the text was supposed to go into the body, but he copy pasted in the wrong place).
> This results in elogd crash with buffer overflow error when I try to look at the list of that elgbook.
> 
> I can reproduce it on my test server by copy pasting lorem ipsum in the Subject field of the demo elogbook. I'm not doing that here for obvious reason.
> 
> If I cut the length of the Subject in the *.log file by hand, all is back to normal.
> 
> Is there a way to protect from this problem in the front-end?
> 
> Thanks,
>   Stefano
> 
> Full backtrace follow.
> 
> *** buffer overflow detected ***: /usr/sbin/elogd terminated
> ======= Backtrace: =========
> /lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f4d22c717e5]
> /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x5c)[0x7f4d22d1315c]
> /lib/x86_64-linux-gnu/libc.so.6(+0x117160)[0x7f4d22d11160]
> /lib/x86_64-linux-gnu/libc.so.6(+0x1166c9)[0x7f4d22d106c9]
> /lib/x86_64-linux-gnu/libc.so.6(_IO_default_xsputn+0x80)[0x7f4d22c756b0]
> /lib/x86_64-linux-gnu/libc.so.6(_IO_vfprintf+0x139b)[0x7f4d22c4850b]
> /lib/x86_64-linux-gnu/libc.so.6(__vsprintf_chk+0x84)[0x7f4d22d10754]
> /lib/x86_64-linux-gnu/libc.so.6(__sprintf_chk+0x7d)[0x7f4d22d106ad]
> /usr/sbin/elogd[0x4547ca]
> /usr/sbin/elogd[0x4793f0]
> /usr/sbin/elogd[0x4955e0]
> /usr/sbin/elogd[0x495876]
> /usr/sbin/elogd[0x497bae]
> /usr/sbin/elogd[0x49a6ca]
> /usr/sbin/elogd[0x403ea7]
> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f4d22c1a830]
> /usr/sbin/elogd[0x404ae9]
> ======= Memory map: ========
> 00400000-004d4000 r-xp 00000000 ca:01 135411                             /usr/sbin/elogd
> 006d3000-006d4000 r--p 000d3000 ca:01 135411                             /usr/sbin/elogd
> 006d4000-007b5000 rw-p 000d4000 ca:01 135411                             /usr/sbin/elogd
> 007b5000-0172b000 rw-p 00000000 00:00 0 
> 01a98000-01cd1000 rw-p 00000000 00:00 0                                  [heap]
> 7f4d1daac000-7f4d1dac2000 r-xp 00000000 ca:01 651589                     /lib/x86_64-linux-gnu/libgcc_s.so.1
> 7f4d1dac2000-7f4d1dcc1000 ---p 00016000 ca:01 651589                     /lib/x86_64-linux-gnu/libgcc_s.so.1
> 7f4d1dcc1000-7f4d1dcc2000 rw-p 00015000 ca:01 651589                     /lib/x86_64-linux-gnu/libgcc_s.so.1
> 7f4d1dcc2000-7f4d1e6af000 r--s 00000000 ca:03 1305745                    /var/lib/sss/mc/initgroups
> 7f4d1e6af000-7f4d1e6b7000 r-xp 00000000 ca:01 651532                     /lib/x86_64-linux-gnu/libnss_sss.so.2
> 7f4d1e6b7000-7f4d1e8b6000 ---p 00008000 ca:01 651532                     /lib/x86_64-linux-gnu/libnss_sss.so.2
> 7f4d1e8b6000-7f4d1e8b7000 r--p 00007000 ca:01 651532                     /lib/x86_64-linux-gnu/libnss_sss.so.2
> 7f4d1e8b7000-7f4d1e8b8000 rw-p 00008000 ca:01 651532                     /lib/x86_64-linux-gnu/libnss_sss.so.2
> 7f4d1e8b8000-7f4d1e8c3000 r-xp 00000000 ca:01 652680                     /lib/x86_64-linux-gnu/libnss_files-2.23.so
> 7f4d1e8c3000-7f4d1eac2000 ---p 0000b000 ca:01 652680                     /lib/x86_64-linux-gnu/libnss_files-2.23.so
> 7f4d1eac2000-7f4d1eac3000 r--p 0000a000 ca:01 652680                     /lib/x86_64-linux-gnu/libnss_files-2.23.so
> 7f4d1eac3000-7f4d1eac4000 rw-p 0000b000 ca:01 652680                     /lib/x86_64-linux-gnu/libnss_files-2.23.so
> 7f4d1eac4000-7f4d1eaca000 rw-p 00000000 00:00 0 
> 7f4d1eaca000-7f4d1ef26000 r--p 00000000 ca:01 134295                     /usr/lib/locale/locale-archive
> 7f4d1ef26000-7f4d1ef2d000 r-xp 00000000 ca:01 136072                     /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
> 7f4d1ef2d000-7f4d1f12c000 ---p 00007000 ca:01 136072                     /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
> 7f4d1f12c000-7f4d1f12d000 r--p 00006000 ca:01 136072                     /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
> 7f4d1f12d000-7f4d1f12e000 rw-p 00007000 ca:01 136072                     /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
> 7f4d1f12e000-7f4d1f137000 r-xp 00000000 ca:01 652677                     /lib/x86_64-linux-gnu/libcrypt-2.23.so
> 7f4d1f137000-7f4d1f336000 ---p 00009000 ca:01 652677                     /lib/x86_64-linux-gnu/libcrypt-2.23.so
> 7f4d1f336000-7f4d1f337000 r--p 00008000 ca:01 652677                     /lib/x86_64-linux-gnu/libcrypt-2.23.so
> 7f4d1f337000-7f4d1f338000 rw-p 00009000 ca:01 652677                     /lib/x86_64-linux-gnu/libcrypt-2.23.so
> 7f4d1f338000-7f4d1f366000 rw-p 00000000 00:00 0 
> 7f4d1f366000-7f4d1f436000 r-xp 00000000 ca:01 138952                     /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
> 7f4d1f436000-7f4d1f635000 ---p 000d0000 ca:01 138952                     /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
> 7f4d1f635000-7f4d1f638000 r--p 000cf000 ca:01 138952                     /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
> 7f4d1f638000-7f4d1f63a000 rw-p 000d2000 ca:01 138952                     /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
> 7f4d1f63a000-7f4d1f63b000 rw-p 00000000 00:00 0 
> 7f4d1f63b000-7f4d1f682000 r-xp 00000000 ca:01 137392                     /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
> 7f4d1f682000-7f4d1f881000 ---p 00047000 ca:01 137392                     /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
> 7f4d1f881000-7f4d1f883000 r--p 00046000 ca:01 137392                     /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
> 7f4d1f883000-7f4d1f885000 rw-p 00048000 ca:01 137392                     /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
> 7f4d1f885000-7f4d1f886000 rw-p 00000000 00:00 0 
> 7f4d1f886000-7f4d1f894000 r-xp 00000000 ca:01 137386                     /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
> 7f4d1f894000-7f4d1fa93000 ---p 0000e000 ca:01 137386                     /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
> 7f4d1fa93000-7f4d1fa94000 r--p 0000d000 ca:01 137386                     /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
> 7f4d1fa94000-7f4d1fa95000 rw-p 0000e000 ca:01 137386                     /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
> 7f4d1fa95000-7f4d1fabc000 r-xp 00000000 ca:01 137389                     /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
> 7f4d1fabc000-7f4d1fcbc000 ---p 00027000 ca:01 137389                     /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
> 7f4d1fcbc000-7f4d1fcbd000 r--p 00027000 ca:01 137389                     /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
> 7f4d1fcbd000-7f4d1fcbe000 rw-p 00028000 ca:01 137389                     /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
> 7f4d1fcbe000-7f4d1fd3d000 r-xp 00000000 ca:01 136076                     /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
> 7f4d1fd3d000-7f4d1ff3c000 ---p 0007f000 ca:01 136076                     /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
> 7f4d1ff3c000-7f4d1ff3d000 r--p 0007e000 ca:01 136076                     /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
> 7f4d1ff3d000-7f4d1ff3e000 rw-p 0007f000 ca:01 136076                     /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
> 7f4d1ff3e000-7f4d1ff70000 r-xp 00000000 ca:01 133867                     /usr/lib/x86_64-linux-gnu/libhogweed.so.4.2
> 7f4d1ff70000-7f4d2016f000 ---p 00032000 ca:01 133867                     /usr/lib/x86_64-linux-gnu/libhogweed.so.4.2
> 7f4d2016f000-7f4d20170000 r--p 00031000 ca:01 133867                     /usr/lib/x86_64-linux-gnu/libhogweed.so.4.2
> 7f4d20170000-7f4d20171000 rw-p 00032000 ca:01 133867                     /usr/lib/x86_64-linux-gnu/libhogweed.so.4.2
> 7f4d20171000-7f4d201a5000 r-xp 00000000 ca:01 133869                     /usr/lib/x86_64-linux-gnu/libnettle.so.6.2
> 7f4d201a5000-7f4d203a4000 ---p 00034000 ca:01 133869                     /usr/lib/x86_64-linux-gnu/libnettle.so.6.2
> 7f4d203a4000-7f4d203a6000 r--p 00033000 ca:01 133869                     /usr/lib/x86_64-linux-gnu/libnettle.so.6.2
> 7f4d203a6000-7f4d203a7000 rw-p 00035000 ca:01 133869                     /usr/lib/x86_64-linux-gnu/libnettle.so.6.2
> 7f4d203a7000-7f4d203b8000 r-xp 00000000 ca:01 133877                     /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1
> 7f4d203b8000-7f4d205b8000 ---p 00011000 ca:01 133877                     /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1
> 7f4d205b8000-7f4d205b9000 r--p 00011000 ca:01 133877                     /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1
> 7f4d205b9000-7f4d205ba000 rw-p 00012000 ca:01 133877                     /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1
> 7f4d205ba000-7f4d205eb000 r-xp 00000000 ca:01 133871                     /usr/lib/x86_64-linux-gnu/libidn.so.11.6.15
> 7f4d205eb000-7f4d207eb000 ---p 00031000 ca:01 133871                     /usr/lib/x86_64-linux-gnu/libidn.so.11.6.15
> 7f4d207eb000-7f4d207ec000 r--p 00031000 ca:01 133871                     /usr/lib/x86_64-linux-gnu/libidn.so.11.6.15
> 7f4d207ec000-7f4d207ed000 rw-p 00032000 ca:01 133871                     /usr/lib/x86_64-linux-gnu/libidn.so.11.6.15
> 7f4d207ed000-7f4d20846000 r-xp 00000000 ca:01 133875                     /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0
> 7f4d20846000-7f4d20a45000 ---p 00059000 ca:01 133875                     /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0
> 7f4d20a45000-7f4d20a4f000 r--p 00058000 ca:01 133875                     /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0
> 7f4d20a4f000-7f4d20a51000 rw-p 00062000 ca:01 133875                     /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0
> 7f4d20a51000-7f4d20a6a000 r-xp 00000000 ca:01 651781                     /lib/x86_64-linux-gnu/libz.so.1.2.8
> 7f4d20a6a000-7f4d20c69000 ---p 00019000 ca:01 651781                     /lib/x86_64-linux-gnu/libz.so.1.2.8
> 7f4d20c69000-7f4d20c6a000 r--p 00018000 ca:01 651781                     /lib/x86_64-linux-gnu/libz.so.1.2.8
> 7f4d20c6a000-7f4d20c6b000 rw-p 00019000 ca:01 651781                     /lib/x86_64-linux-gnu/libz.so.1.2.8
> 7f4d20c6b000-7f4d20c80000 r-xp 00000000 ca:01 137377                     /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
> 7f4d20c80000-7f4d20e7f000 ---p 00015000 ca:01 137377                     /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
> 7f4d20e7f000-7f4d20e80000 r--p 00014000 ca:01 137377                     /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
> 7f4d20e80000-7f4d20e81000 rw-p 00015000 ca:01 137377                     /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
> 7f4d20e81000-7f4d20eb1000 r-xp 00000000 ca:01 137383                     /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
> 7f4d20eb1000-7f4d210b1000 ---p 00030000 ca:01 137383                     /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
> 7f4d210b1000-7f4d210b2000 r--p 00030000 ca:01 137383                     /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
> 7f4d210b2000-7f4d210b3000 rw-p 00031000 ca:01 137383                     /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
> 7f4d210b3000-7f4d210b4000 rw-p 00000000 00:00 0 
> 7f4d210b4000-7f4d210b7000 r-xp 00000000 ca:01 651540                     /lib/x86_64-linux-gnu/libcom_err.so.2.1
> 7f4d210b7000-7f4d212b6000 ---p 00003000 ca:01 651540                     /lib/x86_64-linux-gnu/libcom_err.so.2.1
> 7f4d212b6000-7f4d212b7000 r--p 00002000 ca:01 651540                     /lib/x86_64-linux-gnu/libcom_err.so.2.1
> 7f4d212b7000-7f4d212b8000 rw-p 00003000 ca:01 651540                     /lib/x86_64-linux-gnu/libcom_err.so.2.1
> 7f4d212b8000-7f4d21357000 r-xp 00000000 ca:01 137380                     /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
> 7f4d21357000-7f4d21556000 ---p 0009f000 ca:01 137380                     /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
> 7f4d21556000-7f4d21557000 r--p 0009e000 ca:01 137380                     /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
> 7f4d21557000-7f4d2155a000 rw-p 0009f000 ca:01 137380                     /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
> 7f4d2155a000-7f4d215de000 r-xp 00000000 ca:01 137395                     /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
> 7f4d215de000-7f4d217dd000 ---p 00084000 ca:01 137395                     /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
> 7f4d217dd000-7f4d217e0000 r--p 00083000 ca:01 137395                     /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
> 7f4d217e0000-7f4d217e3000 rw-p 00086000 ca:01 137395                     /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
> 7f4d217e3000-7f4d217e4000 rw-p 00000000 00:00 0 
> 7f4d217e4000-7f4d217ec000 r-xp 00000000 ca:01 137400                     /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
> 7f4d217ec000-7f4d219eb000 ---p 00008000 ca:01 137400                     /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
> 7f4d219eb000-7f4d219ec000 r--p 00007000 ca:01 137400                     /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
> 7f4d219ec000-7f4d219ed000 rw-p 00008000 ca:01 137400                     /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
> 7f4d219ed000-7f4d219f0000 r-xp 00000000 ca:01 652668                     /lib/x86_64-linux-gnu/libdl-2.23.so
> 7f4d219f0000-7f4d21bef000 ---p 00003000 ca:01 652668                     /lib/x86_64-linux-gnu/libdl-2.23.so
> 7f4d21bef000-7f4d21bf0000 r--p 00002000 ca:01 652668                     /lib/x86_64-linux-gnu/libdl-2.23.so
> 7f4d21bf0000-7f4d21bf1000 rw-p 00003000 ca:01 652668                     /lib/x86_64-linux-gnu/libdl-2.23.so
> 7f4d21bf1000-7f4d21c09000 r-xp 00000000 ca:01 652670                     /lib/x86_64-linux-gnu/libpthread-2.23.so
> 7f4d21c09000-7f4d21e08000 ---p 00018000 ca:01 652670                     /lib/x86_64-linux-gnu/libpthread-2.23.so
> 7f4d21e08000-7f4d21e09000 r--p 00017000 ca:01 652670                     /lib/x86_64-linux-gnu/libpthread-2.23.so
> 7f4d21e09000-7f4d21e0a000 rw-p 00018000 ca:01 652670                     /lib/x86_64-linux-gnu/libpthread-2.23.so
> 7f4d21e0a000-7f4d21e0e000 rw-p 00000000 00:00 0 
> 7f4d21e0e000-7f4d21f31000 r-xp 00000000 ca:01 130646                     /usr/lib/x86_64-linux-gnu/libgnutls.so.30.6.2
> 7f4d21f31000-7f4d22130000 ---p 00123000 ca:01 130646                     /usr/lib/x86_64-linux-gnu/libgnutls.so.30.6.2
> 7f4d22130000-7f4d2213b000 r--p 00122000 ca:01 130646                     /usr/lib/x86_64-linux-gnu/libgnutls.so.30.6.2
> 7f4d2213b000-7f4d2213d000 rw-p 0012d000 ca:01 130646                     /usr/lib/x86_64-linux-gnu/libgnutls.so.30.6.2
> 7f4d2213d000-7f4d2213e000 rw-p 00000000 00:00 0 
> 7f4d2213e000-7f4d2217b000 r-xp 00000000 ca:01 137406                     /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
> 7f4d2217b000-7f4d2237b000 ---p 0003d000 ca:01 137406                     /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
> 7f4d2237b000-7f4d2237c000 r--p 0003d000 ca:01 137406                     /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
> 7f4d2237c000-7f4d2237e000 rw-p 0003e000 ca:01 137406                     /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
> 7f4d2237e000-7f4d2237f000 rw-p 00000000 00:00 0 
> 7f4d2237f000-7f4d22398000 r-xp 00000000 ca:01 131029                     /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
> 7f4d22398000-7f4d22598000 ---p 00019000 ca:01 131029                     /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
> 7f4d22598000-7f4d22599000 r--p 00019000 ca:01 131029                     /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
> 7f4d22599000-7f4d2259a000 rw-p 0001a000 ca:01 131029                     /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
> 7f4d2259a000-7f4d225b1000 r-xp 00000000 ca:01 652676                     /lib/x86_64-linux-gnu/libresolv-2.23.so
> 7f4d225b1000-7f4d227b1000 ---p 00017000 ca:01 652676                     /lib/x86_64-linux-gnu/libresolv-2.23.so
> 7f4d227b1000-7f4d227b2000 r--p 00017000 ca:01 652676                     /lib/x86_64-linux-gnu/libresolv-2.23.so
> 7f4d227b2000-7f4d227b3000 rw-p 00018000 ca:01 652676                     /lib/x86_64-linux-gnu/libresolv-2.23.so
> 7f4d227b3000-7f4d227b5000 rw-p 00000000 00:00 0 
> 7f4d227b5000-7f4d229d0000 r-xp 00000000 ca:01 651557                     /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
> 7f4d229d0000-7f4d22bcf000 ---p 0021b000 ca:01 651557                     /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
> 7f4d22bcf000-7f4d22beb000 r--p 0021a000 ca:01 651557                     /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
> 7f4d22beb000-7f4d22bf7000 rw-p 00236000 ca:01 651557                     /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
> 7f4d22bf7000-7f4d22bfa000 rw-p 00000000 00:00 0 
> 7f4d22bfa000-7f4d22dba000 r-xp 00000000 ca:01 652683                     /lib/x86_64-linux-gnu/libc-2.23.so
> 7f4d22dba000-7f4d22fba000 ---p 001c0000 ca:01 652683                     /lib/x86_64-linux-gnu/libc-2.23.so
> 7f4d22fba000-7f4d22fbe000 r--p 001c0000 ca:01 652683                     /lib/x86_64-linux-gnu/libc-2.23.so
> 7f4d22fbe000-7f4d22fc0000 rw-p 001c4000 ca:01 652683                     /lib/x86_64-linux-gnu/libc-2.23.so
> 7f4d22fc0000-7f4d22fc4000 rw-p 00000000 00:00 0 
> 7f4d22fc4000-7f4d22fd1000 r-xp 00000000 ca:01 130557                     /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.10.5
> 7f4d22fd1000-7f4d231d1000 ---p 0000d000 ca:01 130557                     /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.10.5
> 7f4d231d1000-7f4d231d2000 r--p 0000d000 ca:01 130557                     /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.10.5
> 7f4d231d2000-7f4d231d3000 rw-p 0000e000 ca:01 130557                     /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.10.5
> 7f4d231d3000-7f4d23220000 r-xp 00000000 ca:01 130560                     /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.10.5
> 7f4d23220000-7f4d2341f000 ---p 0004d000 ca:01 130560                     /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.10.5
> 7f4d2341f000-7f4d23421000 r--p 0004c000 ca:01 130560                     /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.10.5
> 7f4d23421000-7f4d23422000 rw-p 0004e000 ca:01 130560                     /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.10.5
> 7f4d23422000-7f4d23424000 rw-p 00000000 00:00 0 
> 7f4d23424000-7f4d23482000 r-xp 00000000 ca:01 651645                     /lib/x86_64-linux-gnu/libssl.so.1.0.0
> 7f4d23482000-7f4d23682000 ---p 0005e000 ca:01 651645                     /lib/x86_64-linux-gnu/libssl.so.1.0.0
> 7f4d23682000-7f4d23686000 r--p 0005e000 ca:01 651645                     /lib/x86_64-linux-gnu/libssl.so.1.0.0
> 7f4d23686000-7f4d2368d000 rw-p 00062000 ca:01 651645                     /lib/x86_64-linux-gnu/libssl.so.1.0.0
> 7f4d2368d000-7f4d236b3000 r-xp 00000000 ca:01 652669                     /lib/x86_64-linux-gnu/ld-2.23.so
> 7f4d23888000-7f4d23898000 rw-p 00000000 00:00 0 
> 7f4d238b1000-7f4d238b2000 rw-p 00000000 00:00 0 
> 7f4d238b2000-7f4d238b3000 r--p 00025000 ca:01 652669                     /lib/x86_64-linux-gnu/ld-2.23.so
> 7f4d238b3000-7f4d238b4000 rw-p 00026000 ca:01 652669                     /lib/x86_64-linux-gnu/ld-2.23.so
> 7f4d238b4000-7f4d238b5000 rw-p 00000000 00:00 0 
> 7ffdfb535000-7ffdfb632000 rw-p 00000000 00:00 0                          [stack]
> 7ffdfb64d000-7ffdfb64f000 r--p 00000000 00:00 0                          [vvar]
> 7ffdfb64f000-7ffdfb651000 r-xp 00000000 00:00 0                          [vdso]
> ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
> Aborted
  69137   Thu Apr 16 10:11:13 2020 Reply Stefan Rittstefan.ritt@psi.chBug reportLinuxELOG V3.1.3-Re: very long subject cause buffer overflow
Can you try to reproduce it on this (!) server? I cannot reproduce it on my home copy server, so I guess that might be fixed in meantime. Can you update to the current version of elog?

Stefan

> Additional information: I tried to recompile with -g (debug) and run it in gdb but the crash is not reproduced that way (w/ or w/o gdb). I guess that the memory handling in debug mode is different so the corruption is not 
> there anymore.
> 
> Best,
>   Stefano
> 
> > Hi,
> >   I'm using elog 313 on an ubuntu server. 
> > 
> > A user inserted a very long subject by mistake (the text was supposed to go into the body, but he copy pasted in the wrong place).
> > This results in elogd crash with buffer overflow error when I try to look at the list of that elgbook.
> > 
> > I can reproduce it on my test server by copy pasting lorem ipsum in the Subject field of the demo elogbook. I'm not doing that here for obvious reason.
> > 
> > If I cut the length of the Subject in the *.log file by hand, all is back to normal.
> > 
> > Is there a way to protect from this problem in the front-end?
> > 
> > Thanks,
> >   Stefano
> > 
> > Full backtrace follow.
> > 
> > *** buffer overflow detected ***: /usr/sbin/elogd terminated
> > ======= Backtrace: =========
> > /lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f4d22c717e5]
> > /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x5c)[0x7f4d22d1315c]
> > /lib/x86_64-linux-gnu/libc.so.6(+0x117160)[0x7f4d22d11160]
> > /lib/x86_64-linux-gnu/libc.so.6(+0x1166c9)[0x7f4d22d106c9]
> > /lib/x86_64-linux-gnu/libc.so.6(_IO_default_xsputn+0x80)[0x7f4d22c756b0]
> > /lib/x86_64-linux-gnu/libc.so.6(_IO_vfprintf+0x139b)[0x7f4d22c4850b]
> > /lib/x86_64-linux-gnu/libc.so.6(__vsprintf_chk+0x84)[0x7f4d22d10754]
> > /lib/x86_64-linux-gnu/libc.so.6(__sprintf_chk+0x7d)[0x7f4d22d106ad]
> > /usr/sbin/elogd[0x4547ca]
> > /usr/sbin/elogd[0x4793f0]
> > /usr/sbin/elogd[0x4955e0]
> > /usr/sbin/elogd[0x495876]
> > /usr/sbin/elogd[0x497bae]
> > /usr/sbin/elogd[0x49a6ca]
> > /usr/sbin/elogd[0x403ea7]
> > /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f4d22c1a830]
> > /usr/sbin/elogd[0x404ae9]
> > ======= Memory map: ========
> > 00400000-004d4000 r-xp 00000000 ca:01 135411                             /usr/sbin/elogd
> > 006d3000-006d4000 r--p 000d3000 ca:01 135411                             /usr/sbin/elogd
> > 006d4000-007b5000 rw-p 000d4000 ca:01 135411                             /usr/sbin/elogd
> > 007b5000-0172b000 rw-p 00000000 00:00 0 
> > 01a98000-01cd1000 rw-p 00000000 00:00 0                                  [heap]
> > 7f4d1daac000-7f4d1dac2000 r-xp 00000000 ca:01 651589                     /lib/x86_64-linux-gnu/libgcc_s.so.1
> > 7f4d1dac2000-7f4d1dcc1000 ---p 00016000 ca:01 651589                     /lib/x86_64-linux-gnu/libgcc_s.so.1
> > 7f4d1dcc1000-7f4d1dcc2000 rw-p 00015000 ca:01 651589                     /lib/x86_64-linux-gnu/libgcc_s.so.1
> > 7f4d1dcc2000-7f4d1e6af000 r--s 00000000 ca:03 1305745                    /var/lib/sss/mc/initgroups
> > 7f4d1e6af000-7f4d1e6b7000 r-xp 00000000 ca:01 651532                     /lib/x86_64-linux-gnu/libnss_sss.so.2
> > 7f4d1e6b7000-7f4d1e8b6000 ---p 00008000 ca:01 651532                     /lib/x86_64-linux-gnu/libnss_sss.so.2
> > 7f4d1e8b6000-7f4d1e8b7000 r--p 00007000 ca:01 651532                     /lib/x86_64-linux-gnu/libnss_sss.so.2
> > 7f4d1e8b7000-7f4d1e8b8000 rw-p 00008000 ca:01 651532                     /lib/x86_64-linux-gnu/libnss_sss.so.2
> > 7f4d1e8b8000-7f4d1e8c3000 r-xp 00000000 ca:01 652680                     /lib/x86_64-linux-gnu/libnss_files-2.23.so
> > 7f4d1e8c3000-7f4d1eac2000 ---p 0000b000 ca:01 652680                     /lib/x86_64-linux-gnu/libnss_files-2.23.so
> > 7f4d1eac2000-7f4d1eac3000 r--p 0000a000 ca:01 652680                     /lib/x86_64-linux-gnu/libnss_files-2.23.so
> > 7f4d1eac3000-7f4d1eac4000 rw-p 0000b000 ca:01 652680                     /lib/x86_64-linux-gnu/libnss_files-2.23.so
> > 7f4d1eac4000-7f4d1eaca000 rw-p 00000000 00:00 0 
> > 7f4d1eaca000-7f4d1ef26000 r--p 00000000 ca:01 134295                     /usr/lib/locale/locale-archive
> > 7f4d1ef26000-7f4d1ef2d000 r-xp 00000000 ca:01 136072                     /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
> > 7f4d1ef2d000-7f4d1f12c000 ---p 00007000 ca:01 136072                     /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
> > 7f4d1f12c000-7f4d1f12d000 r--p 00006000 ca:01 136072                     /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
> > 7f4d1f12d000-7f4d1f12e000 rw-p 00007000 ca:01 136072                     /usr/lib/x86_64-linux-gnu/libffi.so.6.0.4
> > 7f4d1f12e000-7f4d1f137000 r-xp 00000000 ca:01 652677                     /lib/x86_64-linux-gnu/libcrypt-2.23.so
> > 7f4d1f137000-7f4d1f336000 ---p 00009000 ca:01 652677                     /lib/x86_64-linux-gnu/libcrypt-2.23.so
> > 7f4d1f336000-7f4d1f337000 r--p 00008000 ca:01 652677                     /lib/x86_64-linux-gnu/libcrypt-2.23.so
> > 7f4d1f337000-7f4d1f338000 rw-p 00009000 ca:01 652677                     /lib/x86_64-linux-gnu/libcrypt-2.23.so
> > 7f4d1f338000-7f4d1f366000 rw-p 00000000 00:00 0 
> > 7f4d1f366000-7f4d1f436000 r-xp 00000000 ca:01 138952                     /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
> > 7f4d1f436000-7f4d1f635000 ---p 000d0000 ca:01 138952                     /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
> > 7f4d1f635000-7f4d1f638000 r--p 000cf000 ca:01 138952                     /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
> > 7f4d1f638000-7f4d1f63a000 rw-p 000d2000 ca:01 138952                     /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6
> > 7f4d1f63a000-7f4d1f63b000 rw-p 00000000 00:00 0 
> > 7f4d1f63b000-7f4d1f682000 r-xp 00000000 ca:01 137392                     /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
> > 7f4d1f682000-7f4d1f881000 ---p 00047000 ca:01 137392                     /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
> > 7f4d1f881000-7f4d1f883000 r--p 00046000 ca:01 137392                     /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
> > 7f4d1f883000-7f4d1f885000 rw-p 00048000 ca:01 137392                     /usr/lib/x86_64-linux-gnu/libhx509.so.5.0.0
> > 7f4d1f885000-7f4d1f886000 rw-p 00000000 00:00 0 
> > 7f4d1f886000-7f4d1f894000 r-xp 00000000 ca:01 137386                     /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
> > 7f4d1f894000-7f4d1fa93000 ---p 0000e000 ca:01 137386                     /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
> > 7f4d1fa93000-7f4d1fa94000 r--p 0000d000 ca:01 137386                     /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
> > 7f4d1fa94000-7f4d1fa95000 rw-p 0000e000 ca:01 137386                     /usr/lib/x86_64-linux-gnu/libheimbase.so.1.0.0
> > 7f4d1fa95000-7f4d1fabc000 r-xp 00000000 ca:01 137389                     /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
> > 7f4d1fabc000-7f4d1fcbc000 ---p 00027000 ca:01 137389                     /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
> > 7f4d1fcbc000-7f4d1fcbd000 r--p 00027000 ca:01 137389                     /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
> > 7f4d1fcbd000-7f4d1fcbe000 rw-p 00028000 ca:01 137389                     /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
> > 7f4d1fcbe000-7f4d1fd3d000 r-xp 00000000 ca:01 136076                     /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
> > 7f4d1fd3d000-7f4d1ff3c000 ---p 0007f000 ca:01 136076                     /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
> > 7f4d1ff3c000-7f4d1ff3d000 r--p 0007e000 ca:01 136076                     /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
> > 7f4d1ff3d000-7f4d1ff3e000 rw-p 0007f000 ca:01 136076                     /usr/lib/x86_64-linux-gnu/libgmp.so.10.3.0
> > 7f4d1ff3e000-7f4d1ff70000 r-xp 00000000 ca:01 133867                     /usr/lib/x86_64-linux-gnu/libhogweed.so.4.2
> > 7f4d1ff70000-7f4d2016f000 ---p 00032000 ca:01 133867                     /usr/lib/x86_64-linux-gnu/libhogweed.so.4.2
> > 7f4d2016f000-7f4d20170000 r--p 00031000 ca:01 133867                     /usr/lib/x86_64-linux-gnu/libhogweed.so.4.2
> > 7f4d20170000-7f4d20171000 rw-p 00032000 ca:01 133867                     /usr/lib/x86_64-linux-gnu/libhogweed.so.4.2
> > 7f4d20171000-7f4d201a5000 r-xp 00000000 ca:01 133869                     /usr/lib/x86_64-linux-gnu/libnettle.so.6.2
> > 7f4d201a5000-7f4d203a4000 ---p 00034000 ca:01 133869                     /usr/lib/x86_64-linux-gnu/libnettle.so.6.2
> > 7f4d203a4000-7f4d203a6000 r--p 00033000 ca:01 133869                     /usr/lib/x86_64-linux-gnu/libnettle.so.6.2
> > 7f4d203a6000-7f4d203a7000 rw-p 00035000 ca:01 133869                     /usr/lib/x86_64-linux-gnu/libnettle.so.6.2
> > 7f4d203a7000-7f4d203b8000 r-xp 00000000 ca:01 133877                     /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1
> > 7f4d203b8000-7f4d205b8000 ---p 00011000 ca:01 133877                     /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1
> > 7f4d205b8000-7f4d205b9000 r--p 00011000 ca:01 133877                     /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1
> > 7f4d205b9000-7f4d205ba000 rw-p 00012000 ca:01 133877                     /usr/lib/x86_64-linux-gnu/libtasn1.so.6.5.1
> > 7f4d205ba000-7f4d205eb000 r-xp 00000000 ca:01 133871                     /usr/lib/x86_64-linux-gnu/libidn.so.11.6.15
> > 7f4d205eb000-7f4d207eb000 ---p 00031000 ca:01 133871                     /usr/lib/x86_64-linux-gnu/libidn.so.11.6.15
> > 7f4d207eb000-7f4d207ec000 r--p 00031000 ca:01 133871                     /usr/lib/x86_64-linux-gnu/libidn.so.11.6.15
> > 7f4d207ec000-7f4d207ed000 rw-p 00032000 ca:01 133871                     /usr/lib/x86_64-linux-gnu/libidn.so.11.6.15
> > 7f4d207ed000-7f4d20846000 r-xp 00000000 ca:01 133875                     /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0
> > 7f4d20846000-7f4d20a45000 ---p 00059000 ca:01 133875                     /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0
> > 7f4d20a45000-7f4d20a4f000 r--p 00058000 ca:01 133875                     /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0
> > 7f4d20a4f000-7f4d20a51000 rw-p 00062000 ca:01 133875                     /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.1.0
> > 7f4d20a51000-7f4d20a6a000 r-xp 00000000 ca:01 651781                     /lib/x86_64-linux-gnu/libz.so.1.2.8
> > 7f4d20a6a000-7f4d20c69000 ---p 00019000 ca:01 651781                     /lib/x86_64-linux-gnu/libz.so.1.2.8
> > 7f4d20c69000-7f4d20c6a000 r--p 00018000 ca:01 651781                     /lib/x86_64-linux-gnu/libz.so.1.2.8
> > 7f4d20c6a000-7f4d20c6b000 rw-p 00019000 ca:01 651781                     /lib/x86_64-linux-gnu/libz.so.1.2.8
> > 7f4d20c6b000-7f4d20c80000 r-xp 00000000 ca:01 137377                     /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
> > 7f4d20c80000-7f4d20e7f000 ---p 00015000 ca:01 137377                     /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
> > 7f4d20e7f000-7f4d20e80000 r--p 00014000 ca:01 137377                     /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
> > 7f4d20e80000-7f4d20e81000 rw-p 00015000 ca:01 137377                     /usr/lib/x86_64-linux-gnu/libroken.so.18.1.0
> > 7f4d20e81000-7f4d20eb1000 r-xp 00000000 ca:01 137383                     /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
> > 7f4d20eb1000-7f4d210b1000 ---p 00030000 ca:01 137383                     /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
> > 7f4d210b1000-7f4d210b2000 r--p 00030000 ca:01 137383                     /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
> > 7f4d210b2000-7f4d210b3000 rw-p 00031000 ca:01 137383                     /usr/lib/x86_64-linux-gnu/libhcrypto.so.4.1.0
> > 7f4d210b3000-7f4d210b4000 rw-p 00000000 00:00 0 
> > 7f4d210b4000-7f4d210b7000 r-xp 00000000 ca:01 651540                     /lib/x86_64-linux-gnu/libcom_err.so.2.1
> > 7f4d210b7000-7f4d212b6000 ---p 00003000 ca:01 651540                     /lib/x86_64-linux-gnu/libcom_err.so.2.1
> > 7f4d212b6000-7f4d212b7000 r--p 00002000 ca:01 651540                     /lib/x86_64-linux-gnu/libcom_err.so.2.1
> > 7f4d212b7000-7f4d212b8000 rw-p 00003000 ca:01 651540                     /lib/x86_64-linux-gnu/libcom_err.so.2.1
> > 7f4d212b8000-7f4d21357000 r-xp 00000000 ca:01 137380                     /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
> > 7f4d21357000-7f4d21556000 ---p 0009f000 ca:01 137380                     /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
> > 7f4d21556000-7f4d21557000 r--p 0009e000 ca:01 137380                     /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
> > 7f4d21557000-7f4d2155a000 rw-p 0009f000 ca:01 137380                     /usr/lib/x86_64-linux-gnu/libasn1.so.8.0.0
> > 7f4d2155a000-7f4d215de000 r-xp 00000000 ca:01 137395                     /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
> > 7f4d215de000-7f4d217dd000 ---p 00084000 ca:01 137395                     /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
> > 7f4d217dd000-7f4d217e0000 r--p 00083000 ca:01 137395                     /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
> > 7f4d217e0000-7f4d217e3000 rw-p 00086000 ca:01 137395                     /usr/lib/x86_64-linux-gnu/libkrb5.so.26.0.0
> > 7f4d217e3000-7f4d217e4000 rw-p 00000000 00:00 0 
> > 7f4d217e4000-7f4d217ec000 r-xp 00000000 ca:01 137400                     /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
> > 7f4d217ec000-7f4d219eb000 ---p 00008000 ca:01 137400                     /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
> > 7f4d219eb000-7f4d219ec000 r--p 00007000 ca:01 137400                     /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
> > 7f4d219ec000-7f4d219ed000 rw-p 00008000 ca:01 137400                     /usr/lib/x86_64-linux-gnu/libheimntlm.so.0.1.0
> > 7f4d219ed000-7f4d219f0000 r-xp 00000000 ca:01 652668                     /lib/x86_64-linux-gnu/libdl-2.23.so
> > 7f4d219f0000-7f4d21bef000 ---p 00003000 ca:01 652668                     /lib/x86_64-linux-gnu/libdl-2.23.so
> > 7f4d21bef000-7f4d21bf0000 r--p 00002000 ca:01 652668                     /lib/x86_64-linux-gnu/libdl-2.23.so
> > 7f4d21bf0000-7f4d21bf1000 rw-p 00003000 ca:01 652668                     /lib/x86_64-linux-gnu/libdl-2.23.so
> > 7f4d21bf1000-7f4d21c09000 r-xp 00000000 ca:01 652670                     /lib/x86_64-linux-gnu/libpthread-2.23.so
> > 7f4d21c09000-7f4d21e08000 ---p 00018000 ca:01 652670                     /lib/x86_64-linux-gnu/libpthread-2.23.so
> > 7f4d21e08000-7f4d21e09000 r--p 00017000 ca:01 652670                     /lib/x86_64-linux-gnu/libpthread-2.23.so
> > 7f4d21e09000-7f4d21e0a000 rw-p 00018000 ca:01 652670                     /lib/x86_64-linux-gnu/libpthread-2.23.so
> > 7f4d21e0a000-7f4d21e0e000 rw-p 00000000 00:00 0 
> > 7f4d21e0e000-7f4d21f31000 r-xp 00000000 ca:01 130646                     /usr/lib/x86_64-linux-gnu/libgnutls.so.30.6.2
> > 7f4d21f31000-7f4d22130000 ---p 00123000 ca:01 130646                     /usr/lib/x86_64-linux-gnu/libgnutls.so.30.6.2
> > 7f4d22130000-7f4d2213b000 r--p 00122000 ca:01 130646                     /usr/lib/x86_64-linux-gnu/libgnutls.so.30.6.2
> > 7f4d2213b000-7f4d2213d000 rw-p 0012d000 ca:01 130646                     /usr/lib/x86_64-linux-gnu/libgnutls.so.30.6.2
> > 7f4d2213d000-7f4d2213e000 rw-p 00000000 00:00 0 
> > 7f4d2213e000-7f4d2217b000 r-xp 00000000 ca:01 137406                     /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
> > 7f4d2217b000-7f4d2237b000 ---p 0003d000 ca:01 137406                     /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
> > 7f4d2237b000-7f4d2237c000 r--p 0003d000 ca:01 137406                     /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
> > 7f4d2237c000-7f4d2237e000 rw-p 0003e000 ca:01 137406                     /usr/lib/x86_64-linux-gnu/libgssapi.so.3.0.0
> > 7f4d2237e000-7f4d2237f000 rw-p 00000000 00:00 0 
> > 7f4d2237f000-7f4d22398000 r-xp 00000000 ca:01 131029                     /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
> > 7f4d22398000-7f4d22598000 ---p 00019000 ca:01 131029                     /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
> > 7f4d22598000-7f4d22599000 r--p 00019000 ca:01 131029                     /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
> > 7f4d22599000-7f4d2259a000 rw-p 0001a000 ca:01 131029                     /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
> > 7f4d2259a000-7f4d225b1000 r-xp 00000000 ca:01 652676                     /lib/x86_64-linux-gnu/libresolv-2.23.so
> > 7f4d225b1000-7f4d227b1000 ---p 00017000 ca:01 652676                     /lib/x86_64-linux-gnu/libresolv-2.23.so
> > 7f4d227b1000-7f4d227b2000 r--p 00017000 ca:01 652676                     /lib/x86_64-linux-gnu/libresolv-2.23.so
> > 7f4d227b2000-7f4d227b3000 rw-p 00018000 ca:01 652676                     /lib/x86_64-linux-gnu/libresolv-2.23.so
> > 7f4d227b3000-7f4d227b5000 rw-p 00000000 00:00 0 
> > 7f4d227b5000-7f4d229d0000 r-xp 00000000 ca:01 651557                     /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
> > 7f4d229d0000-7f4d22bcf000 ---p 0021b000 ca:01 651557                     /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
> > 7f4d22bcf000-7f4d22beb000 r--p 0021a000 ca:01 651557                     /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
> > 7f4d22beb000-7f4d22bf7000 rw-p 00236000 ca:01 651557                     /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
> > 7f4d22bf7000-7f4d22bfa000 rw-p 00000000 00:00 0 
> > 7f4d22bfa000-7f4d22dba000 r-xp 00000000 ca:01 652683                     /lib/x86_64-linux-gnu/libc-2.23.so
> > 7f4d22dba000-7f4d22fba000 ---p 001c0000 ca:01 652683                     /lib/x86_64-linux-gnu/libc-2.23.so
> > 7f4d22fba000-7f4d22fbe000 r--p 001c0000 ca:01 652683                     /lib/x86_64-linux-gnu/libc-2.23.so
> > 7f4d22fbe000-7f4d22fc0000 rw-p 001c4000 ca:01 652683                     /lib/x86_64-linux-gnu/libc-2.23.so
> > 7f4d22fc0000-7f4d22fc4000 rw-p 00000000 00:00 0 
> > 7f4d22fc4000-7f4d22fd1000 r-xp 00000000 ca:01 130557                     /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.10.5
> > 7f4d22fd1000-7f4d231d1000 ---p 0000d000 ca:01 130557                     /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.10.5
> > 7f4d231d1000-7f4d231d2000 r--p 0000d000 ca:01 130557                     /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.10.5
> > 7f4d231d2000-7f4d231d3000 rw-p 0000e000 ca:01 130557                     /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2.10.5
> > 7f4d231d3000-7f4d23220000 r-xp 00000000 ca:01 130560                     /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.10.5
> > 7f4d23220000-7f4d2341f000 ---p 0004d000 ca:01 130560                     /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.10.5
> > 7f4d2341f000-7f4d23421000 r--p 0004c000 ca:01 130560                     /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.10.5
> > 7f4d23421000-7f4d23422000 rw-p 0004e000 ca:01 130560                     /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2.10.5
> > 7f4d23422000-7f4d23424000 rw-p 00000000 00:00 0 
> > 7f4d23424000-7f4d23482000 r-xp 00000000 ca:01 651645                     /lib/x86_64-linux-gnu/libssl.so.1.0.0
> > 7f4d23482000-7f4d23682000 ---p 0005e000 ca:01 651645                     /lib/x86_64-linux-gnu/libssl.so.1.0.0
> > 7f4d23682000-7f4d23686000 r--p 0005e000 ca:01 651645                     /lib/x86_64-linux-gnu/libssl.so.1.0.0
> > 7f4d23686000-7f4d2368d000 rw-p 00062000 ca:01 651645                     /lib/x86_64-linux-gnu/libssl.so.1.0.0
> > 7f4d2368d000-7f4d236b3000 r-xp 00000000 ca:01 652669                     /lib/x86_64-linux-gnu/ld-2.23.so
> > 7f4d23888000-7f4d23898000 rw-p 00000000 00:00 0 
> > 7f4d238b1000-7f4d238b2000 rw-p 00000000 00:00 0 
> > 7f4d238b2000-7f4d238b3000 r--p 00025000 ca:01 652669                     /lib/x86_64-linux-gnu/ld-2.23.so
> > 7f4d238b3000-7f4d238b4000 rw-p 00026000 ca:01 652669                     /lib/x86_64-linux-gnu/ld-2.23.so
> > 7f4d238b4000-7f4d238b5000 rw-p 00000000 00:00 0 
> > 7ffdfb535000-7ffdfb632000 rw-p 00000000 00:00 0                          [stack]
> > 7ffdfb64d000-7ffdfb64f000 r--p 00000000 00:00 0                          [vvar]
> > 7ffdfb64f000-7ffdfb651000 r-xp 00000000 00:00 0                          [vdso]
> > ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
> > Aborted
ELOG V3.1.5-3fb85fa6