thanks leo -- it worked! i'm still going to keep my wrapper lib around
though, just in case there are platforms where this dlfunc trick doesn't
work. but that can easily be detected during configuration.
-jeff
On Fri, 10 Sep 2004, Leopold Toetsch wrote:
> Jeff Horwitz wrote:
>
> > 1. can you s
Jeff Horwitz wrote:
1. can you still dlopen the running image by passing a NULL string to loadlib?
No. Didn't work that way, IIRC
2. can you dlsym (via dlfunc) a statically linked function?
Yes. Pass NULL for the library PMC:
.sub main @MAIN
.local pmc nul
null nul
.local NCI f
.loc
i put my old code back in and got apache to segfault. here's a backtrace,
which confirms the offending code, but it doesn't offer much explanation.
btw, i'm working off a CVS update from last night.
#0 0xb713b11a in Parrot_dlfunc_p_p_sc_sc (cur_opcode=0xb52a80d0,
interpreter=0x815fc50) at co
> I think the problem here is that you need to pass a NULL into dlopen
> for the filename to get the main image, not a null string.
[snip]
> null $S0
> loadlib self_lib, $S0
that's exactly what i was doing -- i should have included more of the
actual code in my original mail (i admit, nu
At 11:02 AM -0400 9/9/04, Jeff Horwitz wrote:
okay, i'm bringing back a thread from a year ago. for mod_parrot, i'd
like to be able to loadlib the running process image (httpd) and dlfunc
the various apache API functions. however, while this works for libc
functions, and any other functions from