towolf@ovo:~/Desktop/ptpcam_trunk$ make
gcc -o ptpcam myusb.c properties.c ptp.c ptpcam.c
"-g" -lusb
towolf@ovo:~/Desktop/ptpcam_trunk$ gdb ./ptpcam
GNU
gdb (GDB
) 7.2-ubuntu
Copyright (C
) 2010 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/>...
Reading symbols from
/home/towolf/Desktop/ptpcam_trunk/ptpcam...done.
(gdb
) run --chdk
Starting program: /home/towolf/Desktop/ptpcam_trunk/ptpcam --chdk
<conn> version
ptpcam:
0.0
camera:
0.1
<conn> help
q quit quit program
h help list commands
r reset reconnect to camera
version get CHDK PTP
version (ptpcam and camera
)
shutdown-hard shutdown
camera (hard
)
shutdown-soft shutdown
camera (soft
)
reboot reboot camera
reboot <filename> reboot camera using specified firmware update
reboot-fi2 reboot camera using default firmware update
m memory <address> get byte at address
m memory <address>-<address> get bytes at given range
m memory <address> <num> get num bytes at given address
set <address> <long> set long value at address
c call <address> <arg1> ... call function at address with given arguments
u upload <local> <remote> upload local file to camera
d download <remote> <local> download file from
camera
mode <val> set
mode (0=playback,
1=record
)
lua <code> execute lua code
luar <code> execute
"return <code>" and retreive result
<conn> reset
<conn> mode
1
*** stack smashing detected ***: /home/towolf/Desktop/ptpcam_trunk/ptpcam terminated
======= Backtrace: =========
/lib/libc.so.6
(__fortify_fail+
0x50)[0x21d990]
/lib/libc.so.6
(+
0xe593a)[0x21d93a]
/home/towolf/Desktop/ptpcam_trunk/ptpcam
[0x804e9ff]
/home/towolf/Desktop/ptpcam_trunk/ptpcam
[0x8054e20]
/home/towolf/Desktop/ptpcam_trunk/ptpcam
[0x8053662]
/lib/libc.so.6
(__libc_start_main+
0xe7)[0x14ece7]
/home/towolf/Desktop/ptpcam_trunk/ptpcam
[0x80490b1]
======= Memory map: ========
00110000-0012c000 r-xp 00000000 08:01
786587 /lib/ld-2.12.1.so
0012c000-0012d000 r--p 0001b000 08:01
786587 /lib/ld-2.12.1.so
0012d000-0012e000 rw-p 0001c000 08:01
786587 /lib/ld-2.12.1.so
0012e000-0012f000 r-xp 00000000 00:00
0 [vdso
]
0012f000-00135000 r-xp 00000000 08:01
786679 /lib/libusb-
0.1.so.4.4.4
00135000-00136000 r--p 00005000 08:01
786679 /lib/libusb-
0.1.so.4.4.4
00136000-00137000 rw-p 00006000 08:01
786679 /lib/libusb-
0.1.so.4.4.4
00137000-00138000 rw-p 00000000 00:00
0
00138000-0028f000 r-xp 00000000 08:01
786598 /lib/libc-2.12.1.so
0028f000-00290000 ---p 00157000 08:01
786598 /lib/libc-2.12.1.so
00290000-00292000 r--p 00157000 08:01
786598 /lib/libc-2.12.1.so
00292000-00293000 rw-p 00159000 08:01
786598 /lib/libc-2.12.1.so
00293000-00296000 rw-p 00000000 00:00
0
00296000-002b0000 r-xp 00000000 08:01
788811 /lib/libgcc_s.so.1
002b0000-002b1000 r--p 00019000 08:01
788811 /lib/libgcc_s.so.1
002b1000-002b2000 rw-p 0001a000 08:01
788811 /lib/libgcc_s.so.1
08048000-08059000 r-xp 00000000 08:01
1585412 /home/towolf/Desktop/ptpcam_trunk/ptpcam
08059000-0805a000 r--p 00011000 08:01
1585412 /home/towolf/Desktop/ptpcam_trunk/ptpcam
0805a000-0805c000 rw-p 00012000 08:01
1585412 /home/towolf/Desktop/ptpcam_trunk/ptpcam
0805c000-08099000 rw-p 00000000 00:00
0 [heap
]
b7fe3000-b7fe5000 rw-p 00000000 00:00
0
b7ffc000-b8000000 rw-p 00000000 00:00
0
bffdf000-c0000000 rw-p 00000000 00:00
0 [stack
]
Program received
signal SIGABRT, Aborted.
0x0012e416 in
__kernel_vsyscall ()
(gdb
) bt
#0 0x0012e416 in
__kernel_vsyscall ()
#1 0x00162941 in
raise (sig=
6) at
../nptl/sysdeps/unix/sysv/linux/raise.c:
64
#2 0x00165e42 in
abort () at
abort.c:
92
#3 0x0019a305 in
__libc_message (do_abort=
2, fmt=
0x270398 "*** %s ***: %s terminated\n")
at
../sysdeps/unix/sysv/linux/libc_fatal.c:
189
#4 0x0021d990 in
__fortify_fail (msg=<
value optimized out>
) at
fortify_fail.c:
32
#5 0x0021d93a in
__stack_chk_fail () at
stack_chk_fail.c:
29
#6 0x0804e9ff in
ptp_chdk_switch_mode (mode=
1, params=
0x805c8e0, deviceinfo=
0x805c92c) at
ptp.c:
1917
#7 0x08054e20 in
chdk (busn=
0, devn=
0, force=
0) at
ptpcam.c:
2620
#8 0x08053662 in
main (argc=
2, argv=
0xbffff184) at
ptpcam.c:2089
(gdb
)Erstellt in 0.010 Sekunden, mit
GeSHi 1.0.8.9