
I could try getting a backtrace if you told me how to enable debug information

make
sudo make install
gdb [program]
gdb> run
(gdb) set args Ahnonay.sum
(gdb) run
Starting program: /home/diafero/src/Plasma/Plasma/bin/PlasmaSum Ahnonay.sum
Ahnonay.sum:
7c6eb9f3a335c1795ff473b8901b80b8 2004/05/26 17:38:36 dat\Ahnonay_District_BuiltIn.prp
*** stack smashing detected ***: /home/diafero/src/Plasma/Plasma/bin/PlasmaSum terminated
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0xb7a54da8]
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x0)[0xb7a54d60]
/home/diafero/src/Plasma/Plasma/bin/libPlasma.so[0xb7e692f4]
/home/diafero/src/Plasma/Plasma/bin/libPlasma.so(_ZN5plMD510hashStreamEP8hsStream+0x1c6)[0xb7d1a6b6]
[0x0]
======= Memory map: ========
08048000-0804f000 r-xp 00000000 08:07 1898277 /home/diafero/src/Plasma/Plasma/bin/PlasmaSum
0804f000-08050000 r--p 00007000 08:07 1898277 /home/diafero/src/Plasma/Plasma/bin/PlasmaSum
08050000-08051000 rw-p 00008000 08:07 1898277 /home/diafero/src/Plasma/Plasma/bin/PlasmaSum
092b1000-092d2000 rw-p 092b1000 00:00 0 [heap]
b7956000-b7957000 rw-p b7956000 00:00 0
b7957000-b7ab3000 r-xp 00000000 08:05 525641 /lib/tls/i686/cmov/libc-2.9.so
b7ab3000-b7ab4000 ---p 0015c000 08:05 525641 /lib/tls/i686/cmov/libc-2.9.so
b7ab4000-b7ab6000 r--p 0015c000 08:05 525641 /lib/tls/i686/cmov/libc-2.9.so
b7ab6000-b7ab7000 rw-p 0015e000 08:05 525641 /lib/tls/i686/cmov/libc-2.9.so
b7ab7000-b7aba000 rw-p b7ab7000 00:00 0
b7aba000-b7ac7000 r-xp 00000000 08:05 507969 /lib/libgcc_s.so.1
b7ac7000-b7ac8000 r--p 0000c000 08:05 507969 /lib/libgcc_s.so.1
b7ac8000-b7ac9000 rw-p 0000d000 08:05 507969 /lib/libgcc_s.so.1
b7ac9000-b7aed000 r-xp 00000000 08:05 525649 /lib/tls/i686/cmov/libm-2.9.so
b7aed000-b7aee000 r--p 00023000 08:05 525649 /lib/tls/i686/cmov/libm-2.9.so
b7aee000-b7aef000 rw-p 00024000 08:05 525649 /lib/tls/i686/cmov/libm-2.9.so
b7aef000-b7af0000 rw-p b7aef000 00:00 0
b7af0000-b7bd4000 r-xp 00000000 08:05 1060350 /usr/lib/libstdc++.so.6.0.10
b7bd4000-b7bd8000 r--p 000e3000 08:05 1060350 /usr/lib/libstdc++.so.6.0.10
b7bd8000-b7bd9000 rw-p 000e7000 08:05 1060350 /usr/lib/libstdc++.so.6.0.10
b7bd9000-b7bdf000 rw-p b7bd9000 00:00 0
b7bf2000-b7bf7000 rw-p b7bf2000 00:00 0
b7bf7000-b7ee3000 r-xp 00000000 08:07 1897111 /home/diafero/src/Plasma/Plasma/bin/libPlasma.so
b7ee3000-b7eeb000 r--p 002eb000 08:07 1897111 /home/diafero/src/Plasma/Plasma/bin/libPlasma.so
b7eeb000-b7efc000 rw-p 002f3000 08:07 1897111 /home/diafero/src/Plasma/Plasma/bin/libPlasma.so
b7efc000-b7efe000 rw-p b7efc000 00:00 0
b7efe000-b7eff000 r-xp b7efe000 00:00 0 [vdso]
b7eff000-b7f1b000 r-xp 00000000 08:05 507927 /lib/ld-2.9.so
b7f1b000-b7f1c000 r--p 0001b000 08:05 507927 /lib/ld-2.9.so
b7f1c000-b7f1d000 rw-p 0001c000 08:05 507927 /lib/ld-2.9.so
bf908000-bf91d000 rw-p bffeb000 00:00 0 [stack]
Program received signal SIGABRT, Aborted.
0xb7efe430 in __kernel_vsyscall ()
(gdb) bt
#0 0xb7efe430 in __kernel_vsyscall ()
#1 0xb79826d0 in raise () from /lib/tls/i686/cmov/libc.so.6
#2 0xb7984098 in abort () from /lib/tls/i686/cmov/libc.so.6
#3 0xb79c024d in ?? () from /lib/tls/i686/cmov/libc.so.6
#4 0xb7a54da8 in __fortify_fail () from /lib/tls/i686/cmov/libc.so.6
#5 0xb7a54d60 in __stack_chk_fail () from /lib/tls/i686/cmov/libc.so.6
#6 0xb7e692f4 in __stack_chk_fail_local () from /home/diafero/src/Plasma/Plasma/bin/libPlasma.so
#7 0xb7d1a6b6 in plMD5::hashStream (S=0x92b11a0) at Util/plMD5.cpp:262
#8 0x00000000 in ?? ()
diafero wrote:Ok, it works now
However (yeah, I am complaining too much...), it seems the tool also accepts sum files in which "filename.prp" is saved instead of "dat\filename.prp" - TPOTS will not accept this though, it will complain about missing or invalid files.
Options:
-L List the contents of the sumfile
-c Create a new sumfile (or overwrite one if it already exists)
-i path Insert `path` into the sumfile (or re-hash if it exists)
-d path Remove `path` from the sumfile
-y Answer YES to delete prompts
-old Use the older (pre-Path of the Shell) format
If no options are specified, the default is to re-sum the contents of `sumfile`
Users browsing this forum: No registered users and 2 guests