condor_userlog core dumps reading files not rw available to user. This can mean for files with the default log file mask "-rw-rw-r--". really two problems: 1) can't open a file read-only 2) coredumps when it can't repro is simply run condor_userlog on a log file that is read only for you. It will core. What should happen is - not core for any reason - if it's readable, then output the log Adding a patch for this
Created attachment 438452 [details] patch for userlog problem
$ condor_version $CondorVersion: 7.4.4 Aug 9 2010 BuildID: RH-7.4.4-0.9.el5 PRE-RELEASE $ $CondorPlatform: X86_64-LINUX_F13 $ $ touch log $ condor_userlog log Host/Job Wall Time Good Time CPU Usage Avg Alloc Avg Lost Goodput Util. Total 0+00:00 0+00:00 0+00:00 0+00:00 0+00:00 0.0% 0.0% $ chmod a-w log $ condor_userlog log zsh: segmentation fault (core dumped) condor_userlog log
Headed upstream as... commit 7dd4c31a9e6c34c2f4334ad8aa6f458693882d09 Author: Jon Thomas <jthomas@redhat> Date: Mon Aug 23 11:44:05 2010 -0400 Fixed core dump in condor_userlog when trying to read from a user event log that is not writable
Built in 7.4.4-0.10
Tested with condor-7.4.4-0.9 on RHEL 4.8/5.5 x i386/x86_64 and there are coredumps on RHEL 5.5 and it hold on RHEL 4.8. Retested with condor-7.4.4-0.10 on RHEL 4.8/5.5 x i386/x86_64 and it works. --> VERIFIED
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: The 'condor_userlog' returned a segmentation fault when having read files with no 'rw' priviliges available for a user. With this update, the segmentation fault no longer occurs when trying to read from a user event log that is not writable.
Technical note updated. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. Diffed Contents: @@ -1 +1 @@ -The 'condor_userlog' returned a segmentation fault when having read files with no 'rw' priviliges available for a user. With this update, the segmentation fault no longer occurs when trying to read from a user event log that is not writable.+The 'condor_userlog' returned a segmentation fault when having read files with no 'rw' permissions available for a user. With this update, the segmentation fault no longer occurs when trying to read from a user event log that is not writable.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2010-0773.html