dlsym SEGV in certain cases

Kars de Jong jongk@cs.utwente.nl
Thu Apr 1 00:00:00 GMT 1999


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      |-----**[======---------



More information about the Libc-alpha mailing list