Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash #4

Open
Mause opened this issue Mar 6, 2013 · 5 comments
Open

Fix crash #4

Mause opened this issue Mar 6, 2013 · 5 comments
Assignees
Labels

Comments

@Mause
Copy link
Member

Mause commented Mar 6, 2013

Happy to test :)

<dominic@dominic-VirtualBox:/m/sf_Shared> cat test_device.py 
import galaxpy.saturn
cpu = galaxpy.saturn.dcpu()
cpu.attach_device(galaxpy.saturn.device())
•<dominic@dominic-VirtualBox:/m/sf_Shared> python3 test_device.py 
*** glibc detected *** python3: double free or corruption (fasttop): 0x09374e60 ***
======= Backtrace: =========
/lib/i386-linux-gnu/libc.so.6(+0x75ee2)[0xb7583ee2]
/usr/lib/i386-linux-gnu/libstdc++.so.6(_ZdlPv+0x1f)[0xb7084adf]
/usr/local/lib/python3.2/dist-packages/galaxpy/saturn.cpython-32mu.so(+0x31df)[0xb77281df]
python3[0x8109ee9]
python3(PyDict_SetItem+0x86)[0x8106da6]
python3(_PyModule_Clear+0x11c)[0x810cc0c]
python3(PyImport_Cleanup+0x292)[0x813ffa2]
python3(Py_Finalize+0xc1)[0x806903c]
python3(Py_Main+0xca3)[0x809e85f]
python3(main+0xec)[0x80a825c]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0xb75274d3]
python3[0x8122251]
======= Memory map: ========
08048000-0827d000 r-xp 00000000 08:01 201120     /usr/bin/python3.2mu
0827d000-0827e000 r--p 00234000 08:01 201120     /usr/bin/python3.2mu
0827e000-082dd000 rw-p 00235000 08:01 201120     /usr/bin/python3.2mu
082dd000-082f5000 rw-p 00000000 00:00 0 
09271000-093c9000 rw-p 00000000 00:00 0          [heap]
b701a000-b703c000 rw-p 00000000 00:00 0 
b703c000-b7118000 r-xp 00000000 08:01 137121     /usr/lib/i386-linux-gnu/libstdc++.so.6.0.17
b7118000-b7119000 ---p 000dc000 08:01 137121     /usr/lib/i386-linux-gnu/libstdc++.so.6.0.17
b7119000-b711d000 r--p 000dc000 08:01 137121     /usr/lib/i386-linux-gnu/libstdc++.so.6.0.17
b711d000-b711e000 rw-p 000e0000 08:01 137121     /usr/lib/i386-linux-gnu/libstdc++.so.6.0.17
b711e000-b7125000 rw-p 00000000 00:00 0 
b713c000-b72c2000 rw-p 00000000 00:00 0 
b72c2000-b74c2000 r--p 00000000 08:01 139757     /usr/lib/locale/locale-archive
b74c2000-b74c3000 rw-p 00000000 00:00 0 
b74c3000-b74ed000 r-xp 00000000 08:01 21372      /lib/i386-linux-gnu/libm-2.15.so
b74ed000-b74ee000 r--p 00029000 08:01 21372      /lib/i386-linux-gnu/libm-2.15.so
b74ee000-b74ef000 rw-p 0002a000 08:01 21372      /lib/i386-linux-gnu/libm-2.15.so
b74ef000-b74f0000 rw-p 00000000 00:00 0 
b74f0000-b750c000 r-xp 00000000 08:01 6238       /lib/i386-linux-gnu/libgcc_s.so.1
b750c000-b750d000 r--p 0001b000 08:01 6238       /lib/i386-linux-gnu/libgcc_s.so.1
b750d000-b750e000 rw-p 0001c000 08:01 6238       /lib/i386-linux-gnu/libgcc_s.so.1
b750e000-b76b1000 r-xp 00000000 08:01 6054       /lib/i386-linux-gnu/libc-2.15.so
b76b1000-b76b2000 ---p 001a3000 08:01 6054       /lib/i386-linux-gnu/libc-2.15.so
b76b2000-b76b4000 r--p 001a3000 08:01 6054       /lib/i386-linux-gnu/libc-2.15.so
b76b4000-b76b5000 rw-p 001a5000 08:01 6054       /lib/i386-linux-gnu/libc-2.15.so
b76b5000-b76b8000 rw-p 00000000 00:00 0 
b76b8000-b76dd000 r-xp 00000000 08:01 5214       /lib/i386-linux-gnu/libexpat.so.1.6.0
b76dd000-b76df000 r--p 00025000 08:01 5214       /lib/i386-linux-gnu/libexpat.so.1.6.0
b76df000-b76e0000 rw-p 00027000 08:01 5214       /lib/i386-linux-gnu/libexpat.so.1.6.0
b76e0000-b76f7000 r-xp 00000000 08:01 11378      /lib/i386-linux-gnu/libz.so.1.2.7
b76f7000-b76f8000 r--p 00016000 08:01 11378      /lib/i386-linux-gnu/libz.so.1.2.7
b76f8000-b76f9000 rw-p 00017000 08:01 11378      /lib/i386-linux-gnu/libz.so.1.2.7
b76f9000-b76fb000 r-xp 00000000 08:01 6059       /lib/i386-linux-gnu/libutil-2.15.so
b76fb000-b76fc000 r--p 00001000 08:01 6059       /lib/i386-linux-gnu/libutil-2.15.so
b76fc000-b76fd000 rw-p 00002000 08:01 6059       /lib/i386-linux-gnu/libutil-2.15.so
b76fd000-b76fe000 rw-p 00000000 00:00 0 
b76fe000-b7701000 r-xp 00000000 08:01 6060       /lib/i386-linux-gnu/libdl-2.15.so
b7701000-b7702000 r--p 00002000 08:01 6060       /lib/i386-linux-gnu/libdl-2.15.so
b7702000-b7703000 rw-p 00003000 08:01 6060       /lib/i386-linux-gnu/libdl-2.15.so
b7703000-b771a000 r-xp 00000000 08:01 21370      /lib/i386-linux-gnu/libpthread-2.15.so
b771a000-b771b000 r--p 00016000 08:01 21370      /lib/i386-linux-gnu/libpthread-2.15.so
b771b000-b771c000 rw-p 00017000 08:01 21370      /lib/i386-linux-gnu/libpthread-2.15.so
b771c000-b771e000 rw-p 00000000 00:00 0 
b7725000-b772c000 r-xp 00000000 08:01 264034     /usr/local/lib/python3.2/dist-packages/galaxpy/saturn.cpython-32mu.so
b772c000-b772d000 r--p 00006000 08:01 264034     /usr/local/lib/python3.2/dist-packages/galaxpy/saturn.cpython-32mu.so
b772d000-b772e000 rw-p 00007000 08:01 264034     /usr/local/lib/python3.2/dist-packages/galaxpy/saturn.cpython-32mu.so
b772e000-b7735000 r--s 00000000 08:01 171104     /usr/lib/i386-linux-gnu/gconv/gconv-modules.cache
b7735000-b7737000 rw-p 00000000 00:00 0 
b7737000-b7738000 r-xp 00000000 00:00 0          [vdso]
b7738000-b7758000 r-xp 00000000 08:01 21378      /lib/i386-linux-gnu/ld-2.15.so
b7758000-b7759000 r--p 0001f000 08:01 21378      /lib/i386-linux-gnu/ld-2.15.so
b7759000-b775a000 rw-p 00020000 08:01 21378      /lib/i386-linux-gnu/ld-2.15.so
bfb19000-bfb3a000 rw-p 00000000 00:00 0          [stack]
fish: Job 1, “python3 test_device.py ” terminated by signal SIGABRT (Abort)
•<dominic@dominic-VirtualBox:/m/sf_Shared> 
@ghost ghost assigned cassiebeckley Mar 6, 2013
@Mause
Copy link
Member Author

