Description of problem: Try the start xcam, the standalone front-end prog of sane: [chris@]$ xcam Gtk-Message: Failed to load module "canberra-gtk-module" Segmentation fault Cheers, chris.
please do the following: 1) enable the "core release debug" 2) install the following packages: gdb xcam-debug 3) run the following command from a terminal: gdb -q xcam 4) then type "run" 5) when it segfaults, type "bt" and copy back the stack trace in a file you'll attach (not paste) to this bug report Thanks
Keywords: (none) => NEEDINFO
Created attachment 1538 [details] xcam bt under gdb Here the bt.
Attachment 1538 mime type: text/x-log => text/plain
Ok thanks Dmorgan any ideas ?
Assignee: bugsquad => dmorganec
Keywords: NEEDINFO => (none)CC: (none) => marja11
First this happens after it found a device but failed to use it (it happens here because I am missing the firmware for the scanner on this machine). While reading the code, I also noticed several bugs and I wonder if anyone is using it... In load_defaults the code is: char filename[PATH_MAX]; int fd; DBG (DBG_debug, "xcam, load_defaults: enter\n"); if (make_default_filename (sizeof (filename), filename, dialog->dev_name) < 0) return; if (fd < 0) return; load_settings (filename, silent); sanei_load_values (fd, dialog->dev); DBG (DBG_debug, "xcam, load_defaults: exit\n"); Which means fd is never initialized, it is obviously missing a "fd = open(filename, O_RDONLY);" before "if (fd < 0)" In save_frame_button there is testfilename[sizeof (testfilename)] = 0; which should be testfilename[sizeof (testfilename)-1] In switch_device the code checks if dialog is NULL (in case the device could not be open) to not use it, but most of the rest of the code does not and will segfault. This code was written in 1997 and updated in 2005 but seems very buggy and not maintained. I can write a few patches to fix the most obvious bugs but I would suggest to not use xcam.
CC: (none) => pterjan
Hmm some of them are actually fixed in git but there was no release since 2005.
Hi, if there is indeed no user, you can drop it. Myself, I did not mean to use it when I found the bug; it hust poped up on a mistyped bash-completion tab :D Cheers, Chris.
I fixed the segfault and uploaded the package.
Status: NEW => RESOLVEDResolution: (none) => FIXED