Professional Web Applications Themes

weird libcrypto problem - Mac Programming

I use libcrypto for the odd spot of RSA stuff, and i have run into the following problem: If i build on 10.2.8 (so linking against libcrypto.0.9.dylib) then everything works fine, both on 10.2.8 and on 10.3. If i build on 10.3, linking against libcrypto.0.9.dylib, then the app crashes as soon as i try to use any of the libcrypto functions, with the following backtrace: Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000004 Thread 0 Crashed: #0 0x9266da6c in BN_num_bits (BN_num_bits + 20) #1 0x9266b704 in BN_CTX_new (BN_CTX_new + 92) #2 0x926ac1a0 in RSA_eay_public_decrypt (RSA_eay_public_decrypt + 108) #3 0x000abc60 in ...

  1. #1

    Default weird libcrypto problem

    I use libcrypto for the odd spot of RSA stuff, and i have run into the
    following problem:

    If i build on 10.2.8 (so linking against libcrypto.0.9.dylib) then
    everything works fine, both on 10.2.8 and on 10.3.
    If i build on 10.3, linking against libcrypto.0.9.dylib, then the app
    crashes as soon as i try to use any of the libcrypto functions, with the
    following backtrace:


    Exception: EXC_BAD_ACCESS (0x0001)
    Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000004

    Thread 0 Crashed:
    #0 0x9266da6c in BN_num_bits (BN_num_bits + 20)
    #1 0x9266b704 in BN_CTX_new (BN_CTX_new + 92)
    #2 0x926ac1a0 in RSA_eay_public_decrypt (RSA_eay_public_decrypt + 108)
    #3 0x000abc60 in 0xabc60
    #4 0x000ab90c in 0xab90c
    #5 0x000496d8 in dyld_stub_binding_helper (dyld_stub_binding_helper + 284992)
    #6 0x00003d10 in 0x3d10
    #7 0x00003b84 in 0x3b84

    If i build on 10.3, linking against libcrypto.0.9.7.dylib, then it works
    fine on 10.3, but the app won't run on 10.2.8 because only
    libcrypt.0.9.dylib is present there.

    Does anyone know what is going on here? I'm building my app with CW 9.1,
    and it's Mach-O Carbon.

    Fred


    Frederick Guest

  2. #2

    Default Re: weird libcrypto problem

    In article
    <srcf.societies.cam.ac.uk>
    ,
    Frederick Cheung <DUH.ucam.org> wrote:
     

    I have an app which uses libcrypto for MD5 and fish and runs fine on
    10.2 and 10.3. I build on 10.3 using the SDK system, which probably
    isn't supported with CW. In any case, I'm not linking against a
    particular version of libcrypto, just libcrypto.dylib. This is a symlink
    to the appropriate version of the library. On 10.2 it links to 0.9 and
    on 10.3 it links to 0.9.7. If you can do a similar thing with CW, it's
    probably the way to go.
    Michael Guest

  3. #3

    Default Re: weird libcrypto problem

    On Mon, 1 Dec 2003, Michael Ash wrote:
     
    >
    > I have an app which uses libcrypto for MD5 and fish and runs fine on
    > 10.2 and 10.3. I build on 10.3 using the SDK system, which probably
    > isn't supported with CW. In any case, I'm not linking against a
    > particular version of libcrypto, just libcrypto.dylib. This is a symlink
    > to the appropriate version of the library. On 10.2 it links to 0.9 and
    > on 10.3 it links to 0.9.7. If you can do a similar thing with CW, it's
    > probably the way to go.
    >[/ref]
    Unfortunately not, when i add libcrypto.dylib, CW resolves the symlink,
    and adds the resulting file.

    Fred

    Frederick Guest

  4. #4

    Default Re: weird libcrypto problem

    On Mon, 1 Dec 2003, Frederick Cheung wrote:
     
    > >
    > > I have an app which uses libcrypto for MD5 and fish and runs fine on
    > > 10.2 and 10.3. I build on 10.3 using the SDK system, which probably
    > > isn't supported with CW. In any case, I'm not linking against a
    > > particular version of libcrypto, just libcrypto.dylib. This is a symlink
    > > to the appropriate version of the library. On 10.2 it links to 0.9 and
    > > on 10.3 it links to 0.9.7. If you can do a similar thing with CW, it's
    > > probably the way to go.
    > >[/ref][/ref]
    Turns out that if I use the 10.2 SDK then everything works fine (but i
    don't have a clue why i doesn't work with 10.3

    Fred
     


    Frederick Guest

  5. #5

    Default Re: weird libcrypto problem

    In article
    <srcf.societies.cam.ac.uk>
    ,
    Frederick Cheung <DUH.ucam.org> wrote:
     

    The entire point of the 10.2 SDK is that you use that if you want your
    program to run on 10.2. If you're using the 10.3 SDK, that means you
    don't care about compatibility with older OSes.
    Michael Guest

Similar Threads

  1. weird problem
    By Aaron Axelsen in forum Macromedia Flash Player
    Replies: 5
    Last Post: June 10th, 06:05 PM
  2. Weird problem...
    By renayiiq in forum Macromedia Flash Player
    Replies: 4
    Last Post: November 25th, 03:47 PM
  3. weird problem?!!! plz help me!
    By roozbeh_fir in forum Macromedia Freehand
    Replies: 1
    Last Post: February 9th, 12:46 PM
  4. Replies: 0
    Last Post: August 23rd, 11:56 AM
  5. [Q] really WEIRD asp problem (XP, IIS, IE 6)
    By holgeradelmann in forum ASP
    Replies: 2
    Last Post: August 21st, 10:20 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139