Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segfault in t/output_file_exe.t #6

Open
eserte opened this issue Jan 16, 2017 · 4 comments
Open

Segfault in t/output_file_exe.t #6

eserte opened this issue Jan 16, 2017 · 4 comments

Comments

@eserte
Copy link

eserte commented Jan 16, 2017

On a Ubuntu 16.04 I observe the following test failure:

    #   Failed test 'return value 42'
    #   at t/output_file_exe.t line 45.
    #          got: '0'
    #     expected: '42'
    # child died with siganl 11
    # Looks like you failed 1 test of 5.

#   Failed test 'exe'
#   at t/output_file_exe.t line 62.
# Looks like you failed 1 test of 1.
t/output_file_exe.t ......... 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests 

The same error happens on other smoker systems:
http://matrix.cpantesters.org/?dist=FFI-TinyCC%200.23;os=linux;reports=1#sl=2,1

@eserte
Copy link
Author

eserte commented Jan 25, 2020

On CentOS8 it's failing for different test scripts (t/ffi_tinycc__add_file_dll.t:...). Here's a backtrace (perl 5.30.1, FFI-TinyCC-0.29):

(gdb) bt
#0  0x00007f4e4130b9ec in tcc_load_object_file ()
   from /home/cpansand/.cpan/build/2020012519/FFI-TinyCC-0.29-0/blib/lib/auto/share/dist/FFI-TinyCC/libtcc.so
#1  0x00007f4e413052a8 in tcc_add_file_internal ()
   from /home/cpansand/.cpan/build/2020012519/FFI-TinyCC-0.29-0/blib/lib/auto/share/dist/FFI-TinyCC/libtcc.so
#2  0x00007f4e413054d6 in tcc_add_library_internal ()
   from /home/cpansand/.cpan/build/2020012519/FFI-TinyCC-0.29-0/blib/lib/auto/share/dist/FFI-TinyCC/libtcc.so
#3  0x00007f4e41305588 in tcc_add_crt ()
   from /home/cpansand/.cpan/build/2020012519/FFI-TinyCC-0.29-0/blib/lib/auto/share/dist/FFI-TinyCC/libtcc.so
#4  0x00007f4e4130581b in tcc_set_output_type ()
   from /home/cpansand/.cpan/build/2020012519/FFI-TinyCC-0.29-0/blib/lib/auto/share/dist/FFI-TinyCC/libtcc.so
#5  0x00007f4e4176ff0d in ffi_call_unix64 ()
   from /opt/perl-5.30.1/lib/site_perl/5.30.1/x86_64-linux/auto/FFI/Platypus/Platypus.so
#6  0x00007f4e4176f087 in ffi_call_int ()
   from /opt/perl-5.30.1/lib/site_perl/5.30.1/x86_64-linux/auto/FFI/Platypus/Platypus.so
#7  0x00007f4e4175f25e in ffi_pl_sub_call ()
   from /opt/perl-5.30.1/lib/site_perl/5.30.1/x86_64-linux/auto/FFI/Platypus/Platypus.so
#8  0x00000000004cbe55 in Perl_pp_entersub ()
#9  0x00000000004c2903 in Perl_runops_standard ()
#10 0x0000000000445774 in perl_run ()
#11 0x000000000042003a in main ()

@eserte
Copy link
Author

eserte commented Jan 25, 2020

... it segfaults also on Fedora31. Full list of failing test scripts, on both CentOS and Fedora:

  • t/ffi_tinycc__add_file_dll.t
  • t/ffi_tinycc__output_file_dll.t
  • t/ffi_tinycc__set_output_type.t

@eserte
Copy link
Author

eserte commented Jan 25, 2020

However, no segfaults anymore on my Ubuntu 16.04 smoker.

@plicease
Copy link
Member

Thanks for reporting this. I am not sure if this is a bug in my module or in TinyCC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants