This is the mail archive of the libc-alpha@cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: dlsym SEGV in certain cases


On Wed, Feb 03, 1999 at 02:03:19PM +0100, Andreas Schwab wrote:
> Kars de Jong <jongk@cs.utwente.nl> writes:
> 
> |> At the SEGV args looks like this:
> |> $9 = {handle = 0xffffffff, name = 0xc002d838 "__sigprocmask", version = {
> |>     name = 0xffffffff <Address 0xffffffff out of bounds>, hash = 4026529440, hidden = -1073572488,
> |>     filename = 0xc00310c4 ""}, caller = 3221383020, loadbase = 0, ref = 0x0}
> |> 
> |> loadbase = 0, which probably means it wasn't found. libhpi_g.so was however linked against
> |> libc, so I suppose it should have found the symbol.
> 
> __sigprocmask is an internal symbol that is not exported from libc.  JDK
> should probably use sigprocmask instead.

That could be, I don't think dlsym() should give a SEGV though. It should be
possible to at least *try* to find the symbol...

Kars.
-- 
------------------------------------------------------------------------------
Kars de Jong             Signaalkamp rules the waves!       Turrican@Discworld
--------======]**-----|      jongk@cs.utwente.nl      |-----**[======---------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]