And this is the backtrace.
2011/11/13 Arnaud Versini <arnaud.versini@gmail.com>
I've seen it is used by using gdb on _osl_getFullQualifiedDomainName. I
don't remember how but I could provide you the bt after the build. It's not
directly but _osl_getFullQualifiedDomainName is used during file locking.
I'm writting a patch to remove the usage of _osl_getDomainName.
2011/11/13 Noel Grandin <noelgrandin@gmail.com>
Arnaud is correct, I was looking at the wrong method. But where do you
see this method being used in file locking?
Lionel, I've run across a lot of machines with badly configured DNS.
socket.c: _osl_getDomainName
is only used by
socket.c: static sal_Char* _osl_getFullQualifiedDomainName (const
sal_Char *pHostName)
which is only used by
socket.c: static oslHostAddr _osl_hostentToHostAddr (const struct
hostent *he)
which is used by
socket.c: oslHostAddr SAL_CALL osl_psz_createHostAddrByName (const
sal_Char *pszHostname)
and
socket.c: oslHostAddr SAL_CALL osl_createHostAddrByAddr (const
oslSocketAddr pAddr)
and I assume that SAL_CALL means that these are part of the public API.
--
Arnaud Versini
--
Arnaud Versini
#0 _osl_getFullQualifiedDomainName (pHostName=0x1bd9e0a "arnaud-GA-890GPA-UD3H") at socket.c:824
#1 0x00007ffff7f7590c in _osl_hostentToHostAddr (he=0x7ffff7dd9de0) at socket.c:884
#2 0x00007ffff7f75d85 in osl_psz_createHostAddrByName (pszHostname=0x7ffff7feed20
"arnaud-GA-890GPA-UD3H") at socket.c:1040
#3 0x00007ffff7f76098 in osl_psz_getLocalHostname (pBuffer=0x7fffffff7d00 "", nBufLen=1024) at
socket.c:1188
#4 0x00007ffff7f75ff4 in osl_getLocalHostname (ustrLocalHostname=0x7fffffff8190) at socket.c:1149
#5 0x00007ffff6464f17 in osl::SocketAddr::getLocalHostname (pResult=0x0) at
/home/arnaud/core/solver/unxlngx6.pro/inc/osl/socket.hxx:176
#6 0x00007ffff6464d08 in svt::LockFileCommon::GenerateOwnEntry () at
/home/arnaud/core/svl/source/misc/lockfilecommon.cxx:247
#7 0x00007ffff6458ab1 in svt::DocumentLockFile::CreateOwnLockFile (this=0x7fffffff83d0) at
/home/arnaud/core/svl/source/misc/documentlockfile.cxx:116
#8 0x00007ffff68718a2 in SfxMedium::LockOrigFileOnDemand (this=0x1c2e610, bLoading=1 '\001',
bNoUI=0 '\000') at /home/arnaud/core/sfx2/source/doc/docfile.cxx:1097
#9 0x00007ffff68e832a in SfxObjectShell::DoLoad (this=0x1caf8f0, pMed=0x1c2e610) at
/home/arnaud/core/sfx2/source/doc/objstor.cxx:645
#10 0x00007ffff69297b3 in SfxBaseModel::load (this=0x1d24fe0, seqArguments=uno::Sequence of length
16 = {...}) at /home/arnaud/core/sfx2/source/doc/sfxbasemodel.cxx:1875
#11 0x00007ffff696f524 in SfxFrameLoader_Impl::load (this=0x1c24150, rArgs=uno::Sequence of length
13 = {...}, _rTargetFrame=...) at /home/arnaud/core/sfx2/source/view/frmload.cxx:613
#12 0x00007fffe4320af6 in framework::LoadEnv::impl_loadContent (this=0x1c9e4a8) at
/home/arnaud/core/framework/source/loadenv/loadenv.cxx:1152
#13 0x00007fffe431d569 in framework::LoadEnv::startLoading (this=0x1c9e4a8) at
/home/arnaud/core/framework/source/loadenv/loadenv.cxx:414
#14 0x00007fffe42b8b23 in framework::LoadDispatcher::impl_dispatch (this=0x1c9e410, rURL=...,
lArguments=uno::Sequence of length 7 = {...}, xListener=...)
at /home/arnaud/core/framework/source/dispatch/loaddispatcher.cxx:170
#15 0x00007fffe42b8836 in framework::LoadDispatcher::dispatchWithReturnValue (this=0x1c9e410,
rURL=..., lArguments=uno::Sequence of length 7 = {...})
at /home/arnaud/core/framework/source/dispatch/loaddispatcher.cxx:107
#16 0x00007ffff6d9c38f in comphelper::SynchronousDispatch::dispatch (xStartPoint=...,
sURL="file:///home/arnaud/Téléchargements/modele_dec_he_so(2).rtf", sTarget="_default", nFlags=0,
lArguments=uno::Sequence of length 7 = {...}) at
/home/arnaud/core/comphelper/source/misc/synchronousdispatch.cxx:86
#17 0x00007ffff66ea601 in SfxApplication::OpenDocExec_Impl (this=0xff9ec0, rReq=...) at
/home/arnaud/core/sfx2/source/appl/appopen.cxx:1229
#18 0x00007ffff66e322a in SfxStubSfxApplicationOpenDocExec_Impl (pShell=0xff9ec0, rReq=...) at
/home/arnaud/core/workdir/unxlngx6.pro/SdiTarget/sfx2/sdi/sfxslots.hxx:1149
#19 0x00007ffff678cab2 in SfxShell::CallExec (this=0xff9ec0, pFunc=0x7ffff66e3207
<SfxStubSfxApplicationOpenDocExec_Impl(SfxShell*, SfxRequest&)>, rReq=...) at
/home/arnaud/core/sfx2/inc/sfx2/shell.hxx:202
#20 0x00007ffff678691f in SfxDispatcher::Call_Impl (this=0x1487260, rShell=..., rSlot=...,
rReq=..., bRecord=0 '\000') at /home/arnaud/core/sfx2/source/control/dispatch.cxx:278
#21 0x00007ffff6788221 in SfxDispatcher::_Execute (this=0x1487260, rShell=..., rSlot=..., rReq=...,
eCallMode=1) at /home/arnaud/core/sfx2/source/control/dispatch.cxx:985
#22 0x00007ffff6789141 in SfxDispatcher::Execute (this=0x1487260, nSlot=5501, eCall=1, nModi=0,
rArgs=...) at /home/arnaud/core/sfx2/source/control/dispatch.cxx:1272
#23 0x00007ffff6788fb0 in SfxDispatcher::Execute (this=0x1487260, nSlot=5501, eCall=1, rArgs=...)
at /home/arnaud/core/sfx2/source/control/dispatch.cxx:1244
#24 0x00007ffff66e86ba in SfxApplication::OpenDocExec_Impl (this=0xff9ec0, rReq=...) at
/home/arnaud/core/sfx2/source/appl/appopen.cxx:819
#25 0x00007ffff66e322a in SfxStubSfxApplicationOpenDocExec_Impl (pShell=0xff9ec0, rReq=...) at
/home/arnaud/core/workdir/unxlngx6.pro/SdiTarget/sfx2/sdi/sfxslots.hxx:1149
#26 0x00007ffff678cab2 in SfxShell::CallExec (this=0xff9ec0, pFunc=0x7ffff66e3207
<SfxStubSfxApplicationOpenDocExec_Impl(SfxShell*, SfxRequest&)>, rReq=...) at
/home/arnaud/core/sfx2/inc/sfx2/shell.hxx:202
#27 0x00007ffff678691f in SfxDispatcher::Call_Impl (this=0x1487260, rShell=..., rSlot=...,
rReq=..., bRecord=1 '\001') at /home/arnaud/core/sfx2/source/control/dispatch.cxx:278
#28 0x00007ffff6789589 in SfxDispatcher::PostMsgHandler (this=0x1487260, pReq=0x1827fc0) at
/home/arnaud/core/sfx2/source/control/dispatch.cxx:1373
#29 0x00007ffff678947b in SfxDispatcher::LinkStubPostMsgHandler (pThis=0x1487260,
pCaller=0x1827fc0) at /home/arnaud/core/sfx2/source/control/dispatch.cxx:1343
#30 0x00007ffff66ec354 in Link::Call (this=0x1485d78, pCaller=0x1827fc0) at
/home/arnaud/core/solver/unxlngx6.pro/inc/tools/link.hxx:140
#31 0x00007ffff695300b in GenLink::Call (this=0x1485d78, pCaller=0x1827fc0) at
/home/arnaud/core/sfx2/inc/sfx2/genlink.hxx:54
#32 0x00007ffff6952f09 in SfxHintPoster::Event (this=0x1485d60, pPostedHint=0x1827fc0) at
/home/arnaud/core/sfx2/source/notify/hintpost.cxx:88
#33 0x00007ffff695303c in SfxHintPoster::DoEvent_Impl (this=0x1485d60, pPostedHint=0x1827fc0) at
/home/arnaud/core/sfx2/source/notify/hintpost.cxx:78
#34 0x00007ffff6952edf in SfxHintPoster::LinkStubDoEvent_Impl (pThis=0x1485d60, pCaller=0x1827fc0)
at /home/arnaud/core/sfx2/source/notify/hintpost.cxx:82
#35 0x00007ffff4d3005c in Link::Call (this=0x50a120, pCaller=0x1827fc0) at
/home/arnaud/core/solver/unxlngx6.pro/inc/tools/link.hxx:140
#36 0x00007ffff50fd063 in ImplHandleUserEvent (pSVEvent=0x50a0c0) at
/home/arnaud/core/vcl/source/window/winproc.cxx:2001
#37 0x00007ffff50fe30d in ImplWindowFrameProc (pWindow=0x1029740, nEvent=22, pEvent=0x50a0c0) at
/home/arnaud/core/vcl/source/window/winproc.cxx:2573
#38 0x00007ffff510cf81 in SalFrame::CallCallback (this=0x1029bd0, nEvent=22, pEvent=0x50a0c0) at
/home/arnaud/core/vcl/inc/salframe.hxx:294
#39 0x00007ffff510cc98 in SalGenericDisplay::DispatchInternalEvent (this=0x588c40) at
/home/arnaud/core/vcl/generic/app/gendisp.cxx:104
#40 0x00007fffee6f856f in GtkData::userEventFn (data=0x4e3870) at
/home/arnaud/core/vcl/unx/gtk/app/gtkdata.cxx:960
#41 0x00007fffee6f85c6 in call_userEventFn (data=0x4e3870) at
/home/arnaud/core/vcl/unx/gtk/app/gtkdata.cxx:970
#42 0x00007fffecdf1a5d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#43 0x00007fffecdf2258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#44 0x00007fffecdf2429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#45 0x00007fffee6f74d4 in GtkData::Yield (this=0x4e3870, bWait=true, bHandleAllCurrentEvents=false)
at /home/arnaud/core/vcl/unx/gtk/app/gtkdata.cxx:597
#46 0x00007fffee6f9e20 in GtkInstance::Yield (this=0x4e2650, bWait=true,
bHandleAllCurrentEvents=false) at /home/arnaud/core/vcl/unx/gtk/app/gtkinst.cxx:578
#47 0x00007ffff4d41b51 in ImplYield (i_bWait=true, i_bAllEvents=false) at
/home/arnaud/core/vcl/source/app/svapp.cxx:460
#48 0x00007ffff4d3e391 in Application::Yield (i_bAllEvents=false) at
/home/arnaud/core/vcl/source/app/svapp.cxx:494
#49 0x00007ffff4d3e332 in Application::Execute () at /home/arnaud/core/vcl/source/app/svapp.cxx:437
#50 0x00007ffff7ede947 in desktop::Desktop::Main (this=0x7fffffffd970) at
/home/arnaud/core/desktop/source/app/app.cxx:1889
#51 0x00007ffff4d47411 in ImplSVMain () at /home/arnaud/core/vcl/source/app/svmain.cxx:181
#52 0x00007ffff4d47557 in SVMain () at /home/arnaud/core/vcl/source/app/svmain.cxx:218
#53 0x00007ffff7f1087a in soffice_main () at /home/arnaud/core/desktop/source/app/sofficemain.cxx:69
#54 0x0000000000400744 in sal_main () at /home/arnaud/core/desktop/source/app/main.c:34
#55 0x0000000000400729 in main (argc=1, argv=0x7fffffffdb28) at
/home/arnaud/core/desktop/source/app/main.c:33
Context
- Re: [Libreoffice] [PATCH] Replace command domainname by getdomainname() on Unix (continued)
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.