Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 209 of 234  Not logged in ELOG logo
icon5.gif   How does attributes substitution work?, posted by Gianluca Rigoletti on Fri Mar 20 14:07:59 2020 

Hello,

Let's say I have a logboook where I define two attributes:

[TOTEM]
Comment = TOTEM Gas System Status
Attributes = Author, D, M, Y, h, min, ...

I would like to modify the "Last submission" so that I display something like %D/%M/%Y, %h:%min

so in my elogd.cfg I added this line:

Last submission = $D / $M / $Y , $h : $min by $Author

however, when display in the selection page instead of getting $min displayed i get the attribute $M+'in' displayed. How does attributes substitution work? is it case unsensitive? how does it behave when different attributes starts with the same name?

    icon2.gif   Re: How does attributes substitution work?, posted by Stefan Ritt on Fri Mar 20 14:24:28 2020 

There could be a bug which is triggered by the fact that $M is a substring of $min. Try to rename $M to $Month or so.

Stefan

Gianluca Rigoletti wrote:

Hello,

Let's say I have a logboook where I define two attributes:

[TOTEM]
Comment = TOTEM Gas System Status
Attributes = Author, D, M, Y, h, min, ...

I would like to modify the "Last submission" so that I display something like %D/%M/%Y, %h:%min

so in my elogd.cfg I added this line:

Last submission = $D / $M / $Y , $h : $min by $Author

however, when display in the selection page instead of getting $min displayed i get the attribute $M+'in' displayed. How does attributes substitution work? is it case unsensitive? how does it behave when different attributes starts with the same name?

 

icon5.gif   email notification fail to retrieve images in the text , posted by MATT TERRON on Wed Apr 1 12:29:47 2020 email_notification_problem.png

When I use the email notification for an entry with images in the text, it seems the email server cannot retrieve the image. When I inspected the URL of the image it went to the login page.

Is that because the logbook has a password config that the access from the URL of the image needs authentication?    Or I am just using the image upload the wrong way .

    icon2.gif   Re: email notification fail to retrieve images in the text , posted by Stefan Ritt on Wed Apr 1 13:01:39 2020 

First thing you want to try is to upgrade elog to the last version. Older versions have problems in including images.

Then you want to check the "Email Format" in your elogd.cfg configuration file. Only if "16" is included there, then attachments are sent as email attachments and images will be included in yoru email. If not, only a link of the image is included in your email, and you correctly realized that you then cannot view the image because your email client does not knwo how to authenticate itself at the elog server.

Stefan

MATT TERRON wrote:

When I use the email notification for an entry with images in the text, it seems the email server cannot retrieve the image. When I inspected the URL of the image it went to the login page.

Is that because the logbook has a password config that the access from the URL of the image needs authentication?    Or I am just using the image upload the wrong way .

 

icon3.gif   How to add bulk client list at once, posted by Sunilkumar on Sun Mar 29 13:30:09 2020 Screenshot_3.jpg

Please let me know how to add Button for adding client next to Client Mnemonics.

 

I need to add bulk client lists in the Elog page there are 1000+ clients  .

I need to select client from the drop down list if its not there i need to add them using Add Client Button 

Please let me know the steps.

 

 

    icon2.gif   Re: How to add bulk client list at once, posted by Stefan Ritt on Wed Apr 1 15:16:43 2020 

Options are limited to 200. To add options dynamically, use 

Extendable options = <name>

as desribed in the manual.

Stefan

Sunilkumar wrote:

Please let me know how to add Button for adding client next to Client Mnemonics.

 

I need to add bulk client lists in the Elog page there are 1000+ clients  .

I need to select client from the drop down list if its not there i need to add them using Add Client Button 

Please let me know the steps.

 

 

 

       icon2.gif   Re: How to add bulk client list at once, posted by Sunilkumar on Wed Apr 1 19:27:53 2020 

Hi Stefan 

Thanks for Response , It helped me lot .

is it possible to give refence to include 1000 clients in one file and adding that referece file to Roptions ?

Once we click Client Mnemonic it should fetch the data from that file and return  the Client Name .

Stefan Ritt wrote:

Options are limited to 200. To add options dynamically, use 

Extendable options = <name>

as desribed in the manual.

Stefan

Sunilkumar wrote:

Please let me know how to add Button for adding client next to Client Mnemonics.

 

