From pgilbert@bank-banque-canada.ca  Tue Jan 23 17:57:11 2001
From: pgilbert@bank-banque-canada.ca (Paul Gilbert)
Date: Tue, 23 Jan 2001 12:57:11 -0500
Subject: [Rd] 1.2.1 segfault
Message-ID: <3A6DC5F6.65C8C7C6@bank-banque-canada.ca>

I've trapped this segfault with gdb, but I'm not sure what it means or what to do
next.

Paul
_____

$ R -d gdb
GNU gdb 4.17
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.6"...
(gdb) run
Starting program: /home/mfa5/gilp/R-versions/R-1.2.1/bin/R.bin
Warning: cannot determine current directory

R : Copyright 2001, The R Development Core Team
Version 1.2.1  (2001-01-15)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type `license()' or `licence()' for distribution details.

R is a collaborative project with many contributors.
Type `contributors()' for more information.

Type `demo()' for some demos, `help()' for on-line help, or
`help.start()' for a HTML browser interface to help.
Type `q()' to quit R.

>
Program received signal SIGWINCH, Window size changed.
0xef5b7400 in poll ()
(gdb) c
Continuing.
 require("dse2"); require("curve")
Loading required package: dse2
Loading required package: dse1
Loading required package: syskern
Loading required package: tframe
[1] TRUE
Loading required package: curve
[1] TRUE
>
Program received signal SIGWINCH, Window size changed.
0xef5b7400 in poll ()
(gdb)  system.info()
Undefined command: "system".  Try "help".
(gdb) c
Continuing.
 system.info()
          _
platform  sparc-sun-solaris2.6
arch      sparc
os        solaris2.6
system    sparc, solaris2.6
status
major     1
minor     2.1
year      2001
month     01
day       15
language  R
OSversion SunOS5
OStype    Unix
>
Program received signal SIGWINCH, Window size changed.
0xef5b7400 in poll ()
(gdb)
Continuing.
fuzz.small <- 1e-12
fuzz.large <- 1e-6
fuzz.very.large <- 1e-2
digits <- 18
all.ok <- T
test.rng <- list(kind="Wichmann-Hill",seed=c(979,1479,1542),normal.kind="Box-Muller")

>
> > > > > >
Program received signal SIGWINCH, Window size changed.
0xef5b7400 in poll ()
(gdb)
Continuing.
  z  <-  ARMA(A=array(c(1,.5,.3),c(3,1,1)),
              B=array(1,c(1,1,1)),
              C=NULL, description="simplified guide example")

  VARmodel <-l(z,simulate(z, rng=test.rng))
  SSmodel  <- l(to.SS(VARmodel),  VARmodel$data)
+
+ > > > > >
>
Program received signal SIGWINCH, Window size changed.
0xef5b7400 in poll ()
(gdb)
Continuing.

> gctorture()
>
Program received signal SIGWINCH, Window size changed.
0xef5b7400 in poll ()
(gdb)
Continuing.

>   tst <- spanSS.f <- span(SSmodel)

Program received signal SIGSEGV, Segmentation fault.
0x7111c in RunGenCollect (size_needed=2) at memory.c:1027
1027   FORWARD_CHILDREN(s);
(gdb)  bt
#0  0x7111c in RunGenCollect (size_needed=2) at memory.c:1027
#1  0x731c8 in R_gc_internal (size_needed=2) at memory.c:1670
#2  0x72dbc in Rf_allocVector (type=13, length=4) at memory.c:1542
#3  0x48794 in CPtrToRObj (p=0xd9fb78, arg=0xd9f208, Fort=1) at dotcode.c:180
#4  0x511d0 in do_dotCode (call=0x8ad148, op=0xd9f668, args=0xda163c,
    env=0xd9da48) at dotcode.c:1778
#5  0x56c44 in Rf_eval (e=0x3a9fb8, rho=0xd9da48) at eval.c:340
#6  0x58f18 in Rf_DispatchOrEval (call=0x3a94d0, generic=0x1632e8 "[",
    args=0x3a94b4, rho=0xd9da48, ans=0xefffc1c4, dropmissing=0) at eval.c:1386