Mause commented Mar 6, 2013

Works fine if i do not attach a device

@Mause
Copy link
Member Author

Mause commented Mar 7, 2013

Moved to galaxy-team/saturn#3

@Mause Mause closed this as completed Mar 7, 2013
@Mause Mause reopened this Mar 7, 2013
@Mause
Copy link
Member Author

Mause commented Mar 7, 2013

Ooops, over-reacted

@Mause
Copy link
Member Author

Mause commented Jun 2, 2013

This still occurs... and gdb aint helping much -.-

@Mause
Copy link
Member Author

Mause commented Jun 2, 2013

this is interesting though;

Program received signal SIGABRT, Aborted.
0xb7fdd424 in __kernel_vsyscall ()
(gdb) bt
#0  0xb7fdd424 in __kernel_vsyscall ()
#1  0xb7dceb1f in raise () from /lib/i386-linux-gnu/libc.so.6
#2  0xb7dd20b3 in abort () from /lib/i386-linux-gnu/libc.so.6
#3  0xb7e0bab5 in ?? () from /lib/i386-linux-gnu/libc.so.6
#4  0xb7e167e2 in ?? () from /lib/i386-linux-gnu/libc.so.6
#5  0xb7e17530 in ?? () from /lib/i386-linux-gnu/libc.so.6
#6  0xb7921b4f in operator delete(void*) () from /usr/lib/i386-linux-gnu/libstdc++.so.6
#7  0xb7fcaf1f in operator() (__ptr=<optimised out>, this=<optimised out>) at /usr/include/c++/4.7/bits/unique_ptr.h:63
#8  ~unique_ptr (this=0x837c010, __in_chrg=<optimised out>) at /usr/include/c++/4.7/bits/unique_ptr.h:173
#9  _Destroy<std::unique_ptr<galaxy::saturn::device> > (__pointer=0x837c010) at /usr/include/c++/4.7/bits/stl_construct.h:95
#10 __destroy<std::unique_ptr<galaxy::saturn::device>*> (__last=0x837c014, __first=0x837c010) at /usr/include/c++/4.7/bits/stl_construct.h:105
#11 _Destroy<std::unique_ptr<galaxy::saturn::device>*> (__last=0x837c014, __first=<optimised out>) at /usr/include/c++/4.7/bits/stl_construct.h:128
#12 _Destroy<std::unique_ptr<galaxy::saturn::device>*, std::unique_ptr<galaxy::saturn::device> > (__last=0x837c014, __first=<optimised out>)
    at /usr/include/c++/4.7/bits/stl_construct.h:155
#13 ~vector (this=0xb789b00c, __in_chrg=<optimised out>) at /usr/include/c++/4.7/bits/stl_vector.h:403
#14 ~dcpu (this=0xb789b008, __in_chrg=<optimised out>) at lib/libsaturn/include/dcpu.hpp:39
#15 DCPU_dealloc (self=0xb7a518d0) at src/saturn.cpp:290
#16 0x08151a01 in ?? ()
#17 0x080ff429 in PyEval_EvalFrameEx ()
#18 0x081470ad in PyEval_EvalCodeEx ()
#19 0x081b958f in PyEval_EvalCode ()
#20 0x08164585 in ?? ()
#21 0x081a4b5c in PyRun_StringFlags ()
#22 0x0809735e in PyRun_SimpleStringFlags ()
#23 0x0809958e in Py_Main ()
#24 0x080b3023 in main ()
(gdb) 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants