[DSE-Dev] Bug#1095018: this would be the swig change
Russell Coker
russell at coker.com.au
Thu Feb 6 05:51:27 GMT 2025
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=%231091131
Below is the backtrace from the Ruby test case you provided. It shows that it
fails in SWIG related code. The attached patch was recently applied in
version 3.7-3.1 to build with SWIG 4.3 and close the above bug.
The patch is needed to match the latest SWIG so reverting that patch is not an
option - the code in question can't compile without it.
I think that the root cause of this is SWIG.
Is there anyone who has had previous experience of Ruby and SWIG who can help
with this?
(gdb) bt
#0 rbimpl_RB_TYPE_P_fastpath (obj=8, t=RUBY_T_DATA) at /usr/include/
ruby-3.3.0/ruby/internal/value_type.h:351
#1 RB_TYPE_P (t=RUBY_T_DATA, obj=8) at /usr/include/ruby-3.3.0/ruby/internal/
value_type.h:378
#2 Check_Type (t=RUBY_T_DATA, v=8) at /usr/include/ruby-3.3.0/ruby/internal/
value_type.h:434
#3 rb_data_object_get (obj=8) at /usr/include/ruby-3.3.0/ruby/internal/core/
rdata.h:314
#4 SWIG_Ruby_GetModule (clientdata=0x0) at ./src/selinuxswig_ruby_wrap.c:1823
#5 SWIG_InitializeModule (clientdata=0x0) at ./src/selinuxswig_ruby_wrap.c:
12230
#6 Init_selinux () at ./src/selinuxswig_ruby_wrap.c:12402
#7 0x00007ffff7a3bfe6 in dln_load () from /lib/x86_64-linux-gnu/
libruby-3.1.so.3.1
#8 0x00007ffff7c55bd1 in ?? () from /lib/x86_64-linux-gnu/libruby-3.1.so.3.1
#9 0x00007ffff7b0d8b8 in ?? () from /lib/x86_64-linux-gnu/libruby-3.1.so.3.1
#10 0x00007ffff7b0de71 in rb_require_string () from /lib/x86_64-linux-gnu/
libruby-3.1.so.3.1
#11 0x00007ffff7c49e6c in ?? () from /lib/x86_64-linux-gnu/libruby-3.1.so.3.1
#12 0x00007ffff7c5f211 in ?? () from /lib/x86_64-linux-gnu/libruby-3.1.so.3.1
#13 0x00007ffff7c54d20 in ?? () from /lib/x86_64-linux-gnu/libruby-3.1.so.3.1
#14 0x00007ffff7c57f92 in ?? () from /lib/x86_64-linux-gnu/libruby-3.1.so.3.1
#15 0x00007ffff7c5c686 in rb_vm_exec () from /lib/x86_64-linux-gnu/
libruby-3.1.so.3.1
#16 0x00007ffff7ab98d6 in ?? () from /lib/x86_64-linux-gnu/libruby-3.1.so.3.1
#17 0x00007ffff7abd0e7 in ruby_run_node () from /lib/x86_64-linux-gnu/
libruby-3.1.so.3.1
#18 0x000055555555510d in ?? ()
#19 0x00007ffff7833d68 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#20 0x00007ffff7833e25 in __libc_start_main () from /lib/x86_64-linux-gnu/
libc.so.6
#21 0x0000555555555151 in _start ()
--
My Main Blog http://etbe.coker.com.au/
My Documents Blog http://doc.coker.com.au/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-swig-bindings-for-4.3.0.patch
Type: text/x-patch
Size: 3549 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/selinux-devel/attachments/20250206/f46958db/attachment.bin>
More information about the SELinux-devel
mailing list