ID |
Date |
Icon |
Author |
Author Email |
Category |
OS |
ELOG Version |
Subject |
66372
|
Thu Jun 4 14:44:11 2009 |
| Stefan Ritt | stefan.ritt@psi.ch | Question | Linux | 2.7.5-2130 | Re: help with substituting subjects |
Alexander Withers wrote: |
I am trying to add additional information to the subject of new entries:
Subst subject = $subject [INCIDENT $message id]
Subst on reply subject = Re: $subject
Fixed Attributes Reply = Subject
However, the new entry subject looks like:
this is my subject [INCIDENT this is my subject [INCIDENT $message id]
I'm not sure if there's a problem with the substitution or if this is just not allowed (I'm having LISP flashbacks).
By the way, if I use "Subst on reply subject" I get the behavior I would like but the original entry in the thread doesn't contain the appended data:
Subst on reply subject = Re: $subject [INCIDENT $message id]
Any help would be appreciated.
Alex
|
The problem here is that the subsitution is executed before the entry is committed to the database. The message ID is assigned however only in the commit. So at the time of the substitution, the $message id is not available. When you do the reply however, the message id is valid and subsituted correctly. I see at this moment no clever solution for your problem (maybe "Subst on edit", but then you have to edit/submit each message manually once). |
630
|
Wed Jul 28 21:54:36 2004 |
| Stefan Ritt | stefan.ritt@psi.ch | Bug report | All | 2.5.4? | Re: getcfg problem in v1.410: Truncation of long config strings | > Just compiled 1.410 and have run into an issue that *may* have been
> introduced in 1.393.
>
> Config file directives such as "Welcome title" could be very long strings.
> After compiling 1.410, our "Welcome title" is truncated and, while I haven't
> counted the actual chars, I suspect that the truncation happens at 1024
> characters. The procedure 'getcfg' has a declared passed paramater "int
> vsize".
Actually before 1.393 you got a buffer overflow if any string in the
configuration file was longer than 500 chars, so it's a miracle that your elogd
did not crash on the long Welcome Title. I added the "vsize" parameter to avoid
such crashes. To satisfy your need for a long Welcome title, I increased the
string size for that particular case to 10000 chars. Hope this is enough. |
631
|
Wed Jul 28 22:07:31 2004 |
| Steve Jones | steve.jones@freescale.com | Bug report | All | 2.5.4? | Re: getcfg problem in v1.410: Truncation of long config strings | > > Just compiled 1.410 and have run into an issue that *may* have been
> > introduced in 1.393.
> >
> > Config file directives such as "Welcome title" could be very long strings.
> > After compiling 1.410, our "Welcome title" is truncated and, while I haven't
> > counted the actual chars, I suspect that the truncation happens at 1024
> > characters. The procedure 'getcfg' has a declared passed paramater "int
> > vsize".
>
> Actually before 1.393 you got a buffer overflow if any string in the
> configuration file was longer than 500 chars, so it's a miracle that your elogd
> did not crash on the long Welcome Title. I added the "vsize" parameter to avoid
> such crashes. To satisfy your need for a long Welcome title, I increased the
> string size for that particular case to 10000 chars. Hope this is enough.
Hmmm, it is a wonder. Our welcome text was not significantly longer (about 20
chars longer) so perhaps . . . ?
Thanks, will recompile and report back. |
66189
|
Wed Feb 4 18:46:58 2009 |
| Edmundo T Rodriguez | edrodrig@chpnet.org | Request | Linux | 2.7.5 | Re: frequent crashes on SL4 | > ------
>
> I plan on letting elogd create a core dump, but so far I haven't managed to change its cwd to a directory
elog can write to.
>
> Please let me know if there is any other information I can provide. Any suggestions would be greatly
appreciated.
>
> Many thanks,
> Devin
There are other debugers ...
Whay don't you give them a try?
example: Install "strace" (if you don't have it) and do something like ...
strace gdb /usr/local/sbin/elogd 6162 -debug 2>debug.out
Also there is "ltrace", etc. |
66190
|
Wed Feb 4 19:34:35 2009 |
| Stefan Ritt | stefan.ritt@psi.ch | Request | Linux | 2.7.5 | Re: frequent crashes on SL4 | > Hi, All. Ever since upgrading from an old ELOG release on an aging windows machine to the latest version on Scientific Linux 4 (RHEL4), and
> greatly increasing its use, we have seen frequent crashes of elogd. This has become very disruptive to operations, and any help would be greatly
> appreciated. We are using Apache (running on the same machine as elogd) to secure ELOG using https as per the Administrator's Guide.
Just follow
https://midas.psi.ch/elog/faq.html#19
Crashes with attached images are getting reported more and more these days, but so far I was not able to reproduce it. Maybe it's related to ImageMagic
somehow, in which case disabling this feature might give some insight. To do so, you have to modify elogd.c and recompile. Change
/* check for ImageMagick */
my_shell("convert -version", str, sizeof(str));
image_magick_exist = (strstr(str, "ImageMagick") != NULL);
to
/* check for ImageMagick */
image_magick_exist = 0; |
66191
|
Wed Feb 4 21:41:46 2009 |
| Devin Bougie | dab66@cornell.edu | Request | Linux | 2.7.5 | Re: frequent crashes on SL4 | Hi Stefan,
> Just follow
> https://midas.psi.ch/elog/faq.html#19
That's what I attempted to do, but the need to restart ELOG before I could get to the gdb console prevented us from obtaining a stack trace. I am now setting up a test ELOG server where we will continue
trying to reproduce our crashes and obtain a stack trace.
> Crashes with attached images are getting reported more and more these days, but so far I was not able to reproduce it. Maybe it's related to ImageMagic
> somehow, in which case disabling this feature might give some insight. To do so, you have to modify elogd.c and recompile. Change
>
> /* check for ImageMagick */
> my_shell("convert -version", str, sizeof(str));
> image_magick_exist = (strstr(str, "ImageMagick") != NULL);
>
>
> to
>
> /* check for ImageMagick */
> image_magick_exist = 0;
This has now been done and installed on our production server. I will let you know if we have any more crashes with ImageMagick disabled.
Many thanks,
Devin |
66197
|
Fri Feb 6 23:43:47 2009 |
| Devin Bougie | dab66@lepp.cornell.edu | Request | Linux | 2.7.5 | Re: frequent crashes on SL4 | Hi Stefan,
The bad news is that elogd is still crashing even after disabling Image Magick. The good news is that this time it was reproducible and I did obtain a
stack trace using gdb. In this instance, a user was attempting to edit an entry he had just successfully posted. In the crash shown below, he just Clicked
on "Edit" to edit the entry and then "Submit" without changing any text. In the previous crash (that I don't have a stack trace for), he did actually try
to update the text of the entry.
Please let me know if there is any more information I can provide.
Many thanks,
Devin
------
[root@lnx248 ~]# gdb /usr/local/sbin/elogd 18720
GNU gdb Red Hat Linux (6.3.0.0-1.143.el4rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...(no debugging symbols found)
Using host libthread_db library "/lib/tls/libthread_db.so.1".
Attaching to program: /usr/local/sbin/elogd, process 18720
Reading symbols from /lib/libssl.so.4...(no debugging symbols found)...done.
Loaded symbols for /lib/libssl.so.4
Reading symbols from /lib/tls/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /usr/lib/libgssapi_krb5.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgssapi_krb5.so.2
Reading symbols from /usr/lib/libkrb5.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libkrb5.so.3
Reading symbols from /lib/libcom_err.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libcom_err.so.2
Reading symbols from /usr/lib/libk5crypto.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libk5crypto.so.3
Reading symbols from /lib/libresolv.so.2...
(no debugging symbols found)...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /lib/libcrypto.so.4...(no debugging symbols found)...done.
Loaded symbols for /lib/libcrypto.so.4
Reading symbols from /lib/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /usr/lib/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libnss_files.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /lib/libnss_nis.so.2...
(no debugging symbols found)...done.
Loaded symbols for /lib/libnss_nis.so.2
Reading symbols from /lib/libnsl.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libnsl.so.1
0x007ef7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
(gdb) c
Continuing.
Program received signal SIGSEGV, Segmentation fault.
0x0087663b in strlen () from /lib/tls/libc.so.6
(gdb) where
#0 0x0087663b in strlen () from /lib/tls/libc.so.6
#1 0x0804a4de in strieq ()
#2 0x636f6c2f in ?? ()
#3 0x00000012 in ?? ()
#4 0x00000003 in ?? ()
#5 0x62676f6c in ?? ()
#6 0x736b6f6f in ?? ()
#7 0xbff0a870 in ?? ()
#8 0x08051ddd in getcfg ()
#9 0xbff87340 in ?? ()
#10 0xbff87340 in ?? ()
#11 0x08051cfc in getcfg ()
#12 0x080c8e3a in __PRETTY_FUNCTION__.2 ()
#13 0xbff84100 in ?? ()
#14 0x00002710 in ?? ()
#15 0x00000000 in ?? ()
(gdb) bt
#0 0x0087663b in strlen () from /lib/tls/libc.so.6
#1 0x0804a4de in strieq ()
#2 0x636f6c2f in ?? ()
#3 0x00000012 in ?? ()
#4 0x00000003 in ?? ()
#5 0x62676f6c in ?? ()
#6 0x736b6f6f in ?? ()
#7 0xbff0a870 in ?? ()
#8 0x08051ddd in getcfg ()
#9 0xbff87340 in ?? ()
#10 0xbff87340 in ?? ()
#11 0x08051cfc in getcfg ()
#12 0x080c8e3a in __PRETTY_FUNCTION__.2 ()
#13 0xbff84100 in ?? ()
#14 0x00002710 in ?? ()
#15 0x00000000 in ?? ()
(gdb) quit
The program is running. Quit anyway (and detach it)? (y or n) y
Detaching from program: /usr/local/sbin/elogd, process 18720 |
66198
|
Sat Feb 7 01:47:07 2009 |
| Devin Bougie | dab66@lepp.cornell.edu | Request | Linux | 2.7.5 | Re: frequent crashes on SL4 | > The bad news is that elogd is still crashing even after disabling Image Magick. The good news is that this time it was reproducible and I did obtain a
> stack trace using gdb.
The seg fault reported above seems to be related to a specific elog entry combined with sending email notifications. When trying to submit changes to that entry while sending email notifications, elogd seg faults. We can edit the entry before it and create and edit a new entry after
it. Trying to edit that one entry and send notifications, however, reliably crashes elogd. If I check "supress email notification", elogd does not seem to crash. I have replicated this on separate elog servers running both SL4 and on SL5. To compare with SL4, here is the trace I see on SL5 (Scientific Linux 5).
Once I receive the OK, I will send you the actual file that stores the problematic entry. Please let me know if there is anything else I can send you.
Many thanks,
Devin
------
[root@lnx767 ~]# gdb /usr/local/sbin/elogd 13328
GNU gdb Red Hat Linux (6.5-37.el5_2.2rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
Attaching to program: /usr/local/sbin/elogd, process 13328
Reading symbols from /lib/libssl.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libssl.so.6
Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /usr/lib/libgssapi_krb5.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgssapi_krb5.so.2
Reading symbols from /usr/lib/libkrb5.so.3...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libkrb5.so.3
Reading symbols from /lib/libcom_err.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libcom_err.so.2
Reading symbols from /usr/lib/libk5crypto.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libk5crypto.so.3
Reading symbols from /lib/libresolv.so.2...
(no debugging symbols found)...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /lib/libcrypto.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libcrypto.so.6
Reading symbols from /lib/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /usr/lib/libz.so.1...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/lib/libkrb5support.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libkrb5support.so.0
Reading symbols from /lib/libkeyutils.so.1...
(no debugging symbols found)...done.
Loaded symbols for /lib/libkeyutils.so.1
Reading symbols from /lib/libselinux.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libselinux.so.1
Reading symbols from /lib/libsepol.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libsepol.so.1
Reading symbols from /lib/libnss_files.so.2...
(no debugging symbols found)...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /lib/libnss_nis.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libnss_nis.so.2
Reading symbols from /lib/libnsl.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libnsl.so.1
(no debugging symbols found)
0x008db402 in __kernel_vsyscall ()
(gdb) c
Continuing.
(no debugging symbols found)
Program received signal SIGSEGV, Segmentation fault.
0x0804a125 in strieq ()
(gdb) where
#0 0x0804a125 in strieq ()
#1 0x73207365 in ?? ()
#2 0x00000000 in ?? () |
|