gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gcl-devel] Segfault while building maxima


From: Jerry James
Subject: [Gcl-devel] Segfault while building maxima
Date: Tue, 4 Jun 2013 16:34:56 -0600

I built the latest 2.6.8pre from CVS a few days ago for Fedora
Rawhide.  Now it is segfaulting while building maxima:

gcl -batch -eval '(progn (load "../lisp-utils/defsystem.lisp")
(funcall (intern (symbol-name :operate-on-system) :mk) "maxima" :load
:verbose t) (when (fboundp (quote si::sgc-on)) (si::sgc-on t))
(si:save-system "binary-gcl/maxima"))'
...
;      - Loading source file
;        "/builddir/build/BUILD/maxima-5.30.0/src/init-cl.lisp"
Loading /builddir/build/BUILD/maxima-5.30.0/src/init-cl.lisp
Finished loading /builddir/build/BUILD/maxima-5.30.0/src/init-cl.lisp
;  - Providing system maxima
Segmentation fault (core dumped)

The immediate problem appears to be infinite recursion leading to a blown stack:

#0  0x0000000000415c2b in alloc_object (t=<optimized out>) at alloc.c:335
#1  0x0000000000484665 in alloc_simple_string (address@hidden) at string.d:42
#2  0x000000000048489e in make_simple_string (s=0x717455 "Couldn't protect")
    at string.d:65
#3  0x0000000000476464 in FEerror (s=<optimized out>, num=<optimized out>)
    at error.c:301
#4  0x0000000000415aa3 in add_page_to_freelist (p=<optimized out>,
    tm=<optimized out>) at alloc.c:174
#5  0x0000000000415ef5 in alloc_object (t=<optimized out>) at alloc.c:357
#6  0x0000000000484665 in alloc_simple_string (address@hidden) at string.d:42
#7  0x000000000048489e in make_simple_string (s=0x717455 "Couldn't protect")
    at string.d:65
#8  0x0000000000476464 in FEerror (s=<optimized out>, num=<optimized out>)
    at error.c:301
#9  0x0000000000415aa3 in add_page_to_freelist (p=<optimized out>,
    tm=<optimized out>) at alloc.c:174
...
(stack frames 5-9 over and over and over....)
...
#195369 0x0000000000415aa3 in add_page_to_freelist (p=<optimized out>,
tm=<optimized out>) at alloc.c:174
#195370 0x00000000004162cd in make_cons (a=<optimized out>,
d=<optimized out>) at alloc.c:430
#195371 0x00000000006f2f07 in L8 () at gcl_clcs_kcl_cond.c:129
#195372 0x0000000000462134 in funcall (fun=0x1fb93e0,
address@hidden) at eval.c:173
#195373 0x0000000000427d3f in IapplyVector (fun=0xede6c0, nargs=5,
base=0xc76da0 <value_stack+640>) at nfunlink.c:239
#195374 0x0000000000475d1d in fLerror (fmt_string=0x365d0a0) at error.c:192
#195375 0x000000000047647a in FEerror (s=<optimized out>,
num=<optimized out>) at error.c:301
#195376 0x0000000000415aa3 in add_page_to_freelist (p=<optimized out>,
tm=<optimized out>) at alloc.c:174
#195377 0x00000000004162cd in make_cons (a=<optimized out>,
d=<optimized out>) at alloc.c:430
#195378 0x0000000000453e9c in list (n=1, address@hidden) at list.d:318
#195379 0x00000000006df78b in LI30 (V220=0x2620600, V219=0x3676210,
first=<optimized out>) at
/usr/src/debug/gcl-2.6.8/pcl/gcl_pcl_fast_init.c:1338
#195380 0x0000000000687075 in L3 () at
/usr/src/debug/gcl-2.6.8/pcl/gcl_pcl_init.c:138
#195381 0x000000000068512b in LI2 (V12=<optimized out>, V13=<optimized
out>, V14=0x2620600, V15=0x3676210) at
/usr/src/debug/gcl-2.6.8/pcl/gcl_pcl_init.c:60
#195382 0x0000000000462774 in call_sfun_no_check (fun=<optimized out>)
at eval.c:134
#195383 super_funcall_no_event (fun=<optimized out>) at eval.c:761
#195384 0x00000000006fd481 in L10 () at gcl_clcs_handler.c:310
#195385 0x00000000006f3715 in L8 () at gcl_clcs_kcl_cond.c:295
#195386 0x0000000000462134 in funcall (fun=0x1fb93e0,
address@hidden) at eval.c:173
#195387 0x0000000000427d3f in IapplyVector (fun=0xede6c0, nargs=5,
base=0xc76c20 <value_stack+256>) at nfunlink.c:239
#195388 0x0000000000475d1d in fLerror (fmt_string=0x365d0c8) at error.c:192
#195389 0x000000000047647a in FEerror (s=<optimized out>,
num=<optimized out>) at error.c:301
#195390 0x0000000000415aa3 in add_page_to_freelist (p=<optimized out>,
tm=<optimized out>) at alloc.c:174
#195391 0x0000000000471070 in sgc_start () at sgbc.c:1349
#195392 0x000000000047303a in siLsgc_on () at sgbc.c:1823
#195393 0x0000000000461a36 in eval (form=<optimized out>) at eval.c:1098
#195394 0x00000000004675dc in Fwhen (form=0x3676c18) at conditional.c:161
#195395 0x0000000000461639 in eval (form=0x3676cd8) at eval.c:1045
#195396 0x0000000000463a7d in fLeval (x0=<optimized out>) at eval.c:1186
#195397 0x0000000000427c7c in IapplyVector (address@hidden,
nargs=1, base=0xc76bf0 <value_stack+208>, address@hidden
<value_stack+200>) at nfunlink.c:229
#195398 0x0000000000461e68 in funcall (fun=0xecba50) at eval.c:198
#195399 0x00000000004f6203 in LI1 () at gcl_top.c:140
#195400 0x00000000004610cd in quick_call_sfun (fun=0x1d56a28,
fun=0x1d56a28) at eval.c:117
#195401 0x0000000000462145 in funcall (address@hidden) at eval.c:181
#195402 0x0000000000427d3f in IapplyVector (address@hidden,
address@hidden, base=0xc76b98 <value_stack+120>) at
nfunlink.c:239
#195403 0x0000000000460bde in fLfuncall (fun=0x1d56a28) at eval.c:1148
#195404 0x0000000000427c7c in IapplyVector (address@hidden,
nargs=1, base=0xc76b90 <value_stack+112>, address@hidden
<value_stack+104>) at nfunlink.c:229
#195405 0x0000000000461e68 in funcall (fun=0xecbaa0) at eval.c:198
#195406 0x0000000000461969 in eval (form=<optimized out>) at eval.c:1100
#195407 0x0000000000461cc4 in funcall (fun=<optimized out>) at eval.c:335
#195408 0x0000000000461969 in eval (form=<optimized out>) at eval.c:1100
#195409 0x0000000000461cc4 in funcall (fun=<optimized out>) at eval.c:335
#195410 0x000000000040d1dc in main (argc=9, argv=<optimized out>,
envp=<optimized out>) at main.c:363

The line in add_page_to_freelist in alloc.c in frame 195390 is:

       make_writable(nn,nn+1);

The previous, working, build was made from a CVS snapshot on 26 Jan
2013.  GCC has changed in the meantime, to version 4.8.1, but I just
built the previous snapshot, then rebuilt maxima, and it worked.  So
something has changed in CVS between 26 Jan and now that is causing
this.

Any clues are much appreciated.  Thanks,
--
Jerry James
http://www.jamezone.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]