I need to add bulk client lists in the Elog page there are 1000+ clients  .

I need to select client from the drop down list if its not there i need to add them using Add Client Button 

Please let me know the steps.

 

 

 

 

          icon2.gif   Re: How to add bulk client list at once, posted by Stefan Ritt on Wed Apr 1 20:01:26 2020 

No, that's not possible with elog.

Sunilkumar wrote:

Hi Stefan 

Thanks for Response , It helped me lot .

is it possible to give refence to include 1000 clients in one file and adding that referece file to Roptions ?

Once we click Client Mnemonic it should fetch the data from that file and return  the Client Name .

Stefan Ritt wrote:

Options are limited to 200. To add options dynamically, use 

Extendable options = <name>

as desribed in the manual.

Stefan

Sunilkumar wrote:

Please let me know how to add Button for adding client next to Client Mnemonics.

 

I need to add bulk client lists in the Elog page there are 1000+ clients  .

I need to select client from the drop down list if its not there i need to add them using Add Client Button 

Please let me know the steps.

 

 

 

 

 

icon5.gif   Mirroring function for a full both-sides synchronization, posted by Sergei Gavrilov on Mon Feb 24 15:58:55 2020 

Hello, dear ELOG's gurus.
Please help me to understand a problem with mirroring function.
It appears in ELOG V3.1.4-a04faf9f - the last official Windows release, as well as previous 3.1.3 Windows release, which I have checked for comparison.

When I'm using a manual configuration with "mirror server, cron, user" options for one (master) of two servers, it operates well, except the situation, when a new entry is submitted at the second (slave) server.
For example, for a new entry with a real ID#2 at Slave its logfile gives "NEW entry #0", so logfile of the master server gives "MIRROR: Error receiving message: Received wrong entry id "0"".
After that Master deletes this entry at Slave "MIRROR delete remote entry #2".

In case of mirror functions in both .cfg files (Master to Slave, Slave to Master) both servers hung on after the first mirror process.

Now let's imagine, what I want to do. 
Master, as a main-operation global log, is off-operation, Slave automatically becomes a reserv-operation local log with full information from Master due to previous periodic mirroring.
Users work with Slave, submit new entries - all with #0 ID.
After repairing Master starts active mirroring and just deletes all new entries from Slave.

It seems, that the problem is not with mirroring, but with a new entry ID, as was mentioned in https://elog.psi.ch/elogs/Forum/68850
Were these ID#0/mirror problems resolved somehow or may be it is not a problem, but simply my errors in ELOG configuration?
Is there a chance to get an up-to-date Windows-release with working both-sides mirror function and all other addings after V3.1.4-a04faf9f ?

Best regards,
Sergei

    icon2.gif   Re: Mirroring function for a full both-sides synchronization, posted by Stefan Ritt on Thu Apr 2 13:37:21 2020 Screenshot_2020-04-02_at_13.42.23_.png

The entry ID #0 was a bug in logging routine only, so in the elog logbook the ID is certainly not zero. But the logging bug has been fixed now, so please update your version of elog.

Then I tried to reproduce your problem. I set up two servers, the master listening at port 8080 and the slave listening at port 8081. I created two entries at the master, did manual synchronization, then created one entry on the slave, and did another synchronization on the master. I got both sides correctly transferred, no problem with ID zero. See attached screenshot. I used following elogd.cff on the master side:

[global]
port = 8080
password file = passwd
Mirror server =    http://localhost:8081
Mirror simulate =1

[demo]
Theme = default
Comment = General Linux Tips & Tricks
Attributes = Author, Type, Category, Subject
Options Type = Routine, Software Installation, Problem Fixed, Configuration, Other
Options Category = General, Hardware, Software, Network, Other
Extendable Options = Category
Page Title = ELOG - $subject
Reverse sort = 1
Quick filter = Date, Type

Sergei Gavrilov wrote:

Hello, dear ELOG's gurus.
Please help me to understand a problem with mirroring function.
It appears in ELOG V3.1.4-a04faf9f - the last official Windows release, as well as previous 3.1.3 Windows release, which I have checked for comparison.

