You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Dmitry Hayes (JIRA)" <xa...@xml.apache.org> on 2005/05/05 02:45:06 UTC

[jira] Resolved: (XALANC-264) Deadlock in XalanTransformer::initialize()

     [ http://issues.apache.org/jira/browse/XALANC-264?page=all ]
     
Dmitry Hayes resolved XALANC-264:
---------------------------------

     Assign To:     (was: Xalan Developers Mailing List)
    Resolution: Cannot Reproduce

Can you please reproduce the issue in the latest CVS source ? Thanks!

> Deadlock in XalanTransformer::initialize()
> ------------------------------------------
>
>          Key: XALANC-264
>          URL: http://issues.apache.org/jira/browse/XALANC-264
>      Project: XalanC
>         Type: Bug
>   Components: XalanC
>     Versions: 1.5
>  Environment: Operating System: MacOS X
> Platform: Macintosh
>     Reporter: Peter Ross

>
> When running the sample XalanTransform gdb shows that the main thread is waiting
> in pthread_mutex_lock, and the backtrace shows that
> XalanTransformer::initialize() is responsible for this call.
> I am using MacOS X 10.2 with the December 2002 development tools installed.
> Here is a log of all the build steps that I followed.
> The build of the Xerces-C++ 2.2
> $ cd ~
> $ tar xzf xerces-c-src2_2_0.tar.gz
> $ cd xerces-c-src2_2_0
> $ export XERCESCROOT=`pwd`
> $ cd src/xercesc
> $ ./runConfigure -p macosx -n native
> $ make
> The build of Xalan-C++ 1.5
> $ cd ~
> $ tar xzf Xalan-C_1_5-src.tar.gz
> $ cd xml-xalan/c
> $ export XALANCROOT=`pwd`
> $ cd src
> $ ./runConfigure -p macosx
> $ make
> Finally the build of a sample
> $ cd ~
> $ cd xml-xalan/c/samples/XalanTransform
> $ g++ -g -I$XERCESCROOT/include -I$XALANCROOT/src XalanTransform.cpp \
>       -L$XERCESCROOT/lib -L$XALANCROOT/lib -lxerces-c -lxalan-c1_5_0
> Then I attempt to run the sample and as you will see it seems to get itself into
> some sort of deadlock situation as evidenced by the backtrace, and the dead lock
> appears to be in XalanTransformer::initialize().
> $ gdb a.out
> GNU gdb 5.3-20021014 (Apple version gdb-250) (Sat Dec  7 02:14:27 GMT 2002)
> Copyright 2002 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "powerpc-apple-macos10".
> Reading symbols for shared libraries .. done
> (gdb) run foo.xml foo.xsl
> Starting program:
> /home/users/p/pe/petdr/xml-xalan/c/samples/XalanTransform/a.out foo.xml foo.xsl
> [Switching to process 13490 thread 0xb03]
> Reading symbols for shared libraries . done
> Reading symbols for shared libraries ............... done
> ^C
> Program received signal SIGINT, Interrupt.
> 0x90034848 in semaphore_wait_trap ()
> (gdb) bt
> #0  0x90034848 in semaphore_wait_trap ()
> #1  0x90009d38 in pthread_mutex_lock ()
> #2  0x00e74a48 in std::locale::classic() ()
> #3  0x00e742a4 in std::locale::locale() ()
> #4  0x00e61ae8 in std::basic_filebuf<char, std::char_traits<char>
> >::basic_filebuf(__sFILE*, std::_Ios_Openmode, int) ()
> #5  0x00e5f3b4 in std::ios_base::Init::_S_ios_create(bool) ()
> #6  0x00e5f738 in std::ios_base::Init::Init() ()
> #7  0x00f81140 in __static_initialization_and_destruction_0(int, int) ()
> #8  0x00f81194 in
> _GLOBAL__I__ZN10xalanc_1_519XercesParserLiaisonC2ERNS_16XercesDOMSupportE ()
> #9  0x8fe16350 in __dyld_call_module_initializers_for_library ()
> #10 0x8fe160e4 in __dyld_call_module_initializers ()
> #11 0x8fe106f0 in __dyld_link_in_need_modules ()
> #12 0x8fe1016c in __dyld_bind_lazy_symbol_reference ()
> #13 0x8fe00ec0 in __dyld_stub_binding_helper_interface ()
> #14 0x00e74aa0 in std::locale::classic() ()
> #15 0x00e742a4 in std::locale::locale() ()
> #16 0x00e61ae8 in std::basic_filebuf<char, std::char_traits<char>
> >::basic_filebuf(__sFILE*, std::_Ios_Openmode, int) ()
> #17 0x00e5f3b4 in std::ios_base::Init::_S_ios_create(bool) ()
> #18 0x00e5f738 in std::ios_base::Init::Init() ()
> #19 0x00f8095c in __static_initialization_and_destruction_0(int, int) ()
> #20 0x00f80a3c in
> _GLOBAL__I__ZN10xalanc_1_522XPathEnvSupportDefault19s_externalFunctionsE ()
> #21 0x8fe16350 in __dyld_call_module_initializers_for_library ()
> #22 0x8fe160e4 in __dyld_call_module_initializers ()
> #23 0x8fe106f0 in __dyld_link_in_need_modules ()
> #24 0x8fe102d0 in __dyld_bind_lazy_symbol_reference ()
> #25 0x8fe00ec0 in __dyld_stub_binding_helper_interface ()
> #26 0x00f80854 in __static_initialization_and_destruction_0(int, int) ()
> #27 0x00f808dc in _GLOBAL__I__ZN10xalanc_1_55XPath13s_emptyStringE ()
> #28 0x8fe16350 in __dyld_call_module_initializers_for_library ()
> #29 0x8fe160e4 in __dyld_call_module_initializers ()
> #30 0x8fe106f0 in __dyld_link_in_need_modules ()
> #31 0x8fe102d0 in __dyld_bind_lazy_symbol_reference ()
> #32 0x8fe00ec0 in __dyld_stub_binding_helper_interface ()
> #33 0x00f8049c in __static_initialization_and_destruction_0(int, int) ()
> #34 0x00f8058c in _GLOBAL__I__ZN10xalanc_1_57XObject13s_falseStringE ()
> #35 0x8fe16350 in __dyld_call_module_initializers_for_library ()
> #36 0x8fe160e4 in __dyld_call_module_initializers ()
> #37 0x8fe106f0 in __dyld_link_in_need_modules ()
> #38 0x8fe1016c in __dyld_bind_lazy_symbol_reference ()
> #39 0x8fe00ec0 in __dyld_stub_binding_helper_interface ()
> #40 0x00e61ae8 in std::basic_filebuf<char, std::char_traits<char>
> >::basic_filebuf(__sFILE*, std::_Ios_Openmode, int) ()
> #41 0x00e5f3b4 in std::ios_base::Init::_S_ios_create(bool) ()
> #42 0x00e5f738 in std::ios_base::Init::Init() ()
> #43 0x00f7f5ac in __static_initialization_and_destruction_0(int, int) ()
> #44 0x00f7f600 in _GLOBAL__I__ZN10xalanc_1_57indexOfEPKtS1_ ()
> #45 0x8fe16350 in __dyld_call_module_initializers_for_library ()
> #46 0x8fe160e4 in __dyld_call_module_initializers ()
> #47 0x8fe106f0 in __dyld_link_in_need_modules ()
> #48 0x8fe102d0 in __dyld_bind_lazy_symbol_reference ()
> #49 0x8fe00ec0 in __dyld_stub_binding_helper_interface ()
> #50 0x00001f68 in main (argc=3, argv=0xbffffd30) at XalanTransform.cpp:105
> #51 0x00001c88 in _start (argc=3, argv=0xbffffd30, envp=0xbffffd40) at
> /SourceCache/Csu/Csu-45/crt.c:267
> #52 0x00001b08 in start ()
> (gdb) up 50
> #50 0x00001f68 in main (argc=3, argv=0xbffffd30) at
> XalanTransform.cpp:105
> 105                     XalanTransformer::initialize();

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org