Re: lcrash SIGSEGV for X86_64 arch in kl_open_namelist()
Rajesham Gajjela <[email protected]> Wed, 24 Nov 2004 13:38:28 -0800 (PST)
| Newsgroups | gmane.linux.lkcd.general |
|---|---|
| Message-ID | <[email protected]> |
Since "kerntypes" is generated with -gstabs for
x86_64 and also this is 64 bit arch, I made the
following changes:
kl_open_namelist(char *namelist, int flags)
{
in both the switch statements,
I have added
case KL_ARCH_X86_64:
just above the 'case case KL_ARCH_S390X: {'
}
This works good for me. Can you please let me know if
this sounds okay ??? or if you have any comments.
Rajesham
--- Rajesham Gajjela <[email protected]> wrote:
> For the case of KL_ARCH_X86_64 arch, 'namelist_opns'
> is NULL ptr in libklib/kl_nmlist.c. This leads to
> SIGSEGV
> in kl_open_namelist(char *namelist, int flags).
> See the below code lines:
>
> int
> kl_open_namelist(char *namelist, int flags)
> {
> int saved_nmlist;
>
>
>
> .....
>
>
> check_namelist_format(namelist);
>
> if ((*(namelist_opns->open_namelist))
> (namelist,
> flags)) { --> SEGV here
>
>
> .....
> }
>
> check_namelist_format(namelist) suppose to set the
> 'namelist_opns' members. But it does not set for
> X86_64 arch.
>
> Can you please clarify me these questions ?
> 1. Is lcrash supported for x86_64 arch ?
> 2. If "YES", then, what operations 'namelist_opns'
> should point for for x86_64 arch ?
> 3. Can you brief me about the purpose of these
> operations ???
>
> I have attached a gdb session FYI. Please let me
> know
> if you need any other info.
>
> My experiments can be one of test case for x86_64
> arch
> LKCD & lkcdutils :-)
>
>
> Rajesham
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/