Bugzilla – Bug 48
SIGSEGV in pbs_statjob
Last modified: 2010-01-28 06:23:37 MST
You need to log in before you can comment on or make changes to this bug.
Created an attachment (id=22) [details] Reproduce bug I try to obtain status of jobs with custom set of attributes to return. If attrib parameter is not null pbs_statjob generates SIGSEGV signal. In the attach a file that reproduce bug. Following gdb output: [zerg@casper pbs]$ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib gdb ./a.out GNU gdb (GDB) Fedora (7.0.1-26.fc12) Copyright (C) 2009 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 "i686-redhat-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /home/zerg/works/pbs/a.out...done. (gdb) r Starting program: /home/zerg/works/pbs/a.out Detaching after fork from child process 5586. Program received signal SIGSEGV, Segmentation fault. 0x00b5ca28 in encode_DIS_attrl (sock=7, pattrl=0xbfffee4c) at ../Libifl/enc_attrl.c:121 121 for (ps = pattrl;ps != NULL;ps = ps->next) Missing separate debuginfos, use: debuginfo-install glibc-2.11.1-1.i686 (gdb) backtrace #0 0x00b5ca28 in encode_DIS_attrl (sock=7, pattrl=0xbfffee4c) at ../Libifl/enc_attrl.c:121 #1 0x00b5dcbf in encode_DIS_Status (sock=<value optimized out>, objid=<value optimized out>, pattrl=<value optimized out>) at ../Libifl/enc_Status.c:103 #2 0x00b613c5 in PBSD_status_put (c=<value optimized out>, function=<value optimized out>, id=<value optimized out>, attrib=<value optimized out>, extend=<value optimized out>) at ../Libifl/PBSD_status2.c:109 #3 0x00b616ec in PBSD_status (c=<value optimized out>, function=<value optimized out>, id=<value optimized out>, attrib=<value optimized out>, extend=<value optimized out>) at ../Libifl/PBSD_status.c:109 #4 0x00b6128a in pbs_statjob (c=<value optimized out>, id=<value optimized out>, attrib=<value optimized out>, extend=<value optimized out>) at ../Libifl/pbsD_statjob.c:110 #5 0x080486e0 in main (argc=1, argv=0xbffff334) at connect.c:31 (gdb) q A debugging session is active. Inferior 1 [process 5583] will be killed. Quit anyway? (y or n) y
Sorry, it's my bug :/