Re: [lkcd-devel] Re: lcrash SIGSEGV for X86_64 arch in kl_open_namelist()

"Tom Morano" <[email protected]> Tue, 30 Nov 2004 12:04:09 -0800
Newsgroups gmane.linux.lkcd.general
Message-ID <019201c4d717$c16b7080$6401a8c0@PCTMORANO>
I went ahead and checked in the changes you suggested Rajesham. I made the
changes in the check_namelist_format() function, as that appears to be where
you meant them to go.

Thanks,

Tom

----- Original Message ----- 
From: "Tom Morano" <[email protected]>
To: "Rajesham Gajjela" <[email protected]>;
<[email protected]>; <[email protected]>
Sent: Wednesday, November 24, 2004 4:26 PM
Subject: [lkcd-devel] Re: [lkcd-general] lcrash SIGSEGV for X86_64 arch in
kl_open_namelist()


> Hi Rajesham,
>
> Did you mean make the changes in the check_namelist_format() function?
> That's the only funciton that has swtich statements in it.
>
> Thanks,
>
> Tom
>
> ----- Original Message ----- 
> From: "Rajesham Gajjela" <[email protected]>
> To: <[email protected]>;
> <[email protected]>; <[email protected]>
> Sent: Wednesday, November 24, 2004 1:38 PM
> Subject: Re: [lkcd-general] lcrash SIGSEGV for X86_64 arch in
> kl_open_namelist()
>
>
> >
> > 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/
> _______________________________________________
> lkcd-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/lkcd-devel



-------------------------------------------------------
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/