On Fri, 2009-07-10 at 14:31 +0530, naresh kamboju wrote: > Garrett, > > On Fri, Jul 10, 2009 at 10:22 AM, Masatake YAMATO<[email protected]> wrote: > > I've found an interesting code in glibc about "rt_sigaction". > > > > sysdeps/unix/sysv/linux/x86_64/sigaction.c: > > int > > __libc_sigaction (int sig, const struct sigaction *act, struct sigaction > > *oact) > > > > > > > > How do you think follow the way to glibc? > > In addition man page is needed to update. > > > > Masatake YAMATO > > > > Garrett Cooper <[email protected]> wrote: > >>gcoo...@orangebox /scratch/ltp-vanilla/ltp $ /lib/libc.so.6 > >>GNU C Library stable release version 2.9, by Roland McGrath >>et al. > > >>I'm confused -- how will that help us? > > To conform glibc version you are using is 2.9 > > >>gcoo...@orangebox /scratch/ltp-vanilla/ltp $ gdb > >>This GDB was configured as "x86_64-pc-linux-gnu"... > >>(gdb) r > >>Starting program: > >>/scratch/ltp-vanilla/ltp/testcases/kernel/syscalls/rt_sigaction>>/rt_sigaction01 > >>rt_sigaction01 0 INFO : signal: 34 > >>rt_sigaction01 1 PASS : rt_sigaction call succeeded: >>result = 0 > >>rt_sigaction01 0 INFO : sa.sa_flags = >>SA_RESETHAND|SA_SIGINFO > > >>Program received signal SIG34, Real-time event 34. > >>0x00007f770ba0b4f7 in kill () from /lib/libc.so.6 > >>(gdb) where > >>#0 0x00007f770ba0b4f7 in kill () from /lib/libc.so.6 > >>#1 0x0000000000401c3e in main () > >>(gdb) > > > As you said in the pervious mail when you try to debug using gdb you > got a segmentation falut from /lib/libc.so.6. > > So that segmentation fault is generated by glibc. > > > As per Masatake YAMATO comments, > glibc code implementation for libc/sysdeps/unix/sysv/linux/x86_64/sigaction.c > > X86_64: > > http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sysdeps/unix/sysv/linux/x86_64/sigaction.c?annotate=1.8.2.4&cvsroot=glibc > > X86: > > http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sysdeps/unix/sysv/linux/sigaction.c?annotate=1.24.2.2&cvsroot=glibc > > Thanks Masatake YAMATO for your information. > > However, before concluding problem/issue need some more Investigation > Please remove > -kill(getpid(),signal); > from rt_sigaction01.c > And complie and execute and share the results.
I will wait for any of your patches till you investigate all issues. Regards-- Subrata > > Best regards, > Naresh Kamboju ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
