Custom Query (431 matches)
Results (106 - 108 of 431)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#395 | fixed | IZ2173: Exported bash functions causes erroneous "environment" file | paulu | |
Description |
[Imported from gridengine issuezilla http://gridengine.sunsource.net/issues/show_bug.cgi?id=2173] Issue #: 2173 Platform: PC Reporter: paulu (paulu) Component: gridengine OS: Linux Subcomponent: execution Version: 6.0u8 CC: [_] craffi [_] reuti [_] Remove selected CCs Status: NEW Priority: P3 Resolution: Issue type: DEFECT Target milestone: --- Assigned to: pollinger (pollinger) QA Contact: pollinger URL: * Summary: Exported bash functions causes erroneous "environment" file Status whiteboard: Attachments: Issue 2173 blocks: Votes for issue 2173: 16 Opened: Wed Jan 24 14:11:00 -0700 2007 ------------------------ Using the -V option of qrsh/qsub, the environment file created in the spool directory is corrupt. Only one line of each exported bash function is present in file "environment". This causes errors when a job is executed via qrsh/qsub. Steps to reproduce observed behaviour: - login shell is /bin/bash - shell_start_mode set to unix_behavior (may be irrelevant) - define a function and export it: % blaah () { echo "blah blah"; } % declare -fx blaah - submit job and see the errors: % qrsh uname -n bash: blaah: line 1: syntax error: unexpected end of file bash: error importing function definition for `blaah' bash: blaah: line 1: syntax error: unexpected end of file bash: error importing function definition for `blaah' some_host_name The command is executed alright. The errors are not fatal ------- Additional comments from reuti Thu Jan 25 08:51:33 -0700 2007 ------- added myself to cc ------- Additional comments from craffi Wed Jan 6 14:41:28 -0700 2010 ------- I'd like to tickle this bug to see if there is any way to get it resolved or perhaps we can increase it's priority? I've got a client on SGE 6.2u4 using the popular 'modules' program to organize scientific applications and this issue is negatively affecting users who see the awkward bash errors in their job output files. Hopefully an easy fix, if you disable deletion of the temporary job directory and look directly at the 'environment' file in the job context you see that SGE is basically truncating the trailing "}" character of a function definition statement. ------- Additional comments from reuti Wed Jan 6 14:58:10 -0700 2010 ------- The question is: how is SGE reading the environment file? Line by line and export each of the found entries? Then this behavior needs to be changed and lines concatenated for the function. At least inside bash you need also `export -f <name>` to export a function. It seems not to be possible in one step like it can be done with other environment variables. ------- Additional comments from fx Thu Jan 14 06:21:52 -0700 2010 ------- This seems to have been partly addressed by the currently-latest change to sge_var.c, but that looks wrong to me. `var_list_dump_to_file' converts newlines to "\n", but it should also double backslashes beforehand, and doesn't. However, `getenv_and_set' just discards newlines rather than undoing the conversion to \n. |
|||
#396 | fixed | IZ2175: Various compile warnings on Fedora Core 6 | opoplawski | |
Description |
[Imported from gridengine issuezilla http://gridengine.sunsource.net/issues/show_bug.cgi?id=2175] Issue #: 2175 Platform: PC Reporter: opoplawski (opoplawski) Component: gridengine OS: Linux Subcomponent: build Version: 6.1preview1 CC: None defined Status: NEW Priority: P3 Resolution: Issue type: DEFECT Target milestone: --- Assigned to: andreas (andreas) QA Contact: andreas URL: * Summary: Various compile warnings on Fedora Core 6 Status whiteboard: Attachments: Issue 2175 blocks: Votes for issue 2175: Opened: Fri Jan 26 16:02:00 -0700 2007 ------------------------ When compiling on FC6: ../pr.c: In function 'pr': ../pr.c:67: warning: ignoring return value of 'fwrite', declared with attribute warn_unus ed_result ../libs/uti/sge_edit.c: In function 'sge_edit': ../libs/uti/sge_edit.c:67: warning: ignoring return value of 'chown', declared with attri bute warn_unused_result ../libs/uti/sge_log.c: In function 'sge_do_log': ../libs/uti/sge_log.c:584: warning: ignoring return value of 'write', declared with attri bute warn_unused_result ../libs/uti/sge_os.c: In function 'sge_daemonize_finalize': ../libs/uti/sge_os.c:517: warning: ignoring return value of 'write', declared with attrib ute warn_unused_result ../libs/uti/sge_stdio.c: In function 'sge_peopen': ../libs/uti/sge_stdio.c:183: warning: ignoring return value of 'write', declared with att ribute warn_unused_result ../libs/uti/sge_stdio.c:189: warning: ignoring return value of 'dup', declared with attri bute warn_unused_result ../libs/uti/sge_stdio.c:196: warning: ignoring return value of 'dup', declared with attri bute warn_unused_result ../libs/uti/sge_stdio.c:202: warning: ignoring return value of 'dup', declared with attri bute warn_unused_result ../libs/uti/sge_stdio.c:203: warning: ignoring return value of 'dup', declared with attri bute warn_unused_result ../libs/uti/sge_stdio.c:213: warning: ignoring return value of 'write', declared with att ribute warn_unused_result ../libs/uti/sge_stdio.c:223: warning: ignoring return value of 'write', declared with att ribute warn_unused_result ../libs/uti/sge_stdio.c:227: warning: ignoring return value of 'write', declared with att ribute warn_unused_result ../libs/uti/sge_stdio.c:239: warning: ignoring return value of 'write', declared with att ribute warn_unused_result ../libs/uti/sge_stdio.c:248: warning: ignoring return value of 'write', declared with att ribute warn_unused_result ../libs/uti/sge_stdio.c:272: warning: ignoring return value of 'write', declared with att ribute warn_unused_result ../libs/uti/sge_string.c: In function 'sge_str_is_number': ../libs/uti/sge_string.c:1383: warning: ignoring return value of 'strtod', declared with attribute warn_unused_result ../libs/spool/flatfile/sge_spooling_flatfile_scanner.c: In function 'spool_lex': ../libs/spool/flatfile/sge_spooling_flatfile_scanner.l:277: warning: ignoring return valu e of 'fwrite', declared with attribute warn_unused_result ../common/parse_job_cull.c: In function 'reroot_path': ../common/parse_job_cull.c:1048: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result ../libs/japi/test_drmaa.c: In function 'test': ../libs/japi/test_drmaa.c:2086: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result ../libs/japi/test_drmaa.c:3023: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result ../libs/japi/test_drmaa.c:3107: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result ../libs/japi/test_drmaa.c:3261: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result ../libs/japi/test_drmaa.c:3268: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result ../libs/japi/test_drmaa.c:3920: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result ../libs/japi/compile.c: In function 'main': ../libs/japi/compile.c:309: warning: ignoring return value of 'system', declared with att ribute warn_unused_result ../daemons/common/err_trace.c: In function 'shepherd_trace_init_intern': ../daemons/common/err_trace.c:777: warning: ignoring return value of 'getcwd', declared w ith attribute warn_unused_result ../daemons/common/startprog.c: In function 'startprog': ../daemons/common/startprog.c:143: warning: ignoring return value of 'dup', declared with attribute warn_unused_result ../daemons/common/startprog.c:147: warning: ignoring return value of 'dup', declared with attribute warn_unused_result ../daemons/execd/reaper_execd.c: In function 'read_dusage': ../daemons/execd/reaper_execd.c:1475: warning: ignoring return value of 'fscanf', declare d with attribute warn_unused_result ../daemons/execd/tmpdir.c: In function 'sge_make_tmpdir': ../daemons/execd/tmpdir.c:76: warning: ignoring return value of 'chown', declared with at tribute warn_unused_result admin_mail.o: In function `adm_mail_reset': /builddir/build/BUILD/gridengine/source/LINUX86_26/../daemons/common/admin_mail.c:332: wa rning: memset used with constant zero length parameter; this could be due to transposed p arameters ../daemons/schedd/sge_share_mon.c: In function 'main': ../daemons/schedd/sge_share_mon.c:377: warning: ignoring return value of 'fwrite', declar ed with attribute warn_unused_result ../daemons/shepherd/shepherd.c: In function 'map_signal': ../daemons/shepherd/shepherd.c:191: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result ../daemons/shepherd/shepherd.c: In function 'notify_tasker': ../daemons/shepherd/shepherd.c:2459: warning: ignoring return value of 'chown', declared with attribute warn_unused_result ../clients/qalter/qalter.c: In function 'qalter_parse_job_parameter': ../clients/qalter/qalter.c:334: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result ../clients/qrsh/qrsh_starter.c: In function 'qrsh_error': ../clients/qrsh/qrsh_starter.c:127: warning: ignoring return value of 'write', declared w ith attribute warn_unused_result ../clients/qrsh/qrsh_starter.c: In function 'write_pid_file': ../clients/qrsh/qrsh_starter.c:400: warning: ignoring return value of 'write', declared w ith attribute warn_unused_result ../clients/qrsh/qrsh_starter.c: In function 'writeExitCode': ../clients/qrsh/qrsh_starter.c:796: warning: ignoring return value of 'write', declared w ith attribute warn_unused_result ../clients/qsh/parse_job_qsh.c: In function 'cull_parse_qsh_parameter': ../clients/qsh/parse_job_qsh.c:213: warning: ignoring return value of 'chdir', declared w ith attribute warn_unused_result ../libs/uti/sge_stdio.c: In function 'sge_peopen': ../libs/uti/sge_stdio.c:183: warning: ignoring return value of 'write', declared with att ribute warn_unused_result ../libs/uti/sge_stdio.c:189: warning: ignoring return value of 'dup', declared with attri bute warn_unused_result ../libs/uti/sge_stdio.c:196: warning: ignoring return value of 'dup', declared with attri bute warn_unused_result ../libs/uti/sge_stdio.c:202: warning: ignoring return value of 'dup', declared with attri bute warn_unused_result ../libs/uti/sge_stdio.c:203: warning: ignoring return value of 'dup', declared with attri bute warn_unused_result ../libs/uti/sge_stdio.c:213: warning: ignoring return value of 'write', declared with att ribute warn_unused_result ../libs/uti/sge_stdio.c:223: warning: ignoring return value of 'write', declared with att ribute warn_unused_result ../libs/uti/sge_stdio.c:227: warning: ignoring return value of 'write', declared with att ribute warn_unused_result ../libs/uti/sge_stdio.c:239: warning: ignoring return value of 'write', declared with att ribute warn_unused_result ../libs/uti/sge_stdio.c:248: warning: ignoring return value of 'write', declared with att ribute warn_unused_result ../libs/uti/sge_stdio.c:272: warning: ignoring return value of 'write', declared with att ribute warn_unused_result ../libs/uti/sge_os.c: In function 'sge_daemonize_finalize': ../libs/uti/sge_os.c:517: warning: ignoring return value of 'write', declared with attrib ute warn_unused_result ../utilbin/work.c: In function 'work': ../utilbin/work.c:373: warning: ignoring return value of 'read', declared with attribute warn_unused_result ../utilbin/work.c:375: warning: ignoring return value of 'write', declared with attribute warn_unused_result ------- Additional comments from andreas Mon Jan 29 03:19:12 -0700 2007 ------- Moved to the 'build' (pseudo-)subcomponent. I understand that issue does not actually break the build under FC6. Workaround would be to relax warning-related compile options. |
|||
#403 | fixed | IZ2191: qstat -s hX filtering is broken on darwin | roland | |
Description |
[Imported from gridengine issuezilla http://gridengine.sunsource.net/issues/show_bug.cgi?id=2191] Issue #: 2191 Platform: Sun Reporter: roland (roland) Component: gridengine OS: All Subcomponent: clients Version: 6.1beta CC: None defined Status: STARTED Priority: P3 Resolution: Issue type: DEFECT Target milestone: 6.1u1 Assigned to: joga (joga) QA Contact: roland URL: * Summary: qstat -s hX filtering is broken on darwin Status whiteboard: Attachments: Issue 2191 blocks: Votes for issue 2191: Opened: Fri Feb 16 03:17:00 -0700 2007 ------------------------ The qstat_option_s test fails on darwin because the qstat filtering is broken. Instead of showing only jobs in specific hold state all hold state jobs are shown. The issue exists only on darwin-x86 and darwin-ppc. I've tested it also with hp11-64, sol-sparc64, lx24-ia64 and they work fine. ------- Additional comments from joga Fri Jun 22 05:00:31 -0700 2007 ------- I take it. ------- Additional comments from joga Fri Jun 22 05:01:23 -0700 2007 ------- Can reproduce the issue on darwin-ppc, both running qstat manually and through testsuite using the testsuite option preferred_archs darwin-ppc. Can not reproduce the issue on darwin-x86. *** (#1 of 2): 2007-06-22 09:43:36 CEST joachim.gabler@sun.com It clearly looks like a compiler bug. The bitmask used for filtering jobs is built incorrectly, in function build_job_state_filter. The code is needlessly complicated, but correct. It works on all other platforms, and it works on darwin-ppc, when either a printf is introduced in the loop over all options, or when compilation of the module is done without optimization. |
Note: See TracQuery
for help on using queries.