Achim Gratz <Stromeko@...> writes:
> I can get it to build (I would prefer if it was using the dynamic
> library), but it doesn't work (it gets a SIGABRT that I don't know where
> it comes from).
So I've rebuilt without Qt bindings, which makes it a lot smaller, but the
error is still the same. This happens when I have it linked statically
against Ruby:
Starting program: /usr/src/packages/klayout/build/main/klayout.exe
[New Thread 3252.0x30c]
[New Thread 3252.0x1660]
[New Thread 3252.0x62c]
[New Thread 3252.0x10c4]
[New Thread 3252.0x13c0]
[New Thread 3252.0x340]
<internal:gem_prelude>:1:in `require': cannot load such file -- rubygems.rb
(LoadError) from <internal:gem_prelude>:1:in `<compiled>'
[New Thread 3252.0x988]
Program received signal SIGABRT, Aborted.
0x00000000 in ?? ()
(gdb) bt
#0 0x00000000 in ?? ()
#1 0x77566a24 in ntdll!ZwWriteVirtualMemory ()
from /cygdrive/c/Windows/system32/ntdll.dll
#2 0x7590179c in WaitForSingleObjectEx ()
from /cygdrive/c/Windows/system32/KERNELBASE.dll
#3 0x000015c4 in ?? ()
#4 0x00000000 in ?? ()
The load error from Ruby is likely a red herring (but it shows that
the embedded interpreter starts up), it also happens on Linux unless
you set RUBYLIB and is non-fatal there. If I set
RUBYLIB=/lib/ruby/1.9.1/i386-cygwin/:/lib/ruby/1.9.1/
then I get
Starting program: /usr/src/packages/klayout/build/main/klayout.exe
[New Thread 2080.0x137c]
[New Thread 2080.0x1228]
[New Thread 2080.0xbc]
[New Thread 2080.0x9a0]
[New Thread 2080.0xfa8]
[New Thread 2080.0x864]
Program received signal SIGSEGV, Segmentation fault.
0x5b906cae in ruby_xmalloc (size=11) at
/usr/src/debug/ruby-1.9.3-p327-1/gc.c:836
836 return vm_xmalloc(&rb_objspace, size);
(gdb) bt
#0 0x5b906cae in ruby_xmalloc (size=11) at
/usr/src/debug/ruby-1.9.3-p327-1/gc.c:836
#1 0x5b9bde85 in ruby_strdup (str=0x50d23080 "ASCII-8BIT") at
/usr/src/debug/ruby-1.9.3-p327-1/util.c:428
#2 0x5b8c14bf in enc_register_at (index=0, name=<optimized out>,
encoding=0x0) at /usr/src/debug/ruby-1.9.3-p327-1/encoding.c:214
#3 0x5b8c1eb9 in rb_encdb_declare (name=0x50d23080 "ASCII-8BIT") at
/usr/src/debug/ruby-1.9.3-p327-1/encoding.c:282
#4 0x50d210f2 in Init_encdb () at ./encdb.h:1
#5 0x00a9c20b in dln_load (file=0x20206080
"/lib/ruby/1.9.1/i386-cygwin/enc/encdb.so")
at /usr/src/debug/ruby-1.9.3-p327-1/dln.c:1339
#6 0x009e9526 in rb_vm_call_cfunc (recv=538537280, func=0xa0fdc0
<load_ext>, arg=538496660, blockptr=0x0, filename=538496660)
at /usr/src/debug/ruby-1.9.3-p327-1/vm.c:1541
#7 0x00a108ec in rb_require_safe (fname=538497120, safe=0) at
/usr/src/debug/ruby-1.9.3-p327-1/load.c:624
#8 0x00a17ef5 in require_enc (enclib=538497120) at
/usr/src/debug/ruby-1.9.3-p327-1/encoding.c:540
#9 0x009eb6c0 in rb_protect (proc=0xa17ed0 <require_enc>,
data=538497120, state=0x0)
at /usr/src/debug/ruby-1.9.3-p327-1/eval.c:719
#10 0x00a1896f in load_encoding (name=0x17d4025 "encdb") at
/usr/src/debug/ruby-1.9.3-p327-1/encoding.c:562
#11 0x00a13abd in process_options (argc=0, argv=0x22a668, opt=0x22a478) at
/usr/src/debug/ruby-1.9.3-p327-1/ruby.c:1333
#12 0x00a14455 in ruby_process_options (argc=3, argv=0x22a65c) at
/usr/src/debug/ruby-1.9.3-p327-1/ruby.c:1825
#13 0x009ec138 in ruby_options (argc=3, argv=0x22a65c) at
/usr/src/debug/ruby-1.9.3-p327-1/eval.c:73
#14 0x0073b517 in rba::RubyInterpreter::RubyInterpreter() ()
#15 0x0067a2f3 in _fu2279___ZNSs4_Rep20_S_empty_rep_storageE ()
#16 0x0040125c in klayout_main(int, char**) ()
#17 0x00401563 in _fu1___ZNSs4_Rep20_S_empty_rep_storageE ()
#18 0x6100763a in _cygwin_exit_return () at
/usr/src/debug/cygwin-1.7.17-1/winsup/cygwin/dcrt0.cc:974
#19 0x6100533d in _cygtls::call2 (this=<optimized out>, func=0x61006c50
<dll_crt0_1(void*)>, arg=0x0,
buf=0x610054cb <_cygtls::call(unsigned long (*)
(void*, void*), void*)+91>)
at /usr/src/debug/cygwin-1.7.17-1/winsup/cygwin/cygtls.cc:99
#20 0x0022ff48 in ?? ()
#21 0x00ac0412 in cygwin_crt0 (f=0x401460 <main>) at
/usr/src/debug/cygwin-1.7.17-1/winsup/cygwin/lib/cygwin_crt0.c:22
#22 0x00401015 in mainCRTStartup () at
/usr/src/debug/cygwin-1.7.17-1/winsup/cygwin/crt0.c:29
If I link Ruby dynamically, I always get the SIGABRT (here
RUBYLIB is set as in the static linking case):
Starting program: /usr/src/packages/klayout/build/main/klayout.exe
[New Thread 1648.0x13e4]
[New Thread 1648.0xc54]
[New Thread 1648.0x1170]
[New Thread 1648.0x1390]
[New Thread 1648.0x1384]
[New Thread 1648.0x10bc]
[New Thread 1648.0x1330]
Program received signal SIGABRT, Aborted.
0x00000000 in ?? ()
(gdb) bt
#0 0x00000000 in ?? ()
#1 0x77566a74 in ntdll!_CIsin () from /cygdrive/c/Windows/system32
/ntdll.dll
#2 0x75907634 in WriteFile () from /cygdrive/c/Windows/system32
/KERNELBASE.dll
#3 0x0000008c in ?? ()
#4 0x76d0543c in WriteFile () from /cygdrive/c/Windows/system32
/kernel32.dll
#5 0x610dc3f4 in sig_send (p=0x759214b5 <OutputDebugStringA+260>,
si=..., tls=0x0)
at /usr/src/debug/cygwin-1.7.17-1/winsup/cygwin/sigproc.cc:736
#6 0x610d9913 in _pinfo::kill (this=0x60fd0000, si=...) at
/usr/src/debug/cygwin-1.7.17-1/winsup/cygwin/signal.cc:249
#7 0x610d9dee in kill0 (pid=<optimized out>, si=...) at
/usr/src/debug/cygwin-1.7.17-1/winsup/cygwin/signal.cc:300
#8 0x610d9f40 in kill (pid=1648, sig=6) at
/usr/src/debug/cygwin-1.7.17-1/winsup/cygwin/signal.cc:318
#9 0x610d9f6c in raise (sig=6) at
/usr/src/debug/cygwin-1.7.17-1/winsup/cygwin/signal.cc:285
#10 0x610da233 in abort () at
/usr/src/debug/cygwin-1.7.17-1/winsup/cygwin/signal.cc:381
#11 0x0098d10e in _Unwind_SetSpColumn (tmp_sp=<optimized out>,
cfa=<optimized out>, context=<optimized out>)
at /gnu/gcc/releases/respins/4.5.3-3/gcc4-4.5.3-3
/src/gcc-4.5.3/libgcc/../gcc/unwind-dw2.c:1259
#12 uw_init_context_1 (context=0x22a5e0, outer_cfa=0x22a680,
outer_ra=0x779bdb _fu4016___ZNSs4_Rep20_S_empty_rep_storageE+56>)
at
/gnu/gcc/releases/respins/4.5.3-3/gcc4-4.5.3-3/src/
gcc-4.5.3/libgcc/../gcc/unwind-dw2.c:1466
#13 0x0098d647 in _Unwind_Resume (exc=0x206b3df8)
at /gnu/gcc/releases/respins/4.5.3-3/
gcc4-4.5.3-3/src/gcc-4.5.3/libgcc/../gcc/unwind.inc:226
#14 0x00779bdb in _fu4016___ZNSs4_Rep20_S_empty_rep_storageE ()
#15 0x006cb9cc in _fu2527___ZNSs4_Rep20_S_empty_rep_storageE ()
#16 0x008852dc in lay::HelpDialog::build_index() ()
#17 0x0090aee4 in lay::MainWindow::about_to_exec() ()
#18 0x00677c83 in _fu2250___ZNSs4_Rep20_S_empty_rep_storageE ()
#19 0x0040126a in klayout_main(int, char**) ()
#20 0x00401563 in _fu1___ZNSs4_Rep20_S_empty_rep_storageE ()
#21 0x6100763a in _cygwin_exit_return () at
/usr/src/debug/cygwin-1.7.17-1/winsup/cygwin/dcrt0.cc:974
#22 0x6100533d in _cygtls::call2 (this=<optimized out>,
func=0x61006c50 <dll_crt0_1(void*)>, arg=0x0,
buf=0x610054cb <_cygtls::call(unsigned long (*)
(void*, void*), void*)+91>)
at /usr/src/debug/cygwin-1.7.17-1/winsup/cygwin/cygtls.cc:99
#23 0x0022ff48 in ?? ()
#24 0x0098eaf2 in cygwin_crt0 (f=0x401460 <main>) at
/usr/src/debug/cygwin-1.7.17-1/winsup/cygwin/lib/cygwin_crt0.c:22
#25 0x00401015 in mainCRTStartup () at
/usr/src/debug/cygwin-1.7.17-1/winsup/cygwin/crt0.c:29
Ideas?
Regards,
Achim.
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Cygwin-ports-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cygwin-ports-general