#7  0xbea40 in do_subset (call=0x3a94d0, op=0x1c3754, args=0x3a94b4,
    rho=0xd9da48) at subset.c:471
#8  0x56aa0 in Rf_eval (e=0x3a94d0, rho=0xd9da48) at eval.c:317
#9  0x582c0 in do_set (call=0x3a95cc, op=0x1c3834, args=0x3a95b0, rho=0xd9da48)
    at eval.c:1008
#10 0x56aa0 in Rf_eval (e=0x3a95cc, rho=0xd9da48) at eval.c:317
#11 0x57c8c in do_begin (call=0x3c0e84, op=0x1c37c4, args=0x3a96e4,
    rho=0xd9da48) at eval.c:803
#12 0x56aa0 in Rf_eval (e=0x3c0e84, rho=0xd9da48) at eval.c:317
#13 0x570bc in Rf_applyClosure (call=0xd9d7fc, op=0x319cf4, arglist=0xb750c0,
    rho=0xb75aac, suppliedenv=0xd9d770) at eval.c:501
#14 0x7a1fc in applyMethod (call=0xd9d7fc, op=0x319cf4, args=0xb750c0,
    rho=0xb75aac, newrho=0xd9d770) at objects.c:117
#15 0x7a660 in Rf_usemethod (generic=0xefffc9b0 "genD", obj=0xd9f398,
    call=0x3c1870, args=0x15d400, rho=0xb75aac, ans=0xefffc9ac)
    at objects.c:252
#16 0x7a930 in do_usemethod (call=0x430e4c, op=0x1d0c50, args=0x430e30,
    env=0xb75aac) at objects.c:325
#17 0x56aa0 in Rf_eval (e=0x430e4c, rho=0xb75aac) at eval.c:317
#18 0x570bc in Rf_applyClosure (call=0x3db454, op=0x31df48, arglist=0xb750c0,
    rho=0xb792e4, suppliedenv=0x1b2868) at eval.c:501
#19 0x56ccc in Rf_eval (e=0x3db454, rho=0xb792e4) at eval.c:352
#20 0x58530 in Rf_evalList (el=0x3db4e0, rho=0xb792e4) at eval.c:1087
#21 0x56bd0 in Rf_eval (e=0x3db550, rho=0xb792e4) at eval.c:338
---Type <return> to continue, or q <return> to quit---
#22 0x57c8c in do_begin (call=0x3db56c, op=0x1c37c4, args=0x3db588,
    rho=0xb792e4) at eval.c:803
#23 0x56aa0 in Rf_eval (e=0x3db56c, rho=0xb792e4) at eval.c:317
#24 0x570bc in Rf_applyClosure (call=0xb79300, op=0x31a280, arglist=0xb6fc70,
    rho=0xb759e8, suppliedenv=0xb792c8) at eval.c:501
#25 0x7a1fc in applyMethod (call=0xb79300, op=0x31a280, args=0xb6fc70,
    rho=0xb759e8, newrho=0xb792c8) at objects.c:117
#26 0x7a660 in Rf_usemethod (generic=0xefffd3f8 "genD", obj=0xda0fc0,
    call=0x3dcd2c, args=0x15d400, rho=0xb759e8, ans=0xefffd3f4)
    at objects.c:252
#27 0x7a930 in do_usemethod (call=0x430e4c, op=0x1d0c50, args=0x430e30,
    env=0xb759e8) at objects.c:325
#28 0x56aa0 in Rf_eval (e=0x430e4c, rho=0xb759e8) at eval.c:317
#29 0x570bc in Rf_applyClosure (call=0x3a7dd4, op=0x31df48, arglist=0xb6fc70,
    rho=0xb699f0, suppliedenv=0x1b2868) at eval.c:501
#30 0x56ccc in Rf_eval (e=0x3a7dd4, rho=0xb699f0) at eval.c:352
#31 0x58f18 in Rf_DispatchOrEval (call=0x3a7e44, generic=0x163380 "$",
    args=0x3a7e28, rho=0xb699f0, ans=0xefffd89c, dropmissing=0) at eval.c:1386
