nayakgi / perl-compiler

Automatically exported from code.google.com/p/perl-compiler
Other
0 stars 0 forks source link

double free: t/issue95.t test 5 fails with >=5.18 #356

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
t/issue95.t test 5 fails with >=5.18
with this backtrace:

*** glibc detected *** ./ccode95i_5c_o3_ub: double free or corruption (out): 
0x0000000000b7b540 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x7e626)[0x2aad6a1be626]
./ccode95i_5c_o3_ub(Perl_sv_setsv_flags+0x815)[0x5fba35]
./ccode95i_5c_o3_ub(Perl_gv_autoload_pvn+0x1c1)[0x592cc1]
./ccode95i_5c_o3_ub(Perl_pp_entersub+0x5db)[0x5f491b]
./ccode95i_5c_o3_ub(Perl_runops_standard+0x13)[0x5ed2e3]
./ccode95i_5c_o3_ub(perl_run+0x318)[0x58edf8]
./ccode95i_5c_o3_ub(main+0x2c6)[0x572ac4]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x2aad6a16176d]
./ccode95i_5c_o3_ub[0x41d9f5]

Original issue reported on code.google.com by reini.urban on 9 Jul 2014 at 10:06

GoogleCodeExporter commented 9 years ago
Fixed with commit e895b2618cb5a52a2a41cbace507fd7c78d70680
Author: Reini Urban <rurban@cpanel.net>
Date:   Sat Jul 19 16:46:30 2014 -0500

    Fix invalid free of Net::SSLeay::ERROR_WANT_WRITE (95)

    This is caused by an autoloaded constant, which does not exist
    (Net::SSLeay::ERROR_WANT_WRITE) inside Net::SSLeay::AUTLOAD and is thus
    directed to gv_autoload, which required this string to be dynamic.

    Added an -O3 exception in save_pv_or_rv, similar to warnings::Bits.

Original comment by reini.urban on 19 Jul 2014 at 9:48