Advertisement
Guest User

Segfault in pyswisseph in openastro, yet the module is fine

a guest
Jun 23rd, 2012
365
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.47 KB | None | 0 0
  1. GNU gdb (GDB) 7.4.1
  2. Copyright (C) 2012 Free Software Foundation, Inc.
  3. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  4. This is free software: you are free to change and redistribute it.
  5. There is NO WARRANTY, to the extent permitted by law. Type "show copying"
  6. and "show warranty" for details.
  7. This GDB was configured as "x86_64-unknown-linux-gnu".
  8. For bug reporting instructions, please see:
  9. <http://www.gnu.org/software/gdb/bugs/>...
  10. Reading symbols from /usr/bin/python2...(no debugging symbols found)...done.
  11. (gdb) run /usr/bin/open
  12. openastro.py* openssl* openvt*
  13. (gdb) run /usr/bin/openastro.py
  14. Starting program: /usr/bin/python2 /usr/bin/openastro.py
  15. [Thread debugging using libthread_db enabled]
  16. Using host libthread_db library "/lib/libthread_db.so.1".
  17. Traceback (most recent call last):
  18. File "/usr/share/gdb/auto-load/usr/lib/libgobject-2.0.so.0.3200.3-gdb.py", line 9, in <module>
  19. from gobject import register
  20. File "/usr/share/glib-2.0/gdb/gobject.py", line 3, in <module>
  21. import gdb.backtrace
  22. ImportError: No module named backtrace
  23.  
  24. ** (process:22503): WARNING **: Trying to register gtype 'GMountMountFlags' as enum when in fact it is of type 'GFlags'
  25.  
  26. ** (process:22503): WARNING **: Trying to register gtype 'GDriveStartFlags' as enum when in fact it is of type 'GFlags'
  27.  
  28. ** (process:22503): WARNING **: Trying to register gtype 'GSocketMsgFlags' as enum when in fact it is of type 'GFlags'
  29. OpenAstro.org has not yet been translated in your language! Could not load translation...
  30. -------------------------------
  31. OpenAstro.org 1.1.24
  32. -------------------------------
  33. installing default language
  34. known home location: Tacoma, Washington, United States 47.25288 -122.44429
  35. utcToLocal: 2012-06-23 22:42:35 => 2012-06-23 15:42:35 [-07:00]
  36. /home/shadowkyogre/.themes/Dust TrueDark2/gtk-2.0/gtkrc:85: Murrine configuration option "gradients" is no longer supported and will be ignored.
  37.  
  38. Program received signal SIGSEGV, Segmentation fault.
  39. 0x00007fffeac5b167 in swi_plan_for_osc_elem () from /usr/lib/python2.7/site-packages/swisseph.so
  40. (gdb) bt
  41. #0 0x00007fffeac5b167 in swi_plan_for_osc_elem () from /usr/lib/python2.7/site-packages/swisseph.so
  42. #1 0x00007fffeac3fdfd in ?? () from /usr/lib/python2.7/site-packages/swisseph.so
  43. #2 0x00007fffeac62fad in ?? () from /usr/lib/python2.7/site-packages/swisseph.so
  44. #3 0x00007fffeac63c3d in swe_calc () from /usr/lib/python2.7/site-packages/swisseph.so
  45. #4 0x00007fffeac46ff4 in ?? () from /usr/lib/python2.7/site-packages/swisseph.so
  46. #5 0x00007ffff7afe02a in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
  47. #6 0x00007ffff7afeeb5 in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0
  48. #7 0x00007ffff7a8f526 in function_call () from /usr/lib/libpython2.7.so.1.0
  49. #8 0x00007ffff7a6b88e in PyObject_Call () from /usr/lib/libpython2.7.so.1.0
  50. #9 0x00007ffff7a79e68 in instancemethod_call () from /usr/lib/libpython2.7.so.1.0
  51. #10 0x00007ffff7a6b88e in PyObject_Call () from /usr/lib/libpython2.7.so.1.0
  52. #11 0x00007ffff7af8547 in PyEval_CallObjectWithKeywords () from /usr/lib/libpython2.7.so.1.0
  53. #12 0x00007ffff7a7abda in PyInstance_New () from /usr/lib/libpython2.7.so.1.0
  54. #13 0x00007ffff7a6b88e in PyObject_Call () from /usr/lib/libpython2.7.so.1.0
  55. #14 0x00007ffff7afab39 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
  56. #15 0x00007ffff7afeeb5 in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0
  57. #16 0x00007ffff7afd12c in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
  58. #17 0x00007ffff7afeeb5 in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0
  59. #18 0x00007ffff7a8f526 in function_call () from /usr/lib/libpython2.7.so.1.0
  60. #19 0x00007ffff7a6b88e in PyObject_Call () from /usr/lib/libpython2.7.so.1.0
  61. #20 0x00007ffff7a79e68 in instancemethod_call () from /usr/lib/libpython2.7.so.1.0
  62. #21 0x00007ffff7a6b88e in PyObject_Call () from /usr/lib/libpython2.7.so.1.0
  63. #22 0x00007ffff7af8547 in PyEval_CallObjectWithKeywords () from /usr/lib/libpython2.7.so.1.0
  64. #23 0x00007ffff7a7abda in PyInstance_New () from /usr/lib/libpython2.7.so.1.0
  65. #24 0x00007ffff7a6b88e in PyObject_Call () from /usr/lib/libpython2.7.so.1.0
  66. #25 0x00007ffff7afab39 in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
  67. #26 0x00007ffff7afeeb5 in PyEval_EvalCodeEx () from /usr/lib/libpython2.7.so.1.0
  68. #27 0x00007ffff7afef82 in PyEval_EvalCode () from /usr/lib/libpython2.7.so.1.0
  69. #28 0x00007ffff7b17eba in run_mod () from /usr/lib/libpython2.7.so.1.0
  70. #29 0x00007ffff7b18cb2 in PyRun_FileExFlags () from /usr/lib/libpython2.7.so.1.0
  71. #30 0x00007ffff7b196cb in PyRun_SimpleFileExFlags () from /usr/lib/libpython2.7.so.1.0
  72. ---Type <return> to continue, or q <return> to quit---
  73. #31 0x00007ffff7b2a9d2 in Py_Main () from /usr/lib/libpython2.7.so.1.0
  74. #32 0x00007ffff7486455 in __libc_start_main () from /lib/libc.so.6
  75. #33 0x0000000000400701 in _start ()
  76. (gdb) run /usr/bin/openastro.py
  77. #But in a normal python interactive session...
  78.  
  79. Python 2.7.3 (default, Apr 24 2012, 00:00:54)
  80. [GCC 4.7.0 20120414 (prerelease)] on linux2
  81. Type "help", "copyright", "credits" or "license" for more information.
  82. >>> import swisseph
  83. >>> swisseph.set_ephe_path('/usr/share/swisseph')
  84. None
  85. >>> swisseph.calc(10E5,2)
  86. (228.34348601496413,
  87. -1.4412495387824351,
  88. 0.8762595079565909,
  89. 0.48569752710978903,
  90. 0.18620507370096495,
  91. -0.02520839020568876)
  92. >>> swisseph.calc_ut(10E5,2)
  93. (228.57974293939014,
  94. -1.3395378450750117,
  95. 0.8629677078427096,
  96. 0.40741243798384136,
  97. 0.19862159905074475,
  98. -0.02506294258656465)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement