[webkit-dev] [plugins]problem while loading plugin at PluginDatabase::add

이정승 jungseunglee at gmail.com
Mon Mar 28 06:12:59 PDT 2011

Hi, all
I am developing wekit plugins. plugins has been almost developed but
got a wonder problem.
that loading is failed because NP_Shutdown is invoked right after NP_Initialise.
below is that call-trace

#0  0x4155a158 in WebCore::PluginPackage::unload() ()
   from .lib/libwebkit-1.0.so.2
#1  0x4155aba0 in WebCore::PluginPackage::~PluginPackage() ()
   from ./lib/libwebkit-1.0.so.2
#2  0x41552250 in
   from ./lib/libwebkit-1.0.so.2

I made many plugins but only one has been failed with this code

bool PluginDatabase::add(PassRefPtr<PluginPackage> prpPackage)

    ASSERT_ARG(prpPackage, prpPackage);
    RefPtr<PluginPackage> package = prpPackage;
    if (!m_plugins.add(package).second)  <=== m_plugins.add(package).second is 0
        return false;
    m_pluginsByPath.add(package->path(), package);
    return true;

the wonder problem is that if I make 'touch'(change the modify time)
with that plugins(so file)
problem has been disappeeared.

I don't know well about the core-routine of webkit.
How PluginDatabase::add are cheking the duplication of plugins?

Is there any idea for debugging this issue.?
Any advise is welcome..


More information about the webkit-dev mailing list