Hi Rafal
You can email me the files and I'll take a look at it. I'm assuming
you have compiled from source for the 64-bit linux system.
Best regards,
Pall Melsted
On Mon, Mar 4, 2013 at 9:54 AM, Rafal Mostowy <
rafal....@gmail.com> wrote:
> I have a very peculiar problem in the newest version of STRUCTURE when
> running under Ubuntu 12.10. Based on what I've tested so far, this problem
> occurs only under the linkage model with a large number of loci (at least
> 1000) and when populations of origin are inferred site-by-site.
>
> The problem is the following: when the program is finishing the console
> returns an output "segmentation fault (core dumped)" and the end of the
> output_ss file is truncated (always a number of loci missing for the last
> sequence).
>
> I tried to look into the source file to identify the problem because it
> seems that it has something to do with memory freeing. Indeed, I noticed
> that the when I comment out the line no 196-200 in the file 'structure.c'
> then the error message disappears. So it seems the problem is with the
> memory allocation of objects: double *R, *sumR and *varR, or rather freeing
> them.
>
> I have tested this problem on another linux computer (i.e., a linux-based
> bioinformatics cluster at my University) and the result was identical. I
> have no idea why this occurs but extensive googling suggests that I'm the
> only one who has this problem.
>
> Oh, and interestingly, when I don't free double* R I get a more precise
> memory freeing error, which I have uploaded to this email (error1.txt). I'm
> also uploading all the files which are causing error (mainparams,
> extraparams, cpsABCDE.dat). The command I used was:
> ./structure -i cpsABCDE.dat
> ----- UPDATE ----- I tried attaching files to this email but I keep getting
> error #340 so I discarded them. I'm happy to email them directly to whoever
> is kind enough to try to help me. Thanks!
>
> I just want to emphasise that this problem doesn't occur on my Mac OS X,
> although I haven't compiled the C code explicitly, and the pre-compiled
> programme doesn't work on my Linux. The kernel I'm using is 3.5.0-25-generic
> and it's a 64 bit computer (x86_64).
>
> I'd appreciate any insight into this problem!
>
> Thanks,
> Rafal
>
> --
> You received this message because you are subscribed to the Google Groups
> "structure-software" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
structure-softw...@googlegroups.com.
> To post to this group, send email to
structure...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/structure-software?hl=en.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>