[torquedev] potential double free in qdel

Christopher Samuel samuel at unimelb.edu.au
Wed Aug 4 00:21:02 MDT 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 22/07/10 13:12, Glen Beane wrote:

> can anyone else reproduce this double free,

Nope, running qdel under Valgrind doesn't show a thing. :-(

NB: this is with Torque 2.4.8.

> and what do you see if you run qdel in gdb and put a
> breakpoint on pbs_disconnect?

Not very pretty..

Starting program: /usr/local/torque/2.4.8/bin/qdel 222
Detaching after fork from child process 4112.
Detaching after fork from child process 4113.

Breakpoint 1, pbs_disconnect (connect=2) at ../Libifl/pbsD_connect.c:859
859       {
(gdb) bt full
#0  pbs_disconnect (connect=2) at ../Libifl/pbsD_connect.c:859


        sock = <value optimized out>
        x = '\0' <repeats 65535 times>
#1  0x00002b00e8dea348 in locate_job (
    job_id=0x7fffd6be1240 "222.bruce-m.vlsci.unimelb.edu.au",
    parent_server=<value optimized out>, located_server=0x7fffd6be22a0
"`$???\177")
    at ../Libcmds/locate_job.c:124
        connect = 2
        jid_server = "222.bruce-m.vlsci.unimelb.edu.au", '\0' <repeats
840 times>, "'\214\200*5", '\0' <repeats 11 times>,
"(???\000+\000\000\002\000\000\000\000\000\000\000\004\000\000\000\000\000\000\000|`\234|\000\000\000\000$\220\200*5",
'\0' <repeats 11 times>,
"?\r???\177\000\000|`\234|\000\000\000\0000\017???\177\000\000H\017???\177\000\000\210:?*5",
'\0' <repeats 11 times>,
"????\000+\000\000????\000+\000\000\230L??\000+\000\000
??*5\000\000\000\210\023??\000+\000\000\000\000\000\000\001\000\000\000\227"...
        location = 0x0
#2  0x000000000040117e in main (argc=2, argv=0x7fffd6be2fd8) at qdel.c:303
        connect = 1
        stat = 0
        c = <value optimized out>
        errflg = <value optimized out>
        any_failed = 0
        purge_completed = 0
        located = <value optimized out>
        pc = <value optimized out>
        job_id = "222", '\0' <repeats 1637 times>, "?_\200*5", '\0'
<repeats 69 times>,
"?*5\000\000\000\000??*5\000\000\000???*5\000\000\000???*5", '\0'
<repeats 11 times>,
"\005\000\000\000\000\000\000\000\000??*5\000\000\000\000
?*5\000\000\000\230\035?*5\000\000\000Xa?*5\000\000\000\000?\024\000\000\000\000\000\003",
'\0' <repeats 127 times>, "?_\200*5", '\0' <repeats 43 times>,
"X?\200*5", '\0' <repeats 11 times>,
"??*5\000\000\000\177M?*5\000\000\000'|\200*5\000\000\000\f\214\002\000\000\000\000\000/\000\000\000\000\000\000\000????\000+"...
        job_id_out = "222.bruce-m.vlsci.unimelb.edu.au", '\0' <repeats
2049 times>
        server_out = "\000?td\004", '\0' <repeats 11 times>,
"?7?*5\000\000\000\177M?*5\000\000\000P+???\177\000\000p\v?*5", '\0'
<repeats 11 times>,
"?'???\177\000\000\000\000\000\000\000\000\000\000\200&???\177\000\000??\200*5",
'\0' <repeats 19 times>,
"\b\000\000\000\000\000\000\000R?td\004\000\000\000x?\024\000\000\000\000\000x??*5\000\000\000?*???\177\000\000P+???\177\000\000
\226??\000+\000\000\000\000\000\000\000\000\000\000?(???\177\000\000\000\000\000\000\000\000\000\000\004\000\000\000\000\000\000\000????\000+\000\000x?\200*5\000\000\000\001\000\000"...
        rmt_server =
"`$???\177\000\000\000\000\000\000\000\000\000\000?$???\177\000\000\001", '\0'
<repeats 15 times>,
"?f\200*5\000\000\000h???\000+\000\000?\"???\177\000\000`$???\177\000\000GW\200*5\000\000\000/usr/local/torque/2.4.8/lib/libc.so.6\000so.6\000o.6\000l\200!???\177\000\000
!???\177\000\000????\000+\000\000X?\200*5\000---Type <return> to
continue, or q <return> to quit---
\000\000?\006@\000\000\000\000\000????\000+\000\000}W??\000+\000\000'|\200*5\000\000\000\005\b\000\000\003\000\000\000`*5"...
        extend = "\000\b@\000\000\000\000\000?\005\200*5\000\000\000
+???\177\000\000??\200*\000\000\000\000H\b\200*5\000\000\000?\001\000\000\000\000\000\000\000\000\000\0005\000\000\000?\b@",
'\0' <repeats 13 times>,
"??\200*5\000\000\000?\006\017?\000+\000\000???*5\000\000\000\001\000\000\000\000\000\000\000???I\000\000\000\000?R9",
'\0' <repeats 21 times>,
"?\205\200*5\000\000\000`/???\177\000\000q7\200*5", '\0' <repeats 67
times>, "????\000+", '\0' <repeats 114 times>,
"?Z?I\000\000\000\000?\006\017?\000+\000\000\000?*5\000\000\000`*5\000\000"...
        usage = "usage: qdel [{ -c | -p | -W delay | -m message}]
[<JOBID>[<JOBID>]|'all'|'ALL']...\n"


- -- 
 Christopher Samuel - Senior Systems Administrator
 VLSCI - Victorian Life Sciences Computational Initiative
 Email: samuel at unimelb.edu.au Phone: +61 (0)3 903 55545
         http://www.vlsci.unimelb.edu.au/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxZBs4ACgkQO2KABBYQAh++YwCfdIs8YNIvckErGIcldT+ZtNJX
7DcAnRycKQkUQwVUQwXygj7tJSNBNI5S
=zYVv
-----END PGP SIGNATURE-----


More information about the torquedev mailing list