Hi there ! I thought this was worth mentioning:
Very reproducably, openssl ca crashes each time when having finished the job. (Worked in 0.9.6x) Here's some info for the bug report: System(s): Win98SE/WinNT4.0Sp6 on INTEL(PIII, 666Mhz and others), MSVC++6Sp5, Version 12.00.8804 OpenSSL: OpenSSL 0.9.7 31 Dec 2002 built on: Thu Jan 23 09:11:54 2003 platform: VC-WIN32 options: bn(64,32) md2(int) rc4(idx,int) des(idx,cisc,4,long) idea(int) blowfish(idx) compiler: cl /MD /W3 /WX /G5 /Ox /O2 /Ob2 /Gs0 /GF /Gy /nologo -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -DBN_ASM -DMD5_ASM -DSHA1_ASM -DRMD160_ASM /Fdout32dll -DOPENSSL_NO_KRB5 OPENSSLDIR: "./." OpenSSL 0.9.7 31 Dec 2002 built on: Thu Jan 23 09:44:10 2003 platform: VC-WIN32 options: bn(64,32) md2(int) rc4(idx,int) des(idx,cisc,4,long) idea(int) blowfis h(idx) compiler: cl /MDd /W3 /WX /Zi /Yd /Od /nologo -DOPENSSL_SYSNAME_WIN32 -D_DEBUG -DL_ENDIAN -DWIN32_LEAN_AND_MEAN -DDEBUG -DDSO_WIN32 -DBN_ASM -DMD5_ASM -DSHA1_A SM -DRMD160_ASM /Fdout32dll -DOPENSSL_NO_KRB5 OPENSSLDIR: "./." and a stack trace: _free_dbg_lk(void * 0x50000000, int 1) line 1044 + 48 bytes _free_dbg(void * 0x50000000, int 1) line 1001 + 13 bytes free(void * 0x50000000) line 956 + 11 bytes CRYPTO_free(void * 0x50000000) line 364 + 10 bytes ASN1_STRING_free(asn1_string_st * 0xdddddddd) line 390 + 21 bytes ASN1_primitive_free(ASN1_VALUE_st * * 0x00fd32f4, const ASN1_ITEM_st * 0x004df078 local_it) line 224 + 11 bytes asn1_item_combine_free(ASN1_VALUE_st * * 0x00fd32f4, const ASN1_ITEM_st * 0x004df078 local_it, int 0) line 100 + 13 bytes ASN1_template_free(ASN1_VALUE_st * * 0x00fd32f4, const ASN1_TEMPLATE_st * 0x004df7f4) line 175 + 28 bytes asn1_item_combine_free(ASN1_VALUE_st * * 0x0076f31c, const ASN1_ITEM_st * 0x004df850 local_it, int 0) line 151 + 13 bytes ASN1_item_free(ASN1_VALUE_st * 0x00fd32f0, const ASN1_ITEM_st * 0x004df850 local_it) line 71 + 15 bytes X509_NAME_ENTRY_free(X509_name_entry_st * 0x00fd32f0) line 78 + 18 bytes sk_pop_free(stack_st * 0x00fe0860, void (void *)* 0x0046b597 X509_NAME_ENTRY_free(X509_name_entry_st *)) line 290 + 16 bytes x509_name_ex_free(ASN1_VALUE_st * * 0x00fdf66c, const ASN1_ITEM_st * 0x004df8b0 local_it) line 144 + 16 bytes asn1_item_combine_free(ASN1_VALUE_st * * 0x00fdf66c, const ASN1_ITEM_st * 0x004df8b0 local_it, int 0) line 130 + 29 bytes ASN1_template_free(ASN1_VALUE_st * * 0x00fdf66c, const ASN1_TEMPLATE_st * 0x004decc4) line 175 + 28 bytes asn1_item_combine_free(ASN1_VALUE_st * * 0x00fdf6c0, const ASN1_ITEM_st * 0x004deda8 local_it, int 0) line 151 + 13 bytes ASN1_template_free(ASN1_VALUE_st * * 0x00fdf6c0, const ASN1_TEMPLATE_st * 0x004ded68 X509_seq_tt) line 175 + 28 bytes asn1_item_combine_free(ASN1_VALUE_st * * 0x0076f44c, const ASN1_ITEM_st * 0x004dedc8 local_it, int 0) line 151 + 13 bytes ASN1_item_free(ASN1_VALUE_st * 0x00fdf6c0, const ASN1_ITEM_st * 0x004dedc8 local_it) line 71 + 15 bytes X509_free(x509_st * 0x00fdf6c0) line 125 + 18 bytes sk_pop_free(stack_st * 0x00fdc470, void (void *)* 0x0045441c X509_free(x509_st *)) line 290 + 16 bytes ca_main(int 0, char * * 0x00fb06c8) line 1636 + 17 bytes do_cmd(lhash_st * 0x00fd2c80, int 9, char * * 0x00fb06a4) line 379 + 14 bytes main(int 9, char * * 0x00fb06a4) line 298 + 20 bytes mainCRTStartup() line 338 + 17 bytes KERNEL32! bff8b560() KERNEL32! bff8b412() KERNEL32! bff89dd5() And (while i'm at it) another thing to mention: I'm using openssl with stunnel. When i'm running stunnel as a service, RAND_poll in rand_win.c can't work, as it needs features not available under the SYSTEM account without a user logged in (i.e. the UI features) so it dropped all the stuff except for the CryptAcquireContext when building the "service version". Although i'm totally dependent on MS-randomness now, everything works fine when runing as service now. And yet another thing: Usage of RAND_file_name() isn't working for a service-app with no logged-on user, too, when no filename is specified. After trying to get a filename from the environment (where none is defined), filename is filled with rubbish (could be that the environment is rubbish, or the OS...). So i don't use that under Win32 either. Just wanted to mention those, thanks a lot, best regards, Claudius Thomas ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]