Coder Social home page Coder Social logo

Comments (3)

ngvrnd avatar ngvrnd commented on May 28, 2024

binarytrees and binarytrees-list both segfault immediately with no other output, although 99bottles runs fine.

from potion.

ngvrnd avatar ngvrnd commented on May 28, 2024

Here's a gdb session showing the crash under binarytrees.pn:
(I built potion with DEBUG=1)

Script started on Sat 23 Aug 2014 10:08:34 PM UTC
vagrant@precise32:~/noitop/potion$ gdb bin/potion
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
For bug reporting instructions, please see:
http://bugs.launchpad.net/gdb-linaro/...
Reading symbols from /home/vagrant/noitop/potion/bin/potion...done.
(gdb) run example/binarytrees.pn
Starting program: /home/vagrant/noitop/potion/bin/potion example/binarytrees.pn

Program received signal SIGSEGV, Segmentation fault.
0x00159f73 in potion_type (obj=3086942040) at /home/vagrant/noitop/potion/core/potion.h:522
522 if (o->fwd != POTION_FWD)
(gdb) where
#0 0x00159f73 in potion_type (obj=3086942040) at /home/vagrant/noitop/potion/core/potion.h:522
#1 0x0015b616 in potion_obj_find_ivar (P=0xb7fd0040, self=3086942040, ivar=3086287064) at /home/vagrant/noitop/potion/core/objmodel.c:306
#2 0x0015b791 in potion_obj_set (P=0xb7fd0040, cl=3086286952, self=3086942040, ivar=3086287064, value=3086155784) at /home/vagrant/noitop/potion/core/objmodel.c:330
#3 0x00398236 in ?? ()
#4 0x00398217 in ?? ()
#5 0x003982e6 in ?? ()
#6 0x00398217 in ?? ()
#7 0x003982e6 in ?? ()
#8 0x003982e6 in ?? ()
#9 0x003982e6 in ?? ()
#10 0x00398217 in ?? ()
#11 0x00398217 in ?? ()
#12 0x00398217 in ?? ()
#13 0x00398217 in ?? ()
#14 0x00398217 in ?? ()
#15 0x00398217 in ?? ()
#16 0x00398217 in ?? ()
#17 0x00398217 in ?? ()
#18 0x00398217 in ?? ()
#19 0x00398217 in ?? ()
#20 0x00398217 in ?? ()
#21 0x00398217 in ?? ()
#22 0x00398217 in ?? ()
#23 0x00398217 in ?? ()
#24 0x0039a40b in ?? ()
#25 0x0804aaa8 in potion_cmd_exec (P=0xb7fd0040, buf=3086287344, filename=0xbffff8d6 "example/binarytrees.pn", compile=0x0, addcode=0x0) at /home/vagrant/noitop/potion/core/potion.c:142
#26 0x08049efc in main (argc=2, argv=0xbffff784) at /home/vagrant/noitop/potion/core/potion.c:397
(gdb) list
517 if (PN_IS_BOOL(obj)) return PN_TBOOLEAN;
518 if (PN_IS_NIL(obj)) return PN_TNIL;
519 #if 1
520 while (1) {
521 struct PNFwd *o = (struct PNFwd *)obj;
522 if (o->fwd != POTION_FWD)
523 return ((struct PNObject *)o)->vt;
524 obj = o->ptr;
525 }
526 #else
(gdb) quit
A debugging session is active.

    Inferior 1 [process 9756] will be killed.

Quit anyway? (y or n) y
vagrant@precise32:~/noitop/potion$ exit

Script done on Sat 23 Aug 2014 10:10:28 PM UTC
vagrant@precise32:~/noitop/potion$

from potion.

rurban avatar rurban commented on May 28, 2024

Fixed this GC bug with commit 2bbcb2a
Author: Reini Urban [email protected]
Date: Wed Sep 10 13:20:56 2014 -0500

from potion.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.