> Do a debug build, enable crash dumps, post the full back trace from the 
> crashes.

The first try to get an Debug-build did fail, it did build normal. The
Stacktrace is

> (lldb) thread backtrace all
> * thread #1, stop reason = signal SIGSTOP
>   * frame #0: 0x000000011a495aef
> fbintl.dylib`CV_convert_init(csconvert*, unsigned int (*)(csconvert*,
> unsigned int, unsigned char const*, unsigned int, unsigned char*,
> unsigned short*, unsigned int*), void const*, void const*) + 63
>     frame #1: 0x000000011a496044
> fbintl.dylib`common_8bit_init(charset*, char const*, unsigned short
> const*, unsigned char const*, unsigned short const*) + 84
>     frame #2: 0x000000011a4965a5 fbintl.dylib`CS_win1252(charset*,
> char const*) + 37
>     frame #3: 0x000000011a495568 fbintl.dylib`LD_lookup_charset + 104
>     frame #4: 0x000000010fd3dfd2
> libfbclient.dylib`Jrd::IntlManager::lookupCharSet(Firebird::StringBase<Firebird::StringComparator>
> const&, charset*) + 354
>     frame #5: 0x000000010fd380be
> libfbclient.dylib`lookup_charset(charset*, SubtypeInfo const*) + 62
>     frame #6: 0x000000010fd37fb2
> libfbclient.dylib`CharSetContainer::CharSetContainer(Firebird::MemoryPool&,
> unsigned short, SubtypeInfo const*) + 82
>     frame #7: 0x000000010fd37cae
> libfbclient.dylib`CharSetContainer::lookupCharset(Jrd::thread_db*,
> unsigned short) + 270
>     frame #8: 0x000000010fd39288
> libfbclient.dylib`INTL_texttype_lookup(Jrd::thread_db*, unsigned
> short) + 56
>     frame #9: 0x000000010fd39be7
> libfbclient.dylib`INTL_key_length(Jrd::thread_db*, unsigned short,
> unsigned short) + 55
>     frame #10: 0x000000010fd6bfac
> libfbclient.dylib`gen_sort(Jrd::thread_db*, Jrd::OptimizerBlk*,
> unsigned char const*, unsigned char const*, Jrd::RecordSource*,
> Jrd::jrd_nod*, bool) + 940
>     frame #11: 0x000000010fd66ed1
> libfbclient.dylib`OPT_compile(Jrd::thread_db*, Jrd::CompilerScratch*,
> Jrd::RecordSelExpr*, Firebird::Stack<Jrd::jrd_nod*, 16ul>*) + 3969
>     frame #12: 0x000000010fcfdec9
> libfbclient.dylib`post_rse(Jrd::thread_db*, Jrd::CompilerScratch*,
> Jrd::RecordSelExpr*) + 57
>     frame #13: 0x000000010fcf5642
> libfbclient.dylib`CMP_pass2(Jrd::thread_db*, Jrd::CompilerScratch*,
> Jrd::jrd_nod*, Jrd::jrd_nod*) + 1554
>     frame #14: 0x000000010fcf5333
> libfbclient.dylib`CMP_pass2(Jrd::thread_db*, Jrd::CompilerScratch*,
> Jrd::jrd_nod*, Jrd::jrd_nod*) + 771
>     frame #15: 0x000000010fcf7159
> libfbclient.dylib`CMP_make_request(Jrd::thread_db*,
> Jrd::CompilerScratch*, bool) + 537
>     frame #16: 0x000000010fcf6e5a
> libfbclient.dylib`CMP_compile2(Jrd::thread_db*, unsigned char const*,
> unsigned int, bool, unsigned short, unsigned char const*) + 170
>     frame #17: 0x000000010fd5188e
> libfbclient.dylib`JRD_compile(Jrd::thread_db*, Jrd::Attachment*,
> Jrd::jrd_req**, unsigned int, unsigned char const*,
> Firebird::RefPtr<Firebird::AnyRef<Firebird::StringBase<Firebird::StringComparator>
> > >, unsigned short, unsigned char const*) + 110
>     frame #18: 0x000000010fe0c3b5
> libfbclient.dylib`prepare(Jrd::thread_db*, Jrd::dsql_dbb*,
> Jrd::jrd_tra*, unsigned short, char const*, unsigned short, unsigned
> short) + 1941
>     frame #19: 0x000000010fe0b97f
> libfbclient.dylib`DSQL_prepare(Jrd::thread_db*, Jrd::jrd_tra*,
> Jrd::dsql_req**, unsigned short, char const*, unsigned short, unsigned
> short, unsigned char const*, unsigned short, unsigned char*) + 543
>     frame #20: 0x000000010fd5a6ba libfbclient.dylib`jrd8_prepare + 266
>     frame #21: 0x000000010fc5645f libfbclient.dylib`isc_dsql_prepare_m
> + 495
>     frame #22: 0x000000010fc55fc8 libfbclient.dylib`isc_dsql_prepare + 216
>     frame #23: 0x000000010f9c4972
> libhedbcon.dylib`___lldb_unnamed_symbol2637$$libhedbcon.dylib + 522
>     frame #24: 0x000000010f9bf6c8
> libhedbcon.dylib`___lldb_unnamed_symbol2594$$libhedbcon.dylib + 800
>     frame #25: 0x000000010f9bf374
> libhedbcon.dylib`___lldb_unnamed_symbol2593$$libhedbcon.dylib + 100
>     frame #26: 0x000000010f91e8d9
> libhedbcon.dylib`___lldb_unnamed_symbol46$$libhedbcon.dylib + 345
>     frame #27: 0x00000001149649bf
>     frame #28: 0x000000010ce3f234
> libmonosgen-2.0.1.dylib`mono_jit_runtime_invoke(method=<unavailable>,
> obj=<unavailable>, params=0x00007ffee2de9ac0, exc=0x0000000000000000,
> error=<unavailable>) at mini-runtime.c:2791 [opt]
>     frame #29: 0x000000010d036e78
> libmonosgen-2.0.1.dylib`do_runtime_invoke(method=0x00007ff4c586bc18,
> obj=0x000000010e33b978, params=0x00007ffee2de9ac0,
> exc=0x0000000000000000, error=0x00007ffee2de9bd0) at object.c:2862 [opt]
>     frame #30: 0x000000010d03ab1b
> libmonosgen-2.0.1.dylib`mono_runtime_try_invoke_array [inlined]
> mono_runtime_invoke_checked(method=<unavailable>, error=<unavailable>)
> at object.c:3016 [opt]
>     frame #31: 0x000000010d03aadf
> libmonosgen-2.0.1.dylib`mono_runtime_try_invoke_array(method=<unavailable>,
> obj=<unavailable>, params=0x000000010e34e938, exc=0x0000000000000000,
> error=0x00007ffee2de9bd0) at object.c:5131 [opt]
>     frame #32: 0x000000010cf98cb7
> libmonosgen-2.0.1.dylib`ves_icall_InternalInvoke(method=<unavailable>,
> this_arg=<unavailable>, params=0x000000010e34e938,
> exc=0x00007ffee2de9d18) at icall.c:3298 [opt]
>     frame #33: 0x0000000114888fd1
>     frame #34: 0x0000000114b5800b

I do ommit other threads, I dont think that they might be valuable.

An real debug-build did make the crash vanish therefore no further
stacktrace.

After switching to -O0 the problem is vanished, with -O1 it does fail

Overall I did configure FirebirsSQL like this:

> export CFLAGS='-m64 -O0 -arch x86_64 -mmacosx-version-min=10.7'
> export CXXFLAGS='-m64 -O0 -arch x86_64 -mmacosx-version-min=10.7'
>
> export CXX="clang++ $CFLAGS"
> export CC="clang $CXXFLAGS"
>
> #!/bin/sh
> ./configure \
>         --build=x86_64-darwin \
>         --without-fbsample \
>         --without-fbsample-db \
>         --without-fbdoc \
>         --without-fbhelp \
>         --disable-largefile \
>         --without-fbplugins \
>         --with-system-icu

the Exports at top cannot be ommitted, there is some trouble within
configure script consistently switching to 64Bit code generation.

Elmar


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to