Segmentation fault · Issue #3966 · JuliaLang/julia (original) (raw)

Hi,

I have found some weird behaviour in a code I am using right now. This code can be found in:

complete.jl

In the only file that there is in that repository, at the end of it, there are some parameters that define the execution, in particular this three:

number_of_bs = 10
antennas_tx = 4
antennas_rx = 2

If the parameter antennas_tx is changed to 3 and number_of_bs is set to 10, 11, or 12, executing this code will raise a Segmentation Fault.

Sometimes the error message is not a Segmentation Fault, but something like:

julia(41398,0x7fff70751180) malloc: *** error for object 0x10d807008: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
Stack dump:
0.  Running pass 'X86 DAG->DAG Instruction Selection' on function '@julia_anonymous613'
Abort trap: 6

Or:

julia(41428,0x7fff70751180) malloc: *** error for object 0x10a7a2808: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
Stack dump:
0.  Running pass 'Slot index numbering' on function '@julia_ctranspose'
Abort trap: 6

For other parameters I have tried, it works perfectly fine, and without any problem.

Regards,

Juanjo.