#32 0xbf38c in do_subset3 (call=0x3a7e44, op=0x1d08ec, args=0x3a7e28,
    env=0xb699f0) at subset.c:758
#33 0x56aa0 in Rf_eval (e=0x3a7e44, rho=0xb699f0) at eval.c:317
#34 0x58f18 in Rf_DispatchOrEval (call=0x3a7458, generic=0x1632e8 "[",
    args=0x3a743c, rho=0xb699f0, ans=0xefffdae4, dropmissing=0) at eval.c:1386
#35 0xbea40 in do_subset (call=0x3a7458, op=0x1c3754, args=0x3a743c,
    rho=0xb699f0) at subset.c:471
#36 0x56aa0 in Rf_eval (e=0x3a7458, rho=0xb699f0) at eval.c:317
#37 0x582c0 in do_set (call=0x3a7538, op=0x1c3834, args=0x3a74c8, rho=0xb699f0)
    at eval.c:1008
#38 0x56aa0 in Rf_eval (e=0x3a7538, rho=0xb699f0) at eval.c:317
#39 0x57c8c in do_begin (call=0x3a7554, op=0x1c37c4, args=0x3a7570,
    rho=0xb699f0) at eval.c:803
#40 0x56aa0 in Rf_eval (e=0x3a7554, rho=0xb699f0) at eval.c:317
#41 0x573b4 in do_if (call=0x3a5434, op=0x1b22d4, args=0x3a5418, rho=0xb699f0)
---Type <return> to continue, or q <return> to quit---
    at eval.c:591
#42 0x56aa0 in Rf_eval (e=0x3a5434, rho=0xb699f0) at eval.c:317
#43 0x57c8c in do_begin (call=0x3a5450, op=0x1c37c4, args=0x3a5530,
    rho=0xb699f0) at eval.c:803
#44 0x56aa0 in Rf_eval (e=0x3a5450, rho=0xb699f0) at eval.c:317
#45 0x570bc in Rf_applyClosure (call=0xb596e0, op=0x319298, arglist=0xb7d308,
    rho=0xb7c390, suppliedenv=0xb58364) at eval.c:501
#46 0x7a1fc in applyMethod (call=0xb596e0, op=0x319298, args=0xb7d308,
    rho=0xb7c390, newrho=0xb58364) at objects.c:117
#47 0x7a660 in Rf_usemethod (generic=0xefffe580 "span", obj=0xda0fc0,
    call=0x3a79e4, args=0x15d400, rho=0xb7c390, ans=0xefffe57c)
    at objects.c:252
#48 0x7a930 in do_usemethod (call=0x46e1dc, op=0x1d0c50, args=0x46e188,
    env=0xb7c390) at objects.c:325
#49 0x56aa0 in Rf_eval (e=0x46e1dc, rho=0xb7c390) at eval.c:317
#50 0x570bc in Rf_applyClosure (call=0xb7e4b0, op=0x3223e8, arglist=0xb7d308,
    rho=0x1d16dc, suppliedenv=0x1b2868) at eval.c:501
#51 0x56ccc in Rf_eval (e=0xb7e4b0, rho=0x1d16dc) at eval.c:352
#52 0x582c0 in do_set (call=0xb7e5e4, op=0x1c3834, args=0xb7e5c8, rho=0x1d16dc)
    at eval.c:1008
#53 0x56aa0 in Rf_eval (e=0xb7e5e4, rho=0x1d16dc) at eval.c:317
#54 0x582c0 in do_set (call=0xb7e6c4, op=0x1c3834, args=0xb7e6a8, rho=0x1d16dc)
    at eval.c:1008
#55 0x56aa0 in Rf_eval (e=0xb7e6c4, rho=0x1d16dc) at eval.c:317
#56 0x6e0e8 in R_ReplConsole (rho=0x1d16dc, savestack=0, browselevel=0)
    at main.c:187
#57 0x6e85c in run_Rmainloop () at main.c:491
#58 0x6e8a0 in Rf_mainloop () at main.c:505
#59 0xc5d74 in main (ac=0, av=0xeffff1b4) at system.c:88
(gdb)
(gdb)

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] 1.2.1 segfault
Paul Gilbert