In article <718CE06DB4E5CF11B7B200A024BDAC2549BD37@paragrin>,
  [EMAIL PROTECTED] (Ilesh Garish) wrote:
>

Hi all

I am having a very similar problem.  Has a resolution ever been found?

The system is Redhat Linux 6.2. Compiler version is

gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)

Here is the offending stack trace:

#0  0x4000af21 in _dl_debug_state () at dl-debug.c:56
#1  0x400fd156 in _dl_close (map=0x80498f8) at dl-close.c:195
#2  0x4001b430 in dlclose_doit (handle=0x80498f8) at dlclose.c:26
#3  0x4000ac3b in _dl_catch_error (errstring=0x4001d080,
    operate=0x4001b418 <dlclose_doit>, args=0x80498f8) at dl-error.c:141
#4  0x4001b8b9 in _dlerror_run (operate=0x4001b418 <dlclose_doit>,
    args=0x80498f8) at dlerror.c:125
#5  0x4001b3fe in dlclose (handle=0x80498f8) at dlclose.c:32
#6  0x8048708 in main (argc=1, argv=0xbffff9e4) at testopen.c:48

And here is the code:

main (int argc, char **argv)
{
  void *returnCode;

  returnCode =
    dlopen("../lib/libisunapishared.so", RTLD_NOW | RTLD_GLOBAL);

  if (returnCode == NULL)
  {
    printf("Error is %s\n", dlerror());
  }
  else
  {
    printf("Success \n");
  }

  dlclose(returnCode);

}

Here is the ldd for the shared object in question
 libclntsh.so.8.0 => /u01/app/oracle/product/8.1.5/lib/libclntsh.so.8.0
(0x40076000)
        libskgxp8.so => /u01/app/oracle/product/8.1.5/lib/libskgxp8.so
(0x4057e000)
        libdl.so.2 => /lib/libdl.so.2 (0x40580000)
        libm.so.6 => /lib/libm.so.6 (0x40584000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x405a2000)
        libc.so.6 => /lib/libc.so.6 (0x405b5000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

If there are more appropriate places for this question, or anyone has
any advice for me, contact me at

[EMAIL PROTECTED]

Thanks much

Howard Lander

>
> > -----Original Message-----
> > From:       Free Software Foundation [SMTP:[EMAIL PROTECTED]]
> > Sent:       Wednesday, April 19, 2000 2:36 AM
> > To: Ilesh Garish
> > Subject:    Re: FW: Segmentation error during dlclose()
> >
> >
> > <[EMAIL PROTECTED]> or <[EMAIL PROTECTED]> is probably the right place
to
> > send
> > this report.
> >
> > Ilesh Garish wrote:
> > > > -----Original Message-----
> > > > From:   Ilesh Garish
> > > > Sent:   Monday, April 17, 2000 3:39 PM
> > > > To:     '[EMAIL PROTECTED]'
> > > > Cc:     '[EMAIL PROTECTED]'
> > > > Subject:        Segmentation error during dlclose()
> > > >
> > > > Hi,
> > > >
> > > > I am getting segmentation fault during dlclose() function.
> > > > Actually I built shared object (.so) file of my project. It was
> > working
> > > > fine during last month.
> > > > But then I changed my code to use POSIX threads (i.e. linking
with
> > > > lpthread) and after that
> > > > I start facing this problem.
> > > > I debug using xxgdb and it so me the area of
"pthread_manager_thread:
> > > > 0000" , where it crashes.
> > > >
> > > > So do you have any idea about dlclose and pthread has some
linkage
> > > > problem?
> > > >
> > > > Thanks in advance.
> > > > Ilesh
> >
> > --
> > Bradley M. Kuhn, Assistant to Richard Stallman
> > Free Software Foundation     |  Phone: +1-617-542-5942
> > 59 Temple Place, Suite 330   |  Fax:   +1-617-542-2652
> > Boston, MA 02111-1307  USA   |  Web:   http://www.gnu.org
>


Sent via Deja.com http://www.deja.com/
Before you buy.

Reply via email to