Page 3 of 3 FirstFirst 1 2 3
Results 31 to 41 of 41

Thread: BadMagicException on single server

  1. #31
    andy_84 is offline Registered User
    Name: Andrew Solovyov
    Organization: MAI
    Project: simple grid-like system
    Join Date
    Nov 2010
    Posts
    27
    Hi, Benoit!

    You could also try to see if the problem still shows up when using multiple threads on the server side and specifying the Ice.ThreadPool.Server.Serialize=1 property.
    BadMagicException reproduced.

    Could you patch your Ice distribution with this patch and see if the problem still occurs with a debug build and if one of those asserts is hit?
    We applied your patch, built Debug configuration - BadMagicException reproduced without any asserts.

    Regards, andy
    Last edited by andy_84; 12-23-2011 at 10:40 AM.

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

    Could you run the server under the debugger and break at the line where the exception is raised? You could also add an assert in the exception constructor and then attach to the process. I would be interested to see the attributes of the connection at the time the exception is throw.

    Otherwise, I will setup your test case with 8-core Windows 2008 machines and see if I can reproduce on those machines, hopefully I'll have better chances.

    Cheers,
    Benoit.

  3. #33
    andy_84 is offline Registered User
    Name: Andrew Solovyov
    Organization: MAI
    Project: simple grid-like system
    Join Date
    Nov 2010
    Posts
    27
    Hi, Benoit!

    Could you run the server under the debugger and break at the line where the exception is raised? You could also add an assert in the exception constructor and then attach to the process. I would be interested to see the attributes of the connection at the time the exception is throw.
    Good idea! I'll try this on Monday.

    Otherwise, I will setup your test case with 8-core Windows 2008 machines and see if I can reproduce on those machines, hopefully I'll have better chances.
    Can you clarify - how do you run the test; are you using our binaries or own build? We find very strange that you cannot reproduce BadMagicException while we see it approx every 15 minutes we run the test on a single 8-core (with HT - 16 core) Windows 2008 R2 server.

    P.S. Merry Christmas and Happy New Year!!!

    Regards, andy

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

    I used my own build (x64, both tried release/debug builds). The 2 machines I tried on were 4-core machines (one of them was a VM) and both were running Windows 7... I tried on some other hardware (EC2 Windows Server 2008 VMs) and I'm finally able to reproduce. I will debug this now and let you know once I know more.

    Cheers,
    Benoit.

  5. #35
    andy_84 is offline Registered User
    Name: Andrew Solovyov
    Organization: MAI
    Project: simple grid-like system
    Join Date
    Nov 2010
    Posts
    27
    Hi, Benoit!

    Quote Originally Posted by benoit View Post
    I'm finally able to reproduce
    Glad to hear, it's a good New Year gift

    I made a dump at the BadMagicException moment and was going to reply to the thread, when saw you've answered. Tell me if you still need it.


    Regards, andy

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

    Could you please try again your test case after applying the patch attached to this post and re-compiling the Ice library? Thanks!

    Cheers,
    Benoit
    Attached Files Attached Files

  7. #37
    andy_84 is offline Registered User
    Name: Andrew Solovyov
    Organization: MAI
    Project: simple grid-like system
    Join Date
    Nov 2010
    Posts
    27
    Hi, Benoit!

    Sorry for delay.

    1) To make Ice compile, we had to add this members to NativeInfo struct in Network.h:


    DWORD count;
    int error;

    Maybe you forgot to diff this header?

    2) After we successfully rebuilt Ice, our client doesn't start, printing an error:


    !! 01/10/12 12:41:33.523 client.exe: error: TcpTransceiver.cpp:430: Ice::ConnectionLostException:
    connection lost: recv() returned zero

    So, we can't run our test with latest patch

    Regards, andy

  8. #38
    benoit's Avatar
    benoit is online now ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Sorry, here's the correct patch.

    Cheers,
    Benoit.
    Attached Files Attached Files

  9. #39
    andy_84 is offline Registered User
    Name: Andrew Solovyov
    Organization: MAI
    Project: simple grid-like system
    Join Date
    Nov 2010
    Posts
    27
    Hi, Benoit!

    At last we couldn't find BadMagicExceptions in logs! Seems it works now. I wonder if patched Ice will be available for download or we continue using our custom built binaries?

    Regards, andy

  10. #40
    bernard's Avatar
    bernard is online now ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    Hi Andy,

    That's excellent news. This fix will be in our next release.

    We do not post binary patches on these forums. If you have a support contract and need a signed binary that incorporates one or more bug fixes, please contact support@zeroc.com.

    Best regards,
    Bernard
    Bernard Normier
    ZeroC, Inc.

  11. #41
    andy_84 is offline Registered User
    Name: Andrew Solovyov
    Organization: MAI
    Project: simple grid-like system
    Join Date
    Nov 2010
    Posts
    27
    Hi, Bernard!

    Just to know - how soon are you going to release next version of Ice?

    Regard, andy

Page 3 of 3 FirstFirst 1 2 3

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. BadMagicException and Crash, Is TCP lost data?
    By linkman in forum Help Center
    Replies: 2
    Last Post: 08-10-2011, 01:51 AM
  2. BadMagicException in mid time intensive runs
    By Andrew S in forum Help Center
    Replies: 7
    Last Post: 01-28-2009, 09:30 AM
  3. Single threaded approach
    By volk in forum Help Center
    Replies: 1
    Last Post: 06-13-2008, 07:57 AM
  4. What are reasons for BadMagicException
    By rhochmuth in forum Help Center
    Replies: 13
    Last Post: 06-09-2007, 02:52 AM
  5. single stream for two-way communication?
    By vukicevic in forum Help Center
    Replies: 2
    Last Post: 05-19-2003, 03:17 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
  •