Results 1 to 7 of 7

Thread: PHP Ice_initialize() hangs

  1. #1
    xorax is offline Registered User
    Name: Ivan Brykov
    Organization: United Markets Information Syndicat
    Project: Trading Platform Web Integration
    Join Date
    Oct 2007
    Posts
    15

    PHP Ice_initialize() hangs

    Hi,

    My situation: FreeBSD 8.0; Ice-3.4.1 compiled from sources; Python binding works fine.

    But in PHP any script with ICE hangs on ice_initialize() call.
    No error/warning/notice messages.

    I understand that FreeBSD is not supported. Nevertheless, maybe someone would have some ideas.

    Thanks!

  2. #2
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Hi,

    You should attach to the PHP process with the debugger and get a stack trace of the process when it hangs. This might give you some clues on the origin of the hang.

    Cheers,
    Benoit.

  3. #3
    xorax is offline Registered User
    Name: Ivan Brykov
    Organization: United Markets Information Syndicat
    Project: Trading Platform Web Integration
    Join Date
    Oct 2007
    Posts
    15
    Quote Originally Posted by benoit View Post
    Hi,

    You should attach to the PHP process with the debugger and get a stack trace of the process when it hangs. This might give you some clues on the origin of the hang.

    Cheers,
    Benoit.
    Do you mean high-level debugger like xdebug or some low-level debugger? To use the latter my PHP and ICE have to be compiled in debug mode, as far as I understand.

  4. #4
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Hi,

    I mean a debugger such as gdb. Yes, it's best if the programs are compiled with debug information but on most platform you can also see some basic symbol information (function names) for programs compiled without debug.

    Cheers,
    Benoit.

  5. #5
    xorax is offline Registered User
    Name: Ivan Brykov
    Organization: United Markets Information Syndicat
    Project: Trading Platform Web Integration
    Join Date
    Oct 2007
    Posts
    15
    Quote Originally Posted by benoit View Post
    Hi,

    I mean a debugger such as gdb. Yes, it's best if the programs are compiled with debug information but on most platform you can also see some basic symbol information (function names) for programs compiled without debug.

    Cheers,
    Benoit.
    It seems like execution freezes on the following:
    Code:
    #0  0x292d11c7 in __error () from /lib/libthr.so.3
    #1  0x292d0fdb in __error () from /lib/libthr.so.3
    #2  0x292d3ee0 in _thread_state_running () from /lib/libthr.so.3
    #3  0x00000011 in ?? ()
    #4  0x00000000 in ?? ()
    #5  0x00000000 in ?? ()
    #6  0x00000000 in ?? ()
    #7  0x00040004 in ?? ()
    #8  0x2860b358 in ?? () from /libexec/ld-elf.so.1
    #9  0x286197a0 in ?? ()
    #10 0x28dca140 in ?? ()
    #11 0x086074b4 in ?? ()
    #12 0xbfbfcbc8 in ?? ()
    #13 0x292cb7a7 in pthread_mutex_getyieldloops_np () from /lib/libthr.so.3
    #14 0x00018d5d in ?? ()
    #15 0x2861d340 in ?? ()
    #16 0x00018d5d in ?? ()
    #17 0x292dea48 in ?? () from /usr/lib/libstdc++.so.6
    #18 0x28c9fa00 in ?? ()
    #19 0x00d9dbfb in ?? ()
    #20 0x292d2b94 in ?? () from /lib/libthr.so.3
    #21 0x00000000 in ?? ()
    #22 0x28dca140 in ?? ()
    #23 0xbfbfcbe8 in ?? ()
    #24 0x292cc0cf in pthread_mutex_trylock () from /lib/libthr.so.3
    As far as I understand, it's about FreeBSD threads implementation. Are there any chances to workaround it?

  6. #6
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Hi,

    I'm afraid there's isn't enough information from this stack to figure out where the problem could come from... You'll need to re-compile Ice with debug information and run the test suites to see what works and what doesn't.

    Cheers,
    Benoit.

  7. #7
    grembo is offline Registered User
    Name: Michael Gmelin
    Organization: Grem Equity GmbH
    Project: E-Commerce platform
    Join Date
    Jan 2009
    Posts
    85
    Hi Ivan,

    is this on i386 or on amd64 (I had similar issues in the past and could solve them somehow, can't recall exactly how right now). Also, are you using IceSSL?

    A very possible issue is that your libphp is not linked against libthread. I contributed to a thread showing that problem a while ago, see: php5-Ice on FreeBSD 7.1

    As a result of this thread (at least I want to think so) the php5 port has a new configuration option now.

    So you should make sure to select the LINKTHR when installing lang/php5

    (e.g. cd /usr/ports/lang/php5; make config; make install).

    See the attached screenshot (highlighted option). This should fix the issue.
    Attached Images Attached Images

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 12-03-2010, 05:42 AM
  2. [3.3.1] NoSuchMethodError hangs the client
    By joshmoore in forum Bug Reports
    Replies: 6
    Last Post: 04-19-2010, 07:04 PM
  3. IceStorm hangs
    By ctennis in forum Help Center
    Replies: 5
    Last Post: 05-22-2008, 08:21 AM
  4. IceStorm hangs
    By T. Barry in forum Help Center
    Replies: 1
    Last Post: 03-02-2006, 03:49 AM
  5. inheritence test hangs
    By iostream in forum Help Center
    Replies: 8
    Last Post: 06-03-2003, 07:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •