[R-SIG-Mac] How to report a segmentation fault
Ben Madin
lists at remoteinformation.com.au
Wed Dec 7 15:03:10 CET 2011
Daniel,
I can't help much with the segfault, but if you want someone to help you need to provide a minimum reproducible example. In this case you have the code, but not the data - leaving me wondering :
is this dataset so huge that most computers would run out of capacity?
does it happen with a subset of the data? (even just a few rows... one row?)
does it happen with a hist of anything - what does hist(rnorm(1e4)) give you ?
is there a column called foo in the file?
is there an out of range value in the csv file?
I would suggest you supply the data (or at least as much as is required to reproduce the error), and also the output of sessionInfo()
As a R newbie, you might also want to have a look at :
http://www.r-project.org/posting-guide.html
http://www.catb.org/~esr/faqs/smart-questions.html
I hope someone can help you more than I!
cheers
Ben
On 07/12/2011, at 9:34 PM, Daniel Serodio (lists) wrote:
> I'm a complete R newbie. My first R script is to generate a histogram from a CSV file, and I'm getting a segmentation fault every time.
>
> > csv <- read.csv(file='data.csv',head=TRUE,sep=",")
> > hist(csv$foo)
>
> *** caught segfault ***
> address 0x0, cause 'memory not mapped'
>
> Traceback:
> 1: title(main = main, sub = sub, xlab = xlab, ylab = ylab, ...)
> 2: plot.histogram(r, freq = freq1, col = col, border = border, angle = angle, density = density, main = main, xlim = xlim, ylim = ylim, xlab = xlab, ylab = ylab, axes = axes, labels = labels, ...)
> 3: plot(r, freq = freq1, col = col, border = border, angle = angle, density = density, main = main, xlim = xlim, ylim = ylim, xlab = xlab, ylab = ylab, axes = axes, labels = labels, ...)
> 4: hist.default(csv$last_web_mail_date)
> 5: hist(csv$last_web_mail_date)
>
>
>
>
> How should I report this bug? I'm running R 2.14.0 (compiled by "brew") on Lion
>
> Thanks in advance,
> Daniel Serodio
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
More information about the R-SIG-Mac
mailing list