[GE issues] [Issue 3141] New - qsub Segmentation fault when using -V and -jsv

ccaamad m.c.dixon at leeds.ac.uk
Fri Sep 25 16:40:10 BST 2009


http://gridengine.sunsource.net/issues/show_bug.cgi?id=3141
                 Issue #|3141
                 Summary|qsub Segmentation fault when using -V and -jsv
               Component|gridengine
                 Version|6.2u3
                Platform|PC
                     URL|
              OS/Version|Linux
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|clients
             Assigned to|roland
             Reported by|ccaamad






------- Additional comments from ccaamad at sunsource.net Fri Sep 25 08:40:09 -0700 2009 -------
Using the "-V" and "-jsv" features at the same time causes the lx24-x86 version of qsub to segfault. Can kill the scheduler if qsub passes
"-V" on a 32-bit platform and a server-side JSV is active.

To reproduce, download the courtesy GE 6.2u3 binaries from Sun for both lx24-x86 and lx24-amd64 platforms.

* 64-bit seems to work:

$ /scratch/ge6.2u3/bin/lx24-amd64/qsub -V test.sh
Your job 10 ("test.sh") has been submitted
$ /scratch/ge6.2u3/bin/lx24-amd64/qsub -jsv ./test_pl.jsv test.sh
Your job 11 ("test.sh") has been submitted
$ /scratch/ge6.2u3/bin/lx24-amd64/qsub -V -jsv ./test_pl.jsv test.sh
Your job 12 ("test.sh") has been submitted

* 32-bit doesn't:

$ /scratch/ge6.2u3/bin/lx24-x86/qsub -V test.sh
Your job 13 ("test.sh") has been submitted
$ /scratch/ge6.2u3/bin/lx24-x86/qsub -jsv ./test_pl.jsv test.sh
Your job 14 ("test.sh") has been submitted
$ /scratch/ge6.2u3/bin/lx24-x86/qsub -V -jsv ./test_pl.jsv test.sh
Segmentation fault (core dumped)

$ gdb /scratch/ge6.2u3/bin/lx24-x86/qsub core.14770
GNU gdb Fedora (6.8-27.el5)
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu"...

warning: Can't read pathname for load map: Input/output error.
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Core was generated by `/scratch/ge6.2u3/bin/lx24-x86/qsub -V -jsv
./test_pl.jsv test.sh'.
Program terminated with signal 11, Segmentation fault.
[New process 14770]
#0  0x0072b96b in strlen () from /lib/libc.so.6
(gdb) bt
#0  0x0072b96b in strlen () from /lib/libc.so.6
#1  0x006fbbce in vfprintf () from /lib/libc.so.6
#2  0x00701e02 in fprintf () from /lib/libc.so.6
#3  0x080c73dd in jsv_send_data ()
#4  0x080c56da in jsv_send_command ()
#5  0x080ccfa3 in jsv_handle_started_command ()
#6  0x080c80da in jsv_do_communication ()
#7  0x080c6a85 in jsv_do_verify ()
#8  0x0809b6c5 in sge_gdi_packet_execute_external ()
#9  0x08093f54 in sge_gdi2_multi ()
#10 0x08093cf6 in sge_gdi2 ()
#11 0x08083c4d in japi_send_job ()
#12 0x0807bf70 in japi_run_job ()
#13 0x080648d0 in main ()
(gdb)


Contents of test_pl.jsv:

#!/usr/bin/perl

use strict;

use lib "$ENV{SGE_ROOT}/util/resources/jsv";
use JSV qw(:ALL);

jsv_on_start(sub {
   jsv_send_env();
});

jsv_on_verify(sub {
    jsv_accept();
    return;
});

jsv_main();


Contents of test.sh:

env

------------------------------------------------------
http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=36&dsMessageId=219055

To unsubscribe from this discussion, e-mail: [issues-unsubscribe at gridengine.sunsource.net].



More information about the gridengine-users mailing list