Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 108 of 807  Not logged in ELOG logo
ID Date Icon Author Author Email Category OS ELOG Version Subjectdown
  69220   Tue Sep 15 12:31:09 2020 Reply Lahreche Abdelmadjidabdelmadjid.lahreche@yahoo.comQuestionWindows2006Re: view connecting account

Thank you, I found it.

Andreas Luedeke wrote:

Yes, you can see that in the logging file, if you turn on logging. You might want to read the manual https://elog.psi.ch/elog/config.html. Here's the relevant excerpt:

  • Logfile = <file>
    This option specifies a filename which logs all login/logout activities and successful user connections for logbooks with user level access. The the logging level (see below) is larger than 1, also read and write accesses can be logged.
  • Logging level = 1 | 2 | 3
    Specifies the logging level. The higher this value, the more information is logged. Default is 2:
    • 1: Log only logins and logouts
    • 2: Log also write accesses
    • 3: Log also read accesses
Lahreche Abdelmadjid wrote:

Hi All,

Can I view who is connected to ELOG (I'm the Admin) ?

thank you.

 

 

  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
  68733   Fri Feb 2 00:02:54 2018 Reply Yvesvanhaarlemyves@gmail.comQuestionWindows2.9.2->3.1.3 Re: v3.1.3 does not work with logbooks from v2.9.2? - solved

Hi Andreas,

Thanks - you pointed me in the right direction. It appears that my logbooks were a combination of the two versions. I had all the year-directories (version 3) but also all the entry files in the main logbook directory. Seems version 2 does not care but version 3 does not like it. After carefully checking and removing all the logbook files in the main directory version 3 now works.

Cheers,

  Yves

Andreas Luedeke wrote:
Hi Yves,
just my two pence, maybe they help you to figure out what's going on:
versions 2.* had all entries of one logbook in one directory. Version 3.* create a subdirectory for each year. This had been added for me: if you use AFS for logbook storage, then you have a limit on how many files you can put into a single directory.
So the first time you start elogd 3.* with data from an elogd 2.* it should move all your logbook entries into sub-directories for each year. If that would have happened, you would not be able to use these logbook directories with the 2.9.2 version.
Maybe your logbook client is not allowed to create sub-directories? Although I would guess that it then would just throw an error message and stop.
Cheers, Andreas
Yves wrote:

I have just upgraded elog from 2.9.2 -> 3.1.3.

3.1.3 runs fine with new logbooks. However, when trying to run 3.1.3 with my logbooks created with 2.9.2 things stop working.

Here is the command I run for testing [attachment 1]: first of all it takes a very long time (~ 10 minutes) for it to index the logbooks. When finished indexing I try it out in a web browser - it takes infinite time to load: no error message appears but also no logbook. After an hour or so elogd crashes without an error message.

When running 2.9.2 on the same machine, all runs wel (attachment 2)

 

cfd file: (I only left in one logbook - they are all configured the same)

[global]
port = 18080
Logging level = 3
Max content length = 500000000
Date format = %A, %d %B %Y


[Logrun - Amptek]
Theme = default
Comment = Logrun Amptec
Reverse sort = 0
Quick filter = Date, Type

 

Any ideas on how to solve this?

 

 

  68730   Thu Feb 1 10:14:55 2018 Reply Andreas Luedekeandreas.luedeke@psi.chQuestionWindows2.9.2->3.1.3 Re: v3.1.3 does not work with logbooks from v2.9.2?
Hi Yves,
just my two pence, maybe they help you to figure out what's going on:
versions 2.* had all entries of one logbook in one directory. Version 3.* create a subdirectory for each year. This had been added for me: if you use AFS for logbook storage, then you have a limit on how many files you can put into a single directory.
So the first time you start elogd 3.* with data from an elogd 2.* it should move all your logbook entries into sub-directories for each year. If that would have happened, you would not be able to use these logbook directories with the 2.9.2 version.
Maybe your logbook client is not allowed to create sub-directories? Although I would guess that it then would just throw an error message and stop.
Cheers, Andreas
Yves wrote:

I have just upgraded elog from 2.9.2 -> 3.1.3.

3.1.3 runs fine with new logbooks. However, when trying to run 3.1.3 with my logbooks created with 2.9.2 things stop working.

Here is the command I run for testing [attachment 1]: first of all it takes a very long time (~ 10 minutes) for it to index the logbooks. When finished indexing I try it out in a web browser - it takes infinite time to load: no error message appears but also no logbook. After an hour or so elogd crashes without an error message.

When running 2.9.2 on the same machine, all runs wel (attachment 2)

 

cfd file: (I only left in one logbook - they are all configured the same)

[global]
port = 18080
Logging level = 3
Max content length = 500000000
Date format = %A, %d %B %Y


[Logrun - Amptek]
Theme = default
Comment = Logrun Amptec
Reverse sort = 0
Quick filter = Date, Type

 

Any ideas on how to solve this?

 

  65894   Mon Jun 2 12:17:53 2008 Reply Stefan Rittstefan.ritt@psi.chQuestionLinux Re: using elog client in secure mode

Luc Goossens wrote:

I am trying to enter a log record in secure mode into a log book hosted on an apache server (v2.7.2).

 

[atlt0dev@voatlas04]~% elog -v -s  -h prod-grid-logger.cern.ch -p 443 -u myuser -w mypassword -d elog -l "ATLAS+Tier0+Operations+Logbook" -a Subject=foobar
 

Your problem is the wrong password parameter. The "-w" password is only if a write password is defined in the config file. If the user level access is chosen however, you have to specify the username/password pair only separated by a blank such as in

elog ... -u myuser mypwassword ...

 

  67745   Mon Jan 12 11:24:00 2015 Reply Stefan Rittstefan.ritt@psi.chQuestionLinux2.9.2-2455Re: using a predefined format with predefined informations that an user should fill at each run of data

In ELOG you can define "attributes", so take one attribute for each informaiton you need. The flag these attributes as required via "Required attributes = ...". If you only want this attributes for certain occations (like data taking in your case), you can either do a separato logbook for data taking, or use "conditional attributes" to make these attributes only show up for data taking.

/Stefan 

Iolanda Matea wrote:

Hello!

I was wondering if it is possible (and how) to define a template (something equivalent to an excel table with some required informations to be filled) that opens each time one wants to make a new entry of a given type, e.g., I want this template to open only when the informations concern data taking.

I hope I am sufficiently clear ...

Thank you,

I.M.

 

  416   Sun Jul 27 16:09:09 2003 Reply Stefan Rittstefan.ritt@psi.chQuestionWindows2.3.9Re: using = or <> or AND as part of a filter ??
> Is this possible?  If so, could you provide an example:
> 
> I'm trying to find a way that when you do a search, that you can filter 
> entries using ( = , <>, AND) on one or more attributes.
> ex:  Find all workstations for this subnet, but exclude a particular one.
> Thats the basic idea.
> 
> Can it be done? If so, how?

No, it cannot be done right now, but it's on the wishlist since some time. 
So I added your vote there.
ELOG V3.1.5-3fb85fa6