When I'm using a manual configuration with "mirror server, cron, user" options for one (master) of two servers, it operates well, except the situation, when a new entry is submitted at the second (slave) server.
For example, for a new entry with a real ID#2 at Slave its logfile gives "NEW entry #0", so logfile of the master server gives "MIRROR: Error receiving message: Received wrong entry id "0"".
After that Master deletes this entry at Slave "MIRROR delete remote entry #2".

In case of mirror functions in both .cfg files (Master to Slave, Slave to Master) both servers hung on after the first mirror process.

Now let's imagine, what I want to do. 
Master, as a main-operation global log, is off-operation, Slave automatically becomes a reserv-operation local log with full information from Master due to previous periodic mirroring.
Users work with Slave, submit new entries - all with #0 ID.
After repairing Master starts active mirroring and just deletes all new entries from Slave.

It seems, that the problem is not with mirroring, but with a new entry ID, as was mentioned in https://elog.psi.ch/elogs/Forum/68850
Were these ID#0/mirror problems resolved somehow or may be it is not a problem, but simply my errors in ELOG configuration?
Is there a chance to get an up-to-date Windows-release with working both-sides mirror function and all other addings after V3.1.4-a04faf9f ?

Best regards,
Sergei

 

icon4.gif   very long subject cause buffer overflow, posted by Stefano Lacaprara on Tue Apr 14 13:26:50 2020 
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
    icon2.gif   Re: very long subject cause buffer overflow, posted by Stefano Lacaprara on Thu Apr 16 10:07:18 2020 
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
       icon2.gif   Re: very long subject cause buffer overflow, posted by Stefan Ritt on Thu Apr 16 10:11:13 2020 
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
          icon2.gif   Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate v 
My try on this server ->> see the subject
             icon2.gif   Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate v 
indeed, I'll try to move to ELOG V3.1.4-80633ba

> My try on this server ->> see the subject
                icon2.gif   Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate v 
> indeed, I'll try to move to ELOG V3.1.4-80633ba
> 
> > My try on this server ->> see the subject

I've tried with elog-3.1.4-2 and git version, and I still have the same problem. 
If I compile with make debug, it works.

Is there anything I can do to help debug the problem?

thanks for your help

S

compiling git master w/o debug, but running in gdb


gdb ~/elog/elogd
(gdb) run -f /var/run/elog.pid -c /etc/elog.conf -d /var/lib/elog/logbooks -s /usr/share/elog -v 3 -x
... [opening elogbook demo with an entry with lorem ipsum as sujbject] 

