[prev in list] [next in list] [prev in thread] [next in thread]
List: gphoto-devel
Subject: Re: [gphoto-devel] gphoto2 segfault
From: Colin Marquardt <colin () marquardt-home ! de>
Date: 2001-10-29 18:56:16
[Download RAW message or body]
Lutz Müller <urc8@rz.uni-karlsruhe.de> writes:
> On Mon, 2001-10-29 at 16:20, Colin Marquardt wrote:
> #6 0x400b784f in dlerror () from /lib/libdl.so.2
> #7 0x400b747f in dlopen () from /lib/libdl.so.2
> #8 0x4001a72f in gp_abilities_list_load_dir (list=0x8052d78, dir=0x40026286 \
> "/usr/local/lib/gphoto2") at gphoto2-abilities-list.c:153
>
> It would be interesting to see the contents of the "buf" variable (in
> gdb: up, up, (...), print buf).
Starting program: /usr/local/bin/gphoto2 --auto-detect
Cannot access memory at address 0x672f6269.
(gdb) bt
#0 0x4000b520 in _dl_debug_state () from /lib/ld-linux.so.2
#1 0x403972dd in getutmpx () from /lib/libc.so.6
#2 0x4000ae5b in _dl_catch_error () from /lib/ld-linux.so.2
#3 0x403973d7 in _dl_open () from /lib/libc.so.6
#4 0x400b7434 in signgam () from /lib/libdl.so.2
#5 0x4000ae5b in _dl_catch_error () from /lib/ld-linux.so.2
#6 0x400b783f in dlerror () from /lib/libdl.so.2
#7 0x400b746f in dlopen () from /lib/libdl.so.2
#8 0x4001a6ba in gp_abilities_list_load_dir (list=0x8066530, dir=0x400263c6 \
"/usr/local/lib/gphoto2") at gphoto2-abilities-list.c:155 #9 0x4001a8c0 in \
gp_abilities_list_load (list=0x8066530) at gphoto2-abilities-list.c:240 #10 0x804edbd \
in auto_detect (arg=0x0) at main.c:272 #11 0x8050e1e in execute_options (argc=2, \
argv=0xbffffa34) at options.c:124 #12 0x805091c in main (argc=2, argv=0xbffffa34) at \
main.c:1244 (gdb) up
No stack.
(gdb) print buf
$1 = 0
Aha. Not only the Debian packages were there (the problem below), but also stuff in
/usr/local/lib/gphoto2. I had only deleted /usr/local/lib/libgp*.
> I guess you do have some old camera libraries laying around. I added one
> additional debug message so that we can see on which library dlopen
> failed. Could you do another "cvs update"?
Seems to work now, thanks.
> //opt/applications/gphoto_cvs2/gtkam/src/gtkam-chooser.c:102: undefined reference \
> to `gp_port_info_list_free'
> gtkam-chooser.o: In function `on_apply_clicked':
>
> It seems you have an old libgphoto2_port library laying around
> (libgphoto2_port.so.0.0.3 for example). In CVS-libgphoto2_port
> (libgphoto2_port.so.0.0.4), those functions are available. However, if
> you run gtkam/autogen.sh and then make, it should work. Hopefully :-)
>
> I made sure that I do not have any old gphoto2 stuff lying around.
>
> I am not so sure about that... Have a look at it again.
Argh. The Debian packages were on that system.
Now, a new thing:
sigkill://opt/applications/gphoto_cvs2/gtkam$ sudo make install
Makefile:434: warning: overriding commands for target `dist-hook'
Makefile:420: warning: ignoring old commands for target `dist-hook'
Making install in po
make[1]: Entering directory `/opt/applications/gphoto_cvs2/gtkam/po'
if test -r ".././../../mkinstalldirs"; then \
.././../../mkinstalldirs /usr/local/share; \
else \
/bin/sh ../mkinstalldirs /usr/local/share; \
fi
/bin/sh: .././../../mkinstalldirs: Permission denied
make[1]: *** [install-data-yes] Error 126
make[1]: Leaving directory `/opt/applications/gphoto_cvs2/gtkam/po'
make: *** [install-recursive] Error 1
Cheers,
Colin
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic