Re: Crashing dlopen() on Sharp Zaurus C860

From: Basile Starynkevitch [news] (basile-news_at_starynkevitch.net)
Date: 12/07/04


Date: Tue, 7 Dec 2004 14:44:53 +0000 (UTC)

On 2004-12-07, Dr. Nikolaus Schaller <hns@computer.org> wrote:
> Dear all,
> I have the following issue:
>
> I am using gcc 2.95.3 with Objective-C extensions to compile for the
> Sharp C860 (Linux 2.4.18 kernel and glibc 2.2.2).
>
> The code dynamically loads a lot of shared libraries through dlopen()
> but spuroiusly runs into an "Illegal Instruction".
>
> Several tests have reduced the code to a simple main() function that
> dlopens several system libraries and then three of my own shared
> libraries. The strange things are:
> * it is not repeatable. Sometimes, the Illegal Instruction comes on
> the first library. Starting again (even in a while true loop) makes
> the first and second load and it fails on the third one. In approx. 1
> out of 100 cases it loads all three. [...]

Are you sure it is not a hardware fault, e.g. some faulty RAM chips, a
bad powersupply, etc.... Have you any means to check your hardware?
Did you try on another one? Can you change the RAM?

On x86, I would have suggested to run memtest. I don't know if the
equivalent exist for your system...

-- 
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/ 
email: basile<at>starynkevitch<dot>net 
aliases: basile<at>tunes<dot>org = bstarynk<at>nerim<dot>net
8, rue de la Faïencerie, 92340 Bourg La Reine, France


Relevant Pages

  • Re: port GPL software.
    ... Libraries supplied with the compiler are specifically ... The ?System Libraries? ... Want to help make Delphi and InterBase better? ...
    (borland.public.delphi.non-technical)
  • Re: libstdc++ version bump.
    ... > convince lang/gcc33 to be binary compatible with system libraries? ... So the question is if it possible to convince lang/gcc33 to produce code ... binary compatible with system-wide gcc 3.4? ...
    (freebsd-stable)
  • isolating operator new overload with gcc 4 (XCode2.2)
    ... I need to overload operator new without affecting the system libraries. ... overloads to be mapped to them. ...
    (comp.sys.mac.programmer.help)
  • Re: portability: static vs. shared?
    ... My naive common sense and a few authorssay that linking ... libraries statically makes program binaries more portable. ... System libraries should generally be linked shared, and in fact the trend is toward making that the only option. ...
    (comp.unix.programmer)
  • Re: Create libFOO.a from libFOO.so?
    ... option, the shell wrapper doesn't really offer much of an advantage, ... don't make the distinction between *system* libraries and *application* libraries. ... All applications linked with shared system libraries get the benefits of a patch. ... They may be used by one one app in which case there's no efficiency gain, and if different apps do use it they'll each typically ship their own copy which will be updated on different schedules. ...
    (comp.unix.programmer)