*** buffer overflow detected ***: /root/elog/elogd terminated
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7ffff781b7e5]
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x5c)[0x7ffff78bd15c]
/lib/x86_64-linux-gnu/libc.so.6(+0x117160)[0x7ffff78bb160]
/lib/x86_64-linux-gnu/libc.so.6(+0x1166c9)[0x7ffff78ba6c9]
/lib/x86_64-linux-gnu/libc.so.6(_IO_default_xsputn+0x80)[0x7ffff781f6b0]
/lib/x86_64-linux-gnu/libc.so.6(_IO_vfprintf+0x139b)[0x7ffff77f250b]
/lib/x86_64-linux-gnu/libc.so.6(__vsprintf_chk+0x84)[0x7ffff78ba754]
/lib/x86_64-linux-gnu/libc.so.6(__sprintf_chk+0x7d)[0x7ffff78ba6ad]
/root/elog/elogd[0x44c86a]
/root/elog/elogd[0x4799e0]
/root/elog/elogd[0x496018]
/root/elog/elogd[0x4962a6]
/root/elog/elogd[0x49864e]
/root/elog/elogd[0x49b1f8]
/root/elog/elogd[0x4038c7]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7ffff77c4830]
/root/elog/elogd[0x404509]
======= Memory map: ========
00400000-004d5000 r-xp 00000000 ca:01 273573                             /root/elog/elogd
006d4000-006d5000 r--p 000d4000 ca:01 273573                             /root/elog/elogd
006d5000-0076c000 rw-p 000d5000 ca:01 273573                             /root/elog/elogd
0076c000-018e7000 rw-p 00000000 00:00 0                                  [heap]
7ffff5783000-7ffff5799000 r-xp 00000000 ca:01 651589                     /lib/x86_64-linux-gnu/libgcc_s.so.1
7ffff5799000-7ffff5998000 ---p 00016000 ca:01 651589                     /lib/x86_64-linux-gnu/libgcc_s.so.1
7ffff5998000-7ffff5999000 rw-p 00015000 ca:01 651589                     /lib/x86_64-linux-gnu/libgcc_s.so.1
7ffff5999000-7ffff5c56000 rw-p 00000000 00:00 0 
7ffff5cda000-7ffff66c7000 r--s 00000000 ca:03 1305745                    /var/lib/sss/mc/initgroups
7ffff66c7000-7ffff66df000 r-xp 00000000 ca:01 652670                     /lib/x86_64-linux-gnu/libpthread-2.23.so
7ffff66df000-7ffff68de000 ---p 00018000 ca:01 652670                     /lib/x86_64-linux-gnu/libpthread-2.23.so
7ffff68de000-7ffff68df000 r--p 00017000 ca:01 652670                     /lib/x86_64-linux-gnu/libpthread-2.23.so
7ffff68df000-7ffff68e0000 rw-p 00018000 ca:01 652670                     /lib/x86_64-linux-gnu/libpthread-2.23.so
7ffff68e0000-7ffff68e4000 rw-p 00000000 00:00 0 
7ffff68e4000-7ffff68ec000 r-xp 00000000 ca:01 651532                     /lib/x86_64-linux-gnu/libnss_sss.so.2
7ffff68ec000-7ffff6aeb000 ---p 00008000 ca:01 651532                     /lib/x86_64-linux-gnu/libnss_sss.so.2
7ffff6aeb000-7ffff6aec000 r--p 00007000 ca:01 651532                     /lib/x86_64-linux-gnu/libnss_sss.so.2
7ffff6aec000-7ffff6aed000 rw-p 00008000 ca:01 651532                     /lib/x86_64-linux-gnu/libnss_sss.so.2
7ffff6aed000-7ffff6af8000 r-xp 00000000 ca:01 652680                     /lib/x86_64-linux-gnu/libnss_files-2.23.so
7ffff6af8000-7ffff6cf7000 ---p 0000b000 ca:01 652680                     /lib/x86_64-linux-gnu/libnss_files-2.23.so
7ffff6cf7000-7ffff6cf8000 r--p 0000a000 ca:01 652680                     /lib/x86_64-linux-gnu/libnss_files-2.23.so
7ffff6cf8000-7ffff6cf9000 rw-p 0000b000 ca:01 652680                     /lib/x86_64-linux-gnu/libnss_files-2.23.so
7ffff6cf9000-7ffff6cff000 rw-p 00000000 00:00 0 
7ffff6cff000-7ffff715b000 r--p 00000000 ca:01 134295                     /usr/lib/locale/locale-archive
7ffff715b000-7ffff715e000 r-xp 00000000 ca:01 652668                     /lib/x86_64-linux-gnu/libdl-2.23.so
7ffff715e000-7ffff735d000 ---p 00003000 ca:01 652668                     /lib/x86_64-linux-gnu/libdl-2.23.so
7ffff735d000-7ffff735e000 r--p 00002000 ca:01 652668                     /lib/x86_64-linux-gnu/libdl-2.23.so
7ffff735e000-7ffff735f000 rw-p 00003000 ca:01 652668                     /lib/x86_64-linux-gnu/libdl-2.23.so
7ffff735f000-7ffff757a000 r-xp 00000000 ca:01 651557                     /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7ffff757a000-7ffff7779000 ---p 0021b000 ca:01 651557                     /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7ffff7779000-7ffff7795000 r--p 0021a000 ca:01 651557                     /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7ffff7795000-7ffff77a1000 rw-p 00236000 ca:01 651557                     /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7ffff77a1000-7ffff77a4000 rw-p 00000000 00:00 0 
7ffff77a4000-7ffff7964000 r-xp 00000000 ca:01 652683                     /lib/x86_64-linux-gnu/libc-2.23.so
7ffff7964000-7ffff7b64000 ---p 001c0000 ca:01 652683                     /lib/x86_64-linux-gnu/libc-2.23.so
7ffff7b64000-7ffff7b68000 r--p 001c0000 ca:01 652683                     /lib/x86_64-linux-gnu/libc-2.23.so
7ffff7b68000-7ffff7b6a000 rw-p 001c4000 ca:01 652683                     /lib/x86_64-linux-gnu/libc-2.23.so
7ffff7b6a000-7ffff7b6e000 rw-p 00000000 00:00 0 
7ffff7b6e000-7ffff7bcc000 r-xp 00000000 ca:01 651645                     /lib/x86_64-linux-gnu/libssl.so.1.0.0
7ffff7bcc000-7ffff7dcc000 ---p 0005e000 ca:01 651645                     /lib/x86_64-linux-gnu/libssl.so.1.0.0
7ffff7dcc000-7ffff7dd0000 r--p 0005e000 ca:01 651645                     /lib/x86_64-linux-gnu/libssl.so.1.0.0
7ffff7dd0000-7ffff7dd7000 rw-p 00062000 ca:01 651645                     /lib/x86_64-linux-gnu/libssl.so.1.0.0
7ffff7dd7000-7ffff7dfd000 r-xp 00000000 ca:01 652669                     /lib/x86_64-linux-gnu/ld-2.23.so
7ffff7fd9000-7ffff7fde000 rw-p 00000000 00:00 0 
7ffff7ff7000-7ffff7ff8000 rw-p 00000000 00:00 0 
7ffff7ff8000-7ffff7ffa000 r--p 00000000 00:00 0                          [vvar]
7ffff7ffa000-7ffff7ffc000 r-xp 00000000 00:00 0                          [vdso]
7ffff7ffc000-7ffff7ffd000 r--p 00025000 ca:01 652669                     /lib/x86_64-linux-gnu/ld-2.23.so
7ffff7ffd000-7ffff7ffe000 rw-p 00026000 ca:01 652669                     /lib/x86_64-linux-gnu/ld-2.23.so
7ffff7ffe000-7ffff7fff000 rw-p 00000000 00:00 0 
7fffffe68000-7ffffffff000 rw-p 00000000 00:00 0                          [stack]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]

