[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: interesting ORBit behavior



In message <[🔎] 20010603032605.2B7E599306@perdition.linnaean.org>it was written:
>> Hrm, ldd says 'not a dynamic executable'. Not sure why that is.
>
>Well, let's try to figure that out.  ldd is a shell script that
>uses ld.so to do the real work.  Try these commands:
>	/lib/ld.so.1 
>	/lib/ld.so.1 --list ./test-random

./test-random: error while loading shared libraries: ./test-random: failed to map segment from shared object: Error 1073741869

>	/lib/ld.so.1 --verify ./test-random

Dosen't print anything

>	LD_TRACE_LOADED_OBJECTS=1 /lib/ld.so.1 ./test-random

Same error as with --list.

>If any of those fail, please show us the details (and try using gdb).
>If those all work consistently, then try running "sh -x /bin/ldd test-random"
>and see what it is doing that goes wrong.

I'm not sure what details you want besides the full output, but gdb does provide the exit
code, dunno if thats useful or not.

--

(gdb) run
Starting program: /lib/ld.so.1 --list ./test-random
./test-random: error while loading shared libraries: ./test-random: failed to map segment from shared object: Error 1073741869

Program exited with code 0177.

--

(gdb) run
Starting program: /lib/ld.so.1 --verify ./test-random

Program exited with code 01.

--


>> Ah, I mean the CORBA call Random_lrand48() returns a 0 instead of a
>> random number like it does when it executes correctly from the command
>> line and when it executes under gdb.
>
>Can you examine the rpctrace output and see where the results start to look
>wrong?

Er, I'm not sure how to differentiate what rpctrace goodness from badness.

It appears to initialize the CORBA environment corrently, but the call appears
to fail.

as always,
nick
            nick@grawk.net * http://www.fargus.net/nick
    Developer - Systems Engineer - Mad System Guru - MOO Sales
    he picks up scraps of information/he's adept at adaptation
because for strangers and arrangers/constant change is here to stay



Reply to: