nayakgi / perl-compiler

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

EV - Modification of a read-only value attempted XSLoader.pm line 92 #368

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

[root@localhost ~]# perlcc -O3 -e 'use EV' -o ev
[root@localhost ~]# ./ev
Modification of a read-only value attempted at 
/root/perl5/perlbrew/perls/perl-5.14.4/lib/5.14.4/XSLoader.pm line 95.
Segmentation fault

[root@localhost ~]# perlcc -e 'use EV' -o ev
[root@localhost ~]# ./ev
Modification of a read-only value attempted at 
/root/perl5/perlbrew/perls/perl-5.14.4/lib/5.14.4/XSLoader.pm line 95.
Segmentation fault

[root@localhost ~]# gdb ./ev

(gdb) r
Starting program: /root/./ev 
Modification of a read-only value attempted at 
/root/perl5/perlbrew/perls/perl-5.14.4/lib/5.14.4/XSLoader.pm line 95.

Program received signal SIGSEGV, Segmentation fault.
0x0000000000511fd7 in Perl_dounwind ()
Missing separate debuginfos, use: debuginfo-install glibc-2.17-55.el7.x86_64 
nss-softokn-freebl-3.15.4-2.el7.x86_64
(gdb) bt full
#0  0x0000000000511fd7 in Perl_dounwind ()
No symbol table info available.
#1  0x00000000004847b8 in S_my_exit_jump ()
No symbol table info available.
#2  0x000000000048a541 in Perl_my_failure_exit ()
No symbol table info available.
#3  0x00000000005125d5 in Perl_die_unwind ()
No symbol table info available.
#4  0x00000000004c4f18 in Perl_vcroak ()
No symbol table info available.
#5  0x00000000004c49ac in Perl_croak ()
No symbol table info available.
#6  0x00000000004c4ff5 in Perl_croak_no_modify ()
No symbol table info available.
#7  0x00000000004e95c6 in Perl_sv_force_normal_flags ()
No symbol table info available.
#8  0x00000000004ed672 in Perl_sv_setiv ()
No symbol table info available.
#9  0x00007ffff02ff66c in boot_EV ()
   from /root/perl5/perlbrew/perls/perl-5.14.4/lib/site_perl/5.14.4/x86_64-linux/auto/EV/EV.so
No symbol table info available.
#10 0x00000000004e4ed7 in Perl_pp_entersub ()
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#11 0x00000000004dccf3 in Perl_runops_standard ()
No symbol table info available.
#12 0x000000000048496e in Perl_call_sv ()
No symbol table info available.
#13 0x0000000000471bb2 in dl_init ()
No symbol table info available.
#14 0x0000000000471ec4 in main ()
No symbol table info available.

What perl version are you using? Threaded? -DDEBUGGING? On what operating
system?

perl-5.14.4 x86_64-linux no debugging

Original issue reported on code.google.com by stengc...@gmail.com on 4 Aug 2014 at 4:24

GoogleCodeExporter commented 9 years ago
Same error with any -On [0-3]. 

readonly symbols in boot_EV:
Need to special-case this readonly var also, as in Coro.

Original comment by reini.urban on 4 Aug 2014 at 8:19

GoogleCodeExporter commented 9 years ago
Fixed with commit e72f2dff729704303d894405978737230c9ecb33
Author: Reini Urban <rurban@cpanel.net>
Date:   Mon Aug 4 15:32:23 2014 -0500

    C 1.51: fix EV, readonly EV::API in BOOT (analog to Coro)

    tests and fixes issue #368

I've checked all my local XS modules for more SvREADONLY_on in BOOT and found 
no more, only Coro and EV.

Original comment by reini.urban on 4 Aug 2014 at 8:38