Program received signal SIGABRT, Aborted.
0x00007ffff77d9428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
54	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.

(gdb) where
#0  0x00007ffff77d9428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#1  0x00007ffff77db02a in __GI_abort () at abort.c:89
#2  0x00007ffff781b7ea in __libc_message (do_abort=do_abort@entry=2, fmt=fmt@entry=0x7ffff793349f "*** %s ***: %s terminated\n") at 
../sysdeps/posix/libc_fatal.c:175
#3  0x00007ffff78bd15c in __GI___fortify_fail (msg=<optimized out>, msg@entry=0x7ffff7933430 "buffer overflow detected") at fortify_fail.c:37
#4  0x00007ffff78bb160 in __GI___chk_fail () at chk_fail.c:28
#5  0x00007ffff78ba6c9 in _IO_str_chk_overflow (fp=<optimized out>, c=<optimized out>) at vsprintf_chk.c:31
#6  0x00007ffff781f6b0 in __GI__IO_default_xsputn (f=0x7ffffff36d90, data=<optimized out>, n=1499) at genops.c:455
#7  0x00007ffff77f250b in _IO_vfprintf_internal (s=s@entry=0x7ffffff36d90, format=<optimized out>, format@entry=0x4b66bf "Style %s %s", 
ap=ap@entry=0x7ffffff36ec8) at vfprintf.c:1632
#8  0x00007ffff78ba754 in ___vsprintf_chk (
    s=0x7ffffff376a0 "Style Subject Lorem ipsum dolor sit amet, ut solum conceptam dissentiet per, affert argumentum te pro. Dicta tractatos 
intellegebat an ius. Mei munere soleat voluptatum cu, at vidit scriptorem consect"..., flags=1, slen=1500, format=0x4b66bf "Style %s %s", 
args=args@entry=0x7ffffff36ec8) at vsprintf_chk.c:82
#9  0x00007ffff78ba6ad in ___sprintf_chk (s=<optimized out>, flags=<optimized out>, slen=<optimized out>, format=<optimized out>) at sprintf_chk.c:31
#10 0x000000000044c86a in display_line ()
#11 0x00000000004799e0 in show_elog_list ()
#12 0x0000000000496018 in interprete ()
#13 0x00000000004962a6 in decode_get ()
#14 0x000000000049864e in process_http_request ()
#15 0x000000000049b1f8 in server_loop ()
#16 0x00000000004038c7 in main ()
                icon2.gif   ... subject erased ..., posted by Stefan Ritt on Thu Apr 16 11:03:03 2020 
I found two potential memory leaks which I fixed in the git version, so you can try again.

