Displaying 20 results from an estimated 10000 matches similar to: "segmentation fault - debugging"
2005 Jun 23
1
mac osx, g95 package port problem
Hi all,
I have a working package for linux, including fortran 95 code compiled with
g95,
that I need to port to OS X. The package works on Linux and seems to load on
the Mac,
but when I try to run a function that calls C or Fortran I'm told that the
symbol is not loaded.
I'm developing via a shell account on an OS X system, I don't have access to
a desktop.
The set up is:
R
2005 May 18
2
Fortran 95 in R ?
Is it possible to run Fortran 95 code from R? I don't think so, but
hopefully someone can prove me wrong.
Here is the test I tried:
A little fortran 95 subroutine:
subroutine allloc()
real, dimension(:, :), allocatable :: a
integer :: n
n = 10
allocate(a(n,n+1))
end
I then compiled:
>g95 -c allloc.f
>R CMD SHLIB allloc.o
Here is what happens when I try to dyn.load it in R 2.1.0
2005 May 18
2
Fortran 95 in R ?
Is it possible to run Fortran 95 code from R? I don't think so, but
hopefully someone can prove me wrong.
Here is the test I tried:
A little fortran 95 subroutine:
subroutine allloc()
real, dimension(:, :), allocatable :: a
integer :: n
n = 10
allocate(a(n,n+1))
end
I then compiled:
>g95 -c allloc.f
>R CMD SHLIB allloc.o
Here is what happens when I try to dyn.load it in R 2.1.0
2005 Oct 08
1
windows/g95 peculiarity
I'm not looking for an answer here, this is just a report of a
peculiar event I've observed
and can reproduce.
I'm developing a g95 (20050129) compiled package on windows xp pro
using R-2.1.1, and gcc-3.4.2 (mingw special). An older version of the
F95 package compiled and ran without problems. The new version of the
package includes extensive changes in the code.
The package has a
2005 Sep 28
3
gfortran Makefile for windows
Hi all,
(Originally posted to r-help)
I'm porting a package that I've worked on for OS X to Windows.
The package is written in F95 so I need to compile it with gfortran
and link it with gcc4.
I've been trying to build an R with gcc4 without luck so far. If there is
a binary of such a thing info would be appreciated.
This package requires a Makefile. My question is, how can I find
2005 Aug 25
2
S3 class question
Hi,
I have a class called "spss" containing prepared info from an SPSS file.
>...
>class(ret) = "spss"
>return(ret)
The function that returns this defined in a file that I source into R.
Also in that file is a function matSummary.spss.
I think I ought to be able to call
>matSummary(ret)
to run the function, but only
>matSummary.spss(ret)
will work.
What
2004 Nov 17
3
3d scatter plot with drop line
This is a follow up to my question from yesterday. I want to do in R
what is called a "3d scatter plot with drop lines" in S-PLUS.
Basically, it's a 3dscatterplot with lines connecting the x-y grid to
the z points.
The lines give a better perspective on the shape of the data surface.
How to?
Joel Bremson
UC Davis Statistics
2007 Jul 13
2
trouble compiling Hmisc package
Hi:
We're trying to install the Hmisc package on a Solaris 9 machine.
Here's what we get:
R CMD INSTALL /usr/local/srctree/Hmisc_3.4-2.tar.gz
* Installing to library '/usr/local/lib/R/library'
* Installing *source* package 'Hmisc' ...
** libs
g95 -fPIC -g -O2 -c cidxcn.f -o cidxcn.o
g95 -fPIC -g -O2 -c cidxcp.f -o cidxcp.o
g95 -fPIC -g -O2 -c hoeffd.f -o
2008 Jan 26
1
Capturing info from system calls in Windows
Colleagues,
I am preparing scripts that will be used by others on both Windows and
Linux/OSX platforms. The scripts call an existing Fortran
application. The user may have any of a a variety of Fortran
compilers - my goal is to determine whether or not the test command
returns "no input files" or "command not found" (i.e., so that I can
confirm which Fortran they
2009 Mar 11
1
libf95.a: could not read symbols?
I'm sorry for having to post this, but I've run out of ideas. I've been
trying to build R-2.8.1 from source for installation on FreeBSD 6.4
(seems to be working fine on osx) and keep getting the same results,
regardless of how I set ./configure
$ ./configure --enable-R-shlib --with-x=no --with-blas FFLAGS="-fpic"
R is now configured for x86_64-unknown-freebsd6.0
Source
2006 Aug 19
1
problem with Rcmd check and fortran95, makefile
Hi all,
I have Win XP and R 2.3.1 on my notebook. I would like to write a package which includes some Fortran 95 code. Interestingly, if I compile and link the simple file test90.f90 directly with
g95 -c test90.f90
g95 -shared -o test90.dll test90.o
then PE Viewer ( a dll viewer) shows me the right functions in the export table, hence I can use the dll in R. But as it should become part of a
2009 Feb 05
4
wxRuby - Segmentation fault
# Windows XP Professional + SP3
# ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
# wxruby (1.9.9)
If you can tell me how to update to 1.9.10, I''d be happy to run
this and a few other tests. Also, if I should be posting bugs
somewhere else, please let me know.
Here''s a bit of code to reproduce a seg fault:
-----------------------------------------------------------
2004 Nov 17
1
persp grid
I've got a 4x4 matrix of points from a 2-way ANOVA I'd like to plot.
The x,y correspond to the treatment groups and look like this
((1,1),(1,2),(1,3),(1,4),(2,1),...).
The z is the 4x4 matrix.
How can I get persp to grid the x,y axis with only the numbers 1-4 on both?
Regards,
Joel Bremson
UC Davis Statistics Dept.
2005 Sep 28
1
gfortran Makefile for cygwin
Hi all,
I'm porting a package that I've worked on for OS X to Cygwin/Windows.
This package requires a Makefile. My question is, how can I find out
(or what is), the link command?
Here is the OS X Makefile:
RLIB_LOC=${R_HOME}
F90_FILES=\
class_data_frame.f90 \
class_old_dbest.f90 \
class_cm_data.f90 \
class_cm.f90 \
class_bgw.f90 \
class_cm_mle.f90 \
cme.f90
FORTRAN_FILES=\
dgletc.f
2009 May 22
2
Step by step: Making an R package with Fortran 95
To all. I need your help. The big question is: How do I make an R library
with Fortran 95 files? You may assume that I am a pretty decent programmer
in both R and Fortran. I lay out a scenario and need your help!
I know how to make an ordinary R package and have dabbled with R + Fortran
95 *.dll linking. I do not have a great handle on the whole Makevars file
and whatever else I might need
2005 Jul 27
1
spss.read factor reversal
Hi,
I'm having a problem with spss.read reversing my factor input.
Here is the input copied from the spss data editor:
color cost
1 2.30
2 2.40
3 3.00
1 2.10
1 1.00
1 2.00
2 4.00
2 3.20
2 2.33
3 2.44
3 2.55
For color, red=1, blue=2, and green = 3. It's type is 'String' and
>out=read.spss(file)
>out
$COLOR
[1] green blue red green green green blue blue blue red red
2005 May 20
1
using src/Makevars file
Hi all,
Thanks to all who offered advice on using F95 in R.
Now I'm trying to compile a test package using gfortran, Linux 2.4.21 and
R 2.1.0.
I was able to successfully compile and use a test F95 routine by setting my
environment variables as follows in bash:
export PATH=~/bin/:$PATH
export F77=gfortran
export LD_LIBRARY_PATH=~/bin/irun/lib
export GFORTRAN_STDIN_UNIT=-1
Now I'm
2005 Jul 25
2
[Fwd: e2fsck Segmentation Fault]
Hi,
Somehow I've managed to get e2fsck to seg fault.. The filesystem in
question started acting very strangely (e.g. filenames changing from
music to MuSiC etc) so I rebooted, and since when fsck has crashed every
time it has been run.
I'm not really sure what any of this means, so I didn't know what
debugging output to include, but below is the output of e2fsck.
(I would have
2010 Jan 31
2
[LLVMdev] Segmentation Fault
Hello,
I am learning to write passes in LLVM and currently using LLVM 2.6. I
followed the steps mentioned to write the helloworld pass and when i run it
using opt, I get a Seg Fault. Not able to figure out why this is happening.
It would be great if someone can point out where I am going wrong.
Thanks.
Hersh.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2023 Aug 20
1
Segmentation fault
Hi Federico,
Segfaults are 100% not by design. Typically if something seg faulted,
either there is a logic bug or a component mismatch. The you should
definitely be able to use more than one connection (we use multiple
connections with postgres odbc with no issue).
If Asterisk segfaults when using odbc
Try this:
- use ps and get the pid of Asterisk
- run gdb, attach to the asterisk pid
- do