Bug 1120384

Summary: running cpan: *** buffer overflow detected ***: /usr/bin/perl terminated
Product: [openSUSE] openSUSE Tumbleweed Reporter: Denix Treize <denix13>
Component: DevelopmentAssignee: Michael Schröder <mls>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: denix13, guillaume.gardet, marius.kittler, meissner, mkravec
Version: Current   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE Factory   
See Also: https://bugzilla.opensuse.org/show_bug.cgi?id=1120267
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: result of valgrind /usr/bin/perl
gdb session
added a gdb session

Description Denix Treize 2018-12-28 15:13:05 UTC
Created attachment 793435 [details]
result of valgrind /usr/bin/perl

running cpan: *** buffer overflow detected ***: /usr/bin/perl terminated

# rpm -q perl perl-base
perl-5.28.1-1.1.x86_64
perl-base-5.28.1-1.1.x86_64

# rpm -qf /usr/bin/cpan
perl-5.28.1-1.1.x86_64

# cpan

cpan shell -- CPAN exploration and modules installation (v2.20)
Enter 'h' for help.

*** buffer overflow detected ***: /usr/bin/perl terminated
Aborted (core dumped)

Possibly related to https://bugzilla.opensuse.org/show_bug.cgi?id=1120267
as I also have the same bug
Comment 1 Denix Treize 2018-12-28 15:56:19 UTC
it was valgrind /usr/bin/cpan of course
Comment 2 Denix Treize 2018-12-29 18:11:04 UTC
Created attachment 793452 [details]
gdb session
Comment 3 Denix Treize 2018-12-29 18:15:25 UTC
Created attachment 793453 [details]
added a gdb session

added a gdb session
Comment 4 Guillaume GARDET 2019-01-02 13:37:18 UTC
I encounter the same kind of bug with 'git send-email'. Adding '--confirm=never' option to remove the confirmation prompt make it work.
The problem is on aarch64 too.
Comment 5 Marius Kittler 2019-01-02 13:47:56 UTC
The ticket https://bugzilla.opensuse.org/show_bug.cgi?id=1120267 is the same thing for sure. The backtrace is the same. Another very simple example to reproduce:

```
perl -eprint\(\"42\\n\"\)\; # works
perl -deprint\(\"42\\n\"\)\; # fails when initializing readline
echo 'parse_options("ReadLine=0");' >> ~/.perldb
perl -deprint\(\"42\\n\"\)\; # works without readline support
```
Comment 6 Michael Schröder 2019-01-08 12:39:53 UTC
Marking as dup.

*** This bug has been marked as a duplicate of bug 1120759 ***