Another possibility, which is actually preferred, is to limit the size of the subject filed to a reasonable number. You can do that with following option

Format subject = 0, attribname, attribvalue, 80, 200

This shows the subject line with a width of 80 characters, but does only allow 200 characters to be entered there.

Best,
Stefan
                   icon2.gif   ... subject erased ..., posted by Stefano Lacaprara on Thu Apr 16 11:12:32 2020 
> I found two potential memory leaks which I fixed in the git version, so you can try again.

Just tested, and it works! Many thanks for very quick patch!

> 
> Another possibility, which is actually preferred, is to limit the size of the subject filed to a reasonable number. You can do that with following 
option
> 
> Format subject = 0, attribname, attribvalue, 80, 200

Yes, that is a good suggestion, I'll implemented it.

Many thanks again!

Best,
  Stefano

> 
> This shows the subject line with a width of 80 characters, but does only allow 200 characters to be entered there.
> 
> Best,
> Stefan
icon5.gif   CSS for HTML Mails, posted by Daniel Pfuhl on Wed Jan 22 16:10:51 2020 

Hi there,

we extensively use Logbuch as a change documentation platform.

E-Mail notifications for new entries are very important for us.

Since we store sensible data in our logbooks the server is protected by a firewall.

After the firewall was activated the HTML mails are not rendered by the Outlook Mail clients we use - when they are located in an "external" net behind the firewall. I assume that's because of the css stylesheet which is linked in the source code of the HTML mail.

Is there any chance to include the CSS information in the HTML code? Otherwise we would need to make the CSS accessable from anywhere which requires in turn that the path of the CSS file can be customized.

Any idea how to solved this issue?

Best regards,

daniel

    icon2.gif   Re: CSS for HTML Mails, posted by Stefan Ritt on Wed Jan 22 16:35:47 2020 

The CSS has been embedded in the email end of 2018, so just upgrade your server.

https://bitbucket.org/ritt/elog/commits/5165daf35cc1fb066071827719079fe0c9aa5ffb

/Stefan

Daniel Pfuhl wrote:

Hi there,

we extensively use Logbuch as a change documentation platform.

E-Mail notifications for new entries are very important for us.

Since we store sensible data in our logbooks the server is protected by a firewall.

After the firewall was activated the HTML mails are not rendered by the Outlook Mail clients we use - when they are located in an "external" net behind the firewall. I assume that's because of the css stylesheet which is linked in the source code of the HTML mail.

Is there any chance to include the CSS information in the HTML code? Otherwise we would need to make the CSS accessable from anywhere which requires in turn that the path of the CSS file can be customized.

Any idea how to solved this issue?

Best regards,

daniel

 

       icon2.gif   Re: CSS for HTML Mails, posted by Daniel Pfuhl on Wed Jan 22 17:32:39 2020 

Hmm, I'm pretty sure that we are on the latest version already.

We use ELOG V3.1.4-a04faf9f

I downloaded a fresh install binary for Windows and compared the checksums:

SHA256: 0A98485134E0D43959CB6734F977B02DC9FA884D6994CE3BA141664451FDA5E5
SHA256: 0A98485134E0D43959CB6734F977B02DC9FA884D6994CE3BA141664451FDA5E5

same same.

Or do I have to change to config in order to include the CSS in the HTML?

regards,

 

daniel

 

Stefan Ritt wrote:

The CSS has been embedded in the email end of 2018, so just upgrade your server.

https://bitbucket.org/ritt/elog/commits/5165daf35cc1fb066071827719079fe0c9aa5ffb

/Stefan

Daniel Pfuhl wrote:

Hi there,

we extensively use Logbuch as a change documentation platform.

E-Mail notifications for new entries are very important for us.

Since we store sensible data in our logbooks the server is protected by a firewall.

After the firewall was activated the HTML mails are not rendered by the Outlook Mail clients we use - when they are located in an "external" net behind the firewall. I assume that's because of the css stylesheet which is linked in the source code of the HTML mail.

Is there any chance to include the CSS information in the HTML code? Otherwise we would need to make the CSS accessable from anywhere which requires in turn that the path of the CSS file can be customized.

Any idea how to solved this issue?

Best regards,

daniel

 

 

          icon2.gif   Re: CSS for HTML Mails, posted by Stefan Ritt on Wed Jan 22 19:30:41 2020 

