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

SF#379 Passing qsort an extra argument causes a segfault #104

Closed
zmughal opened this issue May 17, 2015 · 1 comment
Closed

SF#379 Passing qsort an extra argument causes a segfault #104

zmughal opened this issue May 17, 2015 · 1 comment

Comments

@zmughal
Copy link
Member

zmughal commented May 17, 2015

From https://sourceforge.net/p/pdl/bugs/379/

In PDL-2.00716:

pdl> random(10)->average(1) for (0..100)
#average doesn't take an argument, but at least ignores it.

pdl> random(10)->qsort(1) for (0..100)
Segmentation fault: 11

I've also gotten:

pdl> random(10)->qsort(1) for (0..100)
perl(88949,0x7fff76629300) malloc: *** error for object 0x7f918384b918: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6

It doesn't happen every time, which is why I put the postfix for() on there. Sometimes I change the for() range and that makes the segfault happen.

I see this present in 2.006 as well.

Loaded PDL v2.006 (supports bad values)
pdl> random(10)->qsort(1) for (0..100)
pdl> random(10)->qsort(1) for (0..100)
pdl> random(10)->qsort(1) for (0..100)
pdl> random(10)->qsort(1) for (0..100)
pdl> random(10)->qsort(1) for (0..100)
pdl> random(10)->qsort(1) for (0..1000)
DUMPING 0x7ffe1bfc4720     datatype: 0
   State: (503564880) DATAFLOW_F|NOMYDIMS|DONTTOUCHDATA|HDRCPY|TRACEDEBUG
Segmentation fault: 11

perldl -V attached for 2.00716.

@mohawk2
Copy link
Member

mohawk2 commented Apr 9, 2018

Closed on SF 2016-10-08.

@mohawk2 mohawk2 closed this as completed Apr 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants