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

Segmentation fault #3966

Closed
guolas opened this issue Aug 6, 2013 · 4 comments
Closed

Segmentation fault #3966

guolas opened this issue Aug 6, 2013 · 4 comments

Comments

@guolas
Copy link

guolas commented Aug 6, 2013

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.

@pao
Copy link
Member

pao commented Aug 7, 2013

For single files like this, you may find it easier to use a gist: https://gist.github.com/

@JeffBezanson
Copy link
Member

@ViralBShah @andreasnoackjensen Could you take a look? This change fixed the segfault for me but I wonder if there are more cases of this, or if I did something wrong.

@andreasnoack
Copy link
Member

I am on the road today so I cannot look into it before tomorrow. It is possible that the work space is not large enough, but there has also been weird errors in xgesdd. It calls xlasd4 which is buggy but I have not been able to make xgesdd fail consistently. Usually it had happened inside larger pieces of code.

@ViralBShah
Copy link
Member

#2340 is the xlasd4 issue for which there is no resolution yet.

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

5 participants