a04faf9f is pretty old: https://bitbucket.org/ritt/elog/commits/a04faf9fa9ca74657240cdc827bd2d0ae48a9df1

It's from September 2018, where the change with the CSS has been made on Decemb er 2018. You have to pull the current version from the git repository and recompile the program yourself.

/Stefan

Daniel Pfuhl wrote:

Hmm, I'm pretty sure that we are on the latest version already.

We use ELOG V3.1.4-a04faf9f

I downloaded a fresh install binary for Windows and compared the checksums:

SHA256: 0A98485134E0D43959CB6734F977B02DC9FA884D6994CE3BA141664451FDA5E5
SHA256: 0A98485134E0D43959CB6734F977B02DC9FA884D6994CE3BA141664451FDA5E5

same same.

Or do I have to change to config in order to include the CSS in the HTML?

regards,

 

daniel

 

Stefan Ritt wrote:

The CSS has been embedded in the email end of 2018, so just upgrade your server.

https://bitbucket.org/ritt/elog/commits/5165daf35cc1fb066071827719079fe0c9aa5ffb

/Stefan

Daniel Pfuhl wrote:

Hi there,

we extensively use Logbuch as a change documentation platform.

E-Mail notifications for new entries are very important for us.

Since we store sensible data in our logbooks the server is protected by a firewall.

After the firewall was activated the HTML mails are not rendered by the Outlook Mail clients we use - when they are located in an "external" net behind the firewall. I assume that's because of the css stylesheet which is linked in the source code of the HTML mail.

Is there any chance to include the CSS information in the HTML code? Otherwise we would need to make the CSS accessable from anywhere which requires in turn that the path of the CSS file can be customized.

Any idea how to solved this issue?

Best regards,

daniel

 

 

 

             icon2.gif   Re: CSS for HTML Mails, posted by Daniel Pfuhl on Tue Apr 21 09:13:45 2020 

Hi Stefan,

I pulled the code from the repository but was not able to build it.

Sorry, I'm not a developer. Is there a good documentation you can recommend on how to do this for a Windows installation incl. how to setup a build environment?

No chance to get a more recent Windows version already precompiled? ^^

Regards,

daniel

 

Stefan Ritt wrote:

a04faf9f is pretty old: https://bitbucket.org/ritt/elog/commits/a04faf9fa9ca74657240cdc827bd2d0ae48a9df1

It's from September 2018, where the change with the CSS has been made on Decemb er 2018. You have to pull the current version from the git repository and recompile the program yourself.

/Stefan

Daniel Pfuhl wrote:

Hmm, I'm pretty sure that we are on the latest version already.

We use ELOG V3.1.4-a04faf9f

I downloaded a fresh install binary for Windows and compared the checksums:

SHA256: 0A98485134E0D43959CB6734F977B02DC9FA884D6994CE3BA141664451FDA5E5
SHA256: 0A98485134E0D43959CB6734F977B02DC9FA884D6994CE3BA141664451FDA5E5

same same.

Or do I have to change to config in order to include the CSS in the HTML?

regards,

 

daniel

 

Stefan Ritt wrote:

The CSS has been embedded in the email end of 2018, so just upgrade your server.

https://bitbucket.org/ritt/elog/commits/5165daf35cc1fb066071827719079fe0c9aa5ffb

/Stefan

Daniel Pfuhl wrote:

Hi there,

we extensively use Logbuch as a change documentation platform.

E-Mail notifications for new entries are very important for us.

Since we store sensible data in our logbooks the server is protected by a firewall.

After the firewall was activated the HTML mails are not rendered by the Outlook Mail clients we use - when they are located in an "external" net behind the firewall. I assume that's because of the css stylesheet which is linked in the source code of the HTML mail.

Is there any chance to include the CSS information in the HTML code? Otherwise we would need to make the CSS accessable from anywhere which requires in turn that the path of the CSS file can be customized.

Any idea how to solved this issue?

Best regards,

daniel

 

 

 

 

icon2.gif   How to prevent file path leaks on a 404 page, posted by Rich Loring on Tue May 12 15:47:33 2020 

Hello,

We used the Elog RPM binary installation method to install Elog. Our security scanners are complaining that Elog discloses the version information when you hit a missing page (404 error).  How can I hide this version info? Is there a snippet of code somewhere that I can comment out?

Any help is appreciated.

-Rich

icon5.gif   email notification for self register 2 3 and 4, posted by pierre brionnet on Mon Jun 8 07:30:06 2020 

Hi,

I have set up my elog for testing and setup postfix to be able to send email notification for register of new user but whatever i try elog cannot set email. I try to sent test email in my bash and this is working without problem to my gmail account.

I have tried several configuration for my smtp client on my centos 7 but nothing is working in elog for the email. I also tried with several other email but no change either.

Is there a problem with the automatic sending of email ? 

 

 

Best

Pierre

    icon2.gif   Re: email notification for self register 2 3 and 4, posted by Stefan Ritt on Mon Jun 8 08:11:33 2020 

Why don't you start elogd interactively with the "-v" flag (verbose) and watch the communication between elog and postfix. Maybe you see a specific error there.

Stefan

pierre brionnet wrote:

Hi,

I have set up my elog for testing and setup postfix to be able to send email notification for register of new user but whatever i try elog cannot set email. I try to sent test email in my bash and this is working without problem to my gmail account.

I have tried several configuration for my smtp client on my centos 7 but nothing is working in elog for the email. I also tried with several other email but no change either.

Is there a problem with the automatic sending of email ? 

 

 

Best

Pierre

 

       icon2.gif   Re: email notification for self register 2 3 and 4, posted by pierre brionnet on Mon Jun 8 08:29:16 2020 

Hi Stefan, I did run in verbose mode but only got this output with the 587 SMTP port from gmail

Email from <ELog@localhost.localdomain> to XXXX@gmail.com, SMTP host smtp.gmail.com:
220 smtp.gmail.com ESMTP n1sm6153685pfd.156 - gsmtp
EHLO localhost.localdomain
250-smtp.gmail.com at your service, [134.160.38.27]
250-SIZE 35882577
250-8BITMIME
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-CHUNKING
250 SMTPUTF8
AUTH LOGIN
530 5.7.0 Must issue a STARTTLS command first. n1sm6153685pfd.156 - gsmtp

However the mail command in my bash is working juste fine

 

Pierre

 

Stefan Ritt wrote:

Why don't you start elogd interactively with the "-v" flag (verbose) and watch the communication between elog and postfix. Maybe you see a specific error there.

Stefan

pierre brionnet wrote:

Hi,

I have set up my elog for testing and setup postfix to be able to send email notification for register of new user but whatever i try elog cannot set email. I try to sent test email in my bash and this is working without problem to my gmail account.

I have tried several configuration for my smtp client on my centos 7 but nothing is working in elog for the email. I also tried with several other email but no change either.

Is there a problem with the automatic sending of email ? 

 

 

Best

Pierre

 

 

          icon2.gif   Re: email notification for self register 2 3 and 4, posted by Stefan Ritt on Mon Jun 8 09:12:27 2020 

STARTTLS is not supported natively by elog. You have to disable this in your SMTP server.

Stefan

pierre brionnet wrote:

Hi Stefan, I did run in verbose mode but only got this output with the 587 SMTP port from gmail

Email from <ELog@localhost.localdomain> to XXXX@gmail.com, SMTP host smtp.gmail.com:
220 smtp.gmail.com ESMTP n1sm6153685pfd.156 - gsmtp
EHLO localhost.localdomain
250-smtp.gmail.com at your service, [134.160.38.27]
250-SIZE 35882577
250-8BITMIME
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-CHUNKING
250 SMTPUTF8
AUTH LOGIN
530 5.7.0 Must issue a STARTTLS command first. n1sm6153685pfd.156 - gsmtp

However the mail command in my bash is working juste fine

 

Pierre

 

Stefan Ritt wrote:

Why don't you start elogd interactively with the "-v" flag (verbose) and watch the communication between elog and postfix. Maybe you see a specific error there.

Stefan

pierre brionnet wrote:

Hi,

I have set up my elog for testing and setup postfix to be able to send email notification for register of new user but whatever i try elog cannot set email. I try to sent test email in my bash and this is working without problem to my gmail account.

I have tried several configuration for my smtp client on my centos 7 but nothing is working in elog for the email. I also tried with several other email but no change either.

Is there a problem with the automatic sending of email ? 

 

 

Best

Pierre

 

 

 

ELOG V3.1.5-2eba886