{"action":"closed","issue":{"url":"https://api.github.com/repos/irssi/scripts.irssi.org/issues/545","repository_url":"https://api.github.com/repos/irssi/scripts.irssi.org","labels_url":"https://api.github.com/repos/irssi/scripts.irssi.org/issues/545/labels{/name}","comments_url":"https://api.github.com/repos/irssi/scripts.irssi.org/issues/545/comments","events_url":"https://api.github.com/repos/irssi/scripts.irssi.org/issues/545/events","html_url":"https://github.com/irssi/scripts.irssi.org/issues/545","id":376444721,"node_id":"MDU6SXNzdWUzNzY0NDQ3MjE=","number":545,"title":"[trigger.pl] crashes the whole irssi on -command 'script unload trigger'","user":{"login":"kli0rf","id":18033767,"node_id":"MDQ6VXNlcjE4MDMzNzY3","avatar_url":"https://avatars3.githubusercontent.com/u/18033767?v=4","gravatar_id":"","url":"https://api.github.com/users/kli0rf","html_url":"https://github.com/kli0rf","followers_url":"https://api.github.com/users/kli0rf/followers","following_url":"https://api.github.com/users/kli0rf/following{/other_user}","gists_url":"https://api.github.com/users/kli0rf/gists{/gist_id}","starred_url":"https://api.github.com/users/kli0rf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kli0rf/subscriptions","organizations_url":"https://api.github.com/users/kli0rf/orgs","repos_url":"https://api.github.com/users/kli0rf/repos","events_url":"https://api.github.com/users/kli0rf/events{/privacy}","received_events_url":"https://api.github.com/users/kli0rf/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-11-01T15:33:38Z","updated_at":"2018-11-01T20:34:59Z","closed_at":"2018-11-01T20:34:59Z","author_association":"NONE","body":"As the title says, it crashes the whole irssi if the trigger command to unload the script itself is used:\r\n ``-publics -nocase -channels '#foobar' -pattern 'triggerstringtounloadthescript' -command 'script unload trigger'``\r\n\r\nIt was working fine until, i believe, the newer perl for RHEL and Fedora was released (happens on RHEL 7.6 and Fedora 29). \r\nHere's the output:\r\n```#foobar :» *** Error in `irssi': double free or corruption (out): 0x0000000001780390 ***\r\n======= Backtrace: =========\r\n/lib64/libc.so.6(+0x81489)[0x7f49284e1489]\r\n/lib64/libglib-2.0.so.0(g_free+0xe)[0x7f49293a279e]\r\nirssi(perl_script_unload+0x1ce)[0x4922fe]\r\nirssi[0x4924e3]\r\nirssi[0x48b562]\r\nirssi(signal_emit+0xce)[0x48b9fe]\r\nirssi[0x49742b]\r\nirssi[0x48b562]\r\nirssi(signal_emit+0xce)[0x48b9fe]\r\nirssi[0x42f16c]\r\nirssi[0x48b562]\r\nirssi(signal_emit+0xce)[0x48b9fe]\r\nirssi[0x457b21]\r\nirssi[0x48b562]\r\nirssi(signal_emit_id+0xc5)[0x48bb05]\r\nirssi[0x48b562]\r\nirssi(signal_emit_id+0xc5)[0x48bb05]\r\nirssi[0x4579ed]\r\nirssi[0x47e5c0]\r\n/lib64/libglib-2.0.so.0(g_main_context_dispatch+0x159)[0x7f492939d049]\r\n/lib64/libglib-2.0.so.0(+0x4c3a8)[0x7f492939d3a8]\r\n/lib64/libglib-2.0.so.0(g_main_context_iteration+0x2c)[0x7f492939d45c]\r\nirssi(main+0x1dc)[0x41684c]\r\n/lib64/libc.so.6(__libc_start_main+0xf5)[0x7f49284823d5]\r\nirssi[0x416ac9]\r\n======= Memory map: ========\r\n00400000-004d2000 r-xp 00000000 fd:00 5511838                            /usr/bin/irssi\r\n006d1000-006d2000 r--p 000d1000 fd:00 5511838                            /usr/bin/irssi\r\n006d2000-006de000 rw-p 000d2000 fd:00 5511838                            /usr/bin/irssi\r\n006de000-006df000 rw-p 00000000 00:00 0\r\n0170a000-01c7d000 rw-p 00000000 00:00 0                                  [heap]\r\n7f4910000000-7f4910021000 rw-p 00000000 00:00 0\r\n7f4910021000-7f4914000000 ---p 00000000 00:00 0\r\n7f4918000000-7f4918021000 rw-p 00000000 00:00 0\r\n7f4918021000-7f491c000000 ---p 00000000 00:00 0\r\n7f491f0c4000-7f491f0d9000 r-xp 00000000 fd:00 5507349                    /usr/lib64/libgcc_s-4.8.5-20150702.so.1\r\n7f491f0d9000-7f491f2d8000 ---p 00015000 fd:00 5507349                    /usr/lib64/libgcc_s-4.8.5-20150702.so.1\r\n7f491f2d8000-7f491f2d9000 r--p 00014000 fd:00 5507349                    /usr/lib64/libgcc_s-4.8.5-20150702.so.1\r\n7f491f2d9000-7f491f2da000 rw-p 00015000 fd:00 5507349                    /usr/lib64/libgcc_s-4.8.5-20150702.so.1\r\n7f491f2da000-7f491f2db000 ---p 00000000 00:00 0\r\n7f491f2db000-7f491fadb000 rw-p 00000000 00:00 0\r\n7f491fadb000-7f491fae2000 r-xp 00000000 fd:00 5773629                    /usr/lib64/perl5/vendor_perl/auto/Term/ReadKey/ReadKey.so\r\n7f491fae2000-7f491fce1000 ---p 00007000 fd:00 5773629                    /usr/lib64/perl5/vendor_perl/auto/Term/ReadKey/ReadKey.so\r\n7f491fce1000-7f491fce2000 r--p 00006000 fd:00 5773629                    /usr/lib64/perl5/vendor_perl/auto/Term/ReadKey/ReadKey.so\r\n7f491fce2000-7f491fce3000 rw-p 00007000 fd:00 5773629                    /usr/lib64/perl5/vendor_perl/auto/Term/ReadKey/ReadKey.so\r\n7f491fce3000-7f491fce6000 r-xp 00000000 fd:00 6292243                    /usr/lib64/perl5/auto/Fcntl/Fcntl.so\r\n7f491fce6000-7f491fee6000 ---p 00003000 fd:00 6292243                    /usr/lib64/perl5/auto/Fcntl/Fcntl.so\r\n7f491fee6000-7f491fee7000 r--p 00003000 fd:00 6292243                    /usr/lib64/perl5/auto/Fcntl/Fcntl.so\r\n7f491fee7000-7f491fee8000 rw-p 00004000 fd:00 6292243                    /usr/lib64/perl5/auto/Fcntl/Fcntl.so\r\n7f491fee8000-7f491feec000 r-xp 00000000 fd:00 6292249                    /usr/lib64/perl5/auto/IO/IO.so\r\n7f491feec000-7f49200eb000 ---p 00004000 fd:00 6292249                    /usr/lib64/perl5/auto/IO/IO.so\r\n7f49200eb000-7f49200ec000 r--p 00003000 fd:00 6292249                    /usr/lib64/perl5/auto/IO/IO.so\r\n7f49200ec000-7f49200ed000 rw-p 00004000 fd:00 6292249                    /usr/lib64/perl5/auto/IO/IO.so\r\n7f49200ed000-7f49200fb000 r-xp 00000000 fd:00 6555495                    /usr/lib64/perl5/vendor_perl/auto/Irssi/Irc/Irc.so\r\n7f49200fb000-7f49202fa000 ---p 0000e000 fd:00 6555495                    /usr/lib64/perl5/vendor_perl/auto/Irssi/Irc/Irc.so\r\n7f49202fa000-7f49202fb000 r--p 0000d000 fd:00 6555495                    /usr/lib64/perl5/vendor_perl/auto/Irssi/Irc/Irc.so\r\n7f49202fb000-7f49202fc000 rw-p 0000e000 fd:00 6555495                    /usr/lib64/perl5/vendor_perl/auto/Irssi/Irc/Irc.so\r\n7f49202fc000-7f492030a000 r-xp 00000000 fd:00 6555463                    /usr/lib64/perl5/vendor_perl/auto/Irssi/UI/UI.so\r\n7f492030a000-7f4920509000 ---p 0000e000 fd:00 6555463                    /usr/lib64/perl5/vendor_perl/auto/Irssi/UI/UI.so\r\n7f4920509000-7f492050a000 r--p 0000d000 fd:00 6555463                    /usr/lib64/perl5/vendor_perl/auto/Irssi/UI/UI.so\r\n7f492050a000-7f492050b000 rw-p 0000e000 fd:00 6555463                    /usr/lib64/perl5/vendor_perl/auto/Irssi/UI/UI.so\r\n7f492050b000-7f4920528000 r-xp 00000000 fd:00 6555461                    /usr/lib64/perl5/vendor_perl/auto/Irssi/Irssi.so\r\n7f4920528000-7f4920727000 ---p 0001d000 fd:00 6555461                    /usr/lib64/perl5/vendor_perl/auto/Irssi/Irssi.so\r\n7f4920727000-7f4920728000 r--p 0001c000 fd:00 6555461                    /usr/lib64/perl5/vendor_perl/auto/Irssi/Irssi.so\r\n7f4920728000-7f4920729000 rw-p 0001d000 fd:00 6555461                    /usr/lib64/perl5/vendor_perl/auto/Irssi/Irssi.so\r\n7f4920729000-7f492072b000 r-xp 00000000 fd:00 5769300                    /usr/lib64/gconv/CP1252.so\r\n7f492072b000-7f492092a000 ---p 00002000 fd:00 5769300                    /usr/lib64/gconv/CP1252.so\r\n7f492092a000-7f492092b000 r--p 00001000 fd:00 5769300                    /usr/lib64/gconv/CP1252.so\r\n7f492092b000-7f492092c000 rw-p 00002000 fd:00 5769300                    /usr/lib64/gconv/CP1252.so\r\n7f492092c000-7f4926e56000 r--p 00000000 fd:00 5771527                    /usr/lib/locale/locale-archive\r\n7f4926e56000-7f4926e7a000 r-xp 00000000 fd:00 5512469                    /usr/lib64/libselinux.so.1\r\n7f4926e7a000-7f4927079000 ---p 00024000 fd:00 5512469                    /usr/lib64/libselinux.so.1\r\n7f4927079000-7f492707a000 r--p 00023000 fd:00 5512469                    /usr/lib64/libselinux.so.1\r\n7f492707a000-7f492707b000 rw-p 00024000 fd:00 5512469                    /usr/lib64/libselinux.so.1\r\n7f492707b000-7f492707d000 rw-p 00000000 00:00 0\r\n7f492707d000-7f4927080000 r-xp 00000000 fd:00 5506370                    /usr/lib64/libkeyutils.so.1.5\r\n7f4927080000-7f492727f000 ---p 00003000 fd:00 5506370                    /usr/lib64/libkeyutils.so.1.5\r\n7f492727f000-7f4927280000 r--p 00002000 fd:00 5506370                    /usr/lib64/libkeyutils.so.1.5\r\n7f4927280000-7f4927281000 rw-p 00003000 fd:00 5506370                    /usr/lib64/libkeyutils.so.1.5\r\n7f4927281000-7f492728e000 r-xp 00000000 fd:00 5512479                    /usr/lib64/libkrb5support.so.0.1\r\n7f492728e000-7f492748e000 ---p 0000d000 fd:00 5512479                    /usr/lib64/libkrb5support.so.0.1\r\n7f492748e000-7f492748f000 r--p 0000d000 fd:00 5512479                    /usr/lib64/libkrb5support.so.0.1\r\n7f492748f000-7f4927490000 rw-p 0000e000 fd:00 5512479                    /usr/lib64/libkrb5support.so.0.1\r\n7f4927490000-7f49274a5000 r-xp 00000000 fd:00 5505788                    /usr/lib64/libz.so.1.2.7Aborted```"}}
{"actor":{"display_login":"kli0rf"}}