Dear all,
I am using Pd version 0.39-2 on linux debian.
I wanted to produce using the makefilename object a symbol that contains
a number and a symbol (123test.mtx), by giving the makefilename the
wrong %%order my whole pd crashed immediately, producing a segmentation
fault.
attached is the test patch with explanations.
gdb) run
Starting program: /usr/bin/pd
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1211230528 (LWP 3203)]
(no debugging symbols found)
(no debugging symbols found)
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1211230528 (LWP 3203)]
0xb7d4e783 in strlen () from /lib/tls/libc.so.6
(gdb) where
#0 0xb7d4e783 in strlen () from /lib/tls/libc.so.6
#1 0xb7d22064 in vfprintf () from /lib/tls/libc.so.6
#2 0xb7d3acdb in vsprintf () from /lib/tls/libc.so.6
#3 0xb7d272ee in sprintf () from /lib/tls/libc.so.6
#4 0x080eac55 in change_setup ()
#5 0xbfdd66ac in ?? ()
#6 0x082368d0 in ?? ()
#7 0x00000800 in ?? ()
#8 0xffffffff in ?? ()
#9 0x037f0f7f in ?? ()
#10 0x00000000 in ?? ()
(gdb) quit
The program is running. Exit anyway? (y or n) y
Gerda
#N canvas 0 0 629 557 10;
#X obj 107 369 print;
#X msg 107 250 set \$1;
#X obj 107 341 makefilename;
#X msg 118 302 2048;
#X obj 107 221 makefilename %d%%s.mtx;
#X msg 107 157 symbol test;
#X text 93 63 first press symbol \, then after pressing the number
message \, pd crashes;
#X text 276 221 (i know it should be %%d%s.mtx);
#X text 97 117 I wanted to create 2048test.mtx;
#X connect 1 0 2 0;
#X connect 2 0 0 0;
#X connect 3 0 2 0;
#X connect 4 0 1 0;
#X connect 5 0 4 0;