×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Segmentation Fault - indi_gphoto_ccd + Canon 450D

  • Posts: 26
  • Thank you received: 1
I have recently acquired a new astro camera, a modified Canon 450D, and so far I have not had any luck getting it to play nicely with INDI / Ekos. When I click the connect button in the camera control panel the driver seg faults :( Having found some debugging hints in another gphoto related thread I thought I'd try to get more detail, and the result of that can be found below. I have tested the camera via gphoto on the command line, and everything works as expected, and another app Entangle works correctly.

Here's the gdb output:
GNU gdb (GDB) 7.6.1-ubuntu
Copyright (C) 2013 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://www.gnu.org/software/gdb/bugs/>.
(gdb) file indiserver
Reading symbols from /usr/bin/indiserver...(no debugging symbols found)...done.
(gdb) set follow-fork-mode child
(gdb) start -v indi_gphoto_ccd
Temporary breakpoint 1 at 0x8049756
Starting program: /usr/bin/indiserver -v indi_gphoto_ccd
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
 
Temporary breakpoint 1, 0x08049756 in main ()
 
(gdb) continue
Continuing.
2014-04-09T19:19:13: startup: /usr/bin/indiserver -v indi_gphoto_ccd 
[New process 2876]
2014-04-09T19:19:13: Driver indi_gphoto_ccd: pid=2876 rfd=7 wfd=10 efd=11
2014-04-09T19:19:13: listening to port 7624 on fd 8
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
process 2876 is executing new program: /usr/local/bin/indi_gphoto_ccd
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
2014-04-09T19:19:14: Driver indi_gphoto_ccd: snooping on Telescope Simulator.EQUATORIAL_EOD_COORD
2014-04-09T19:19:43: Client 0: new arrival from 127.0.0.1:38189 - welcome!
[New Thread 0xb6db5b40 (LWP 2887)]
[Thread 0xb6db5b40 (LWP 2887) exited]
[New Thread 0xb6db5b40 (LWP 2888)]
[Thread 0xb6db5b40 (LWP 2888) exited]
[New Thread 0xb6db5b40 (LWP 2889)]
[Thread 0xb6db5b40 (LWP 2889) exited]
[New Thread 0xb6db5b40 (LWP 2890)]
[Thread 0xb6db5b40 (LWP 2890) exited]
[New Thread 0xb6db5b40 (LWP 2891)]
[Thread 0xb6db5b40 (LWP 2891) exited]
[New Thread 0xb6db5b40 (LWP 2892)]
[Thread 0xb6db5b40 (LWP 2892) exited]
[New Thread 0xb6db5b40 (LWP 2893)]
[New Thread 0xb65b4b40 (LWP 2894)]
 
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7df26c0 (LWP 2876)]
0xb79c3685 in _IO_vfprintf_internal (s=0xb7b2aa20 <_IO_2_1_stdout_>, format=<optimised out>, 
    format@entry=0xb7f914b6 "  name='%s'\n", ap=0xbfffe53c "", ap@entry=0xbfffe538 "@")
    at vfprintf.c:1655
1655	vfprintf.c: No such file or directory.
(gdb) bt
#0  0xb79c3685 in _IO_vfprintf_internal (s=0xb7b2aa20 <_IO_2_1_stdout_>, format=<optimised out>, 
    format@entry=0xb7f914b6 "  name='%s'\n", ap=0xbfffe53c "", ap@entry=0xbfffe538 "@")
    at vfprintf.c:1655
#1  0xb7a7ff09 in ___printf_chk (flag=1, format=0xb7f914b6 "  name='%s'\n") at printf_chk.c:36
#2  0xb7f6c95a in IDSetNumber () from /usr/lib/i386-linux-gnu/libindidriver.so.0
#3  0xb7f7658f in CCDChip::setPixelSize(float, float) ()
   from /usr/lib/i386-linux-gnu/libindidriver.so.0
#4  0x08050275 in GPhotoCCD::updateProperties() ()
#5  0xb7f73e04 in INDI::DefaultDevice::ISNewSwitch(char const*, char const*, ISState*, char**, int)
    () from /usr/lib/i386-linux-gnu/libindidriver.so.0
#6  0xb7f7b2dc in INDI::CCD::ISNewSwitch(char const*, char const*, ISState*, char**, int) ()
   from /usr/lib/i386-linux-gnu/libindidriver.so.0
#7  0x08050e87 in GPhotoCCD::ISNewSwitch(char const*, char const*, ISState*, char**, int) ()
#8  0x0804f8c1 in ISNewSwitch ()
#9  0xb7f6b280 in dispatch () from /usr/lib/i386-linux-gnu/libindidriver.so.0
#10 0xb7f6b6d8 in clientMsgCB () from /usr/lib/i386-linux-gnu/libindidriver.so.0
#11 0xb7f6ea95 in ?? () from /usr/lib/i386-linux-gnu/libindidriver.so.0
#12 0xb7f6ec0d in eventLoop () from /usr/lib/i386-linux-gnu/libindidriver.so.0
#13 0xb7f64d47 in main () from /usr/lib/i386-linux-gnu/libindidriver.so.0
#14 0xb7993905 in __libc_start_main (main=0x804f5f0 <main@plt>, argc=1, ubp_av=0xbffff184, 
    init=0x8057f30 <__libc_csu_init>, fini=0x8057fa0 <__libc_csu_fini>, 
    rtld_fini=0xb7fed5f0 <_dl_fini>, stack_end=0xbffff17c) at libc-start.c:260
#15 0x0804f641 in _start ()

I hope that means more to someone than it does to me!

Cheers :)
10 years 1 week ago #964

Please Log in or Create an account to join the conversation.

Is this driver from PPA or compiled? which architecture?
10 years 1 week ago #970

Please Log in or Create an account to join the conversation.

  • Posts: 26
  • Thank you received: 1
Tha is a good question! Honest answer is that I'm not sure. I have previously compiled that driver locally, but since then I'm sure that I've had updates from the PPA. Will that replace a locally built driver? If not can you explain how I'd revert from my custom build back to the main stream?

Architecture is i386.

Cheers :)
10 years 1 week ago #971

Please Log in or Create an account to join the conversation.

Yes, the PPA will overwrite the local driver IF the local driver was installed to /usr/bin and not somewhere else. If you run
which indi_gphtoto_ccd
, what do you get?
10 years 1 week ago #972

Please Log in or Create an account to join the conversation.

  • Posts: 26
  • Thank you received: 1
Well then, it could be a duff build on my part, that command returns:

/usr/local/bin/indi_gphoto_ccd

So how do I go about removing my local build so I can return to the regular release stream? And perhaps that'll just fix it? :)
10 years 1 week ago #973

Please Log in or Create an account to join the conversation.

  • Posts: 26
  • Thank you received: 1
A bit of googling turned up the following which seems to have done a nice job of cleaning up the custom built files...
cat install_manifest.txt | xargs echo sudo rm | sh

So hopefully now I'm back running on the PPA version. I should get a chance to test the camera out again tonight after work.
10 years 1 week ago #976

Please Log in or Create an account to join the conversation.

  • Posts: 26
  • Thank you received: 1
I'm very happy to report that getting rid of my locally built driver has sorted the problem out! :D
10 years 1 week ago #977

Please Log in or Create an account to join the conversation.

Time to create page: 0.612 seconds