Package: puredata
Followup-For: Bug #690410

Recompiled puredata with the following 2 lines added to the top of 
debian/rules:

# Stop problems with puredata crashing due to buffer space issues?
export DEB_BUILD_MAINT_OPTIONS=hardening=+format,-fortify,+stackprotector,+relro

This turns off _FORTIFY_SOURCE.  Puredata works with out problems with the 
PD 'patches' in my project.

If you look at the back trace in the stack dump in the original bau report,
it crashed in:

pd(pd_typedmess+0x45b)[0x456fab]
pd(outlet_anything+0x4a)[0x458eca]
pd(pd_typedmess+0x1db)[0x456d2b]
pd(binbuf_eval+0x90b)[0x4600fb]
pd(outlet_list+0x4a)[0x458e3a]
pd[0x455b5c]
pd(outlet_float+0x3f)[0x458d0f]
pd(outlet_bang+0x29)[0x458be9]
pd(sched_tick+0x77)[0x463047]
pd(m_mainloop+0x1e9)[0x463319]

bang, float, list are basic puredata objects.  binbuf_eval() is also one of the 
functions.  It looks like puredata uses functions like strcat(), strcpy() in 
non-conventional ways with some kind of buffer.  

Turning off _FORTIFY_SOURCE looks like it needs to be done to ensure 100%
functionality.  Just patching one or two instances of the functions may not get
all the problem points fixed as the puredata algorithms probably assume that 
the functions will copy/concatenate indefinitely throughout the whole code 
base.

Talk to upstream before turning on _FORTIFY_SOURCE please.

Regards,

Matthew Grant



-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.23 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_NZ.UTF-8, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages puredata depends on:
ii  puredata-core   0.43.2-5~0mag1
ii  puredata-dev    0.43.2-5~0mag1
ii  puredata-doc    0.43.2-5~0mag1
ii  puredata-extra  0.43.2-5~0mag1
ii  puredata-gui    0.43.2-5~0mag1
ii  puredata-utils  0.43.2-5~0mag1

Versions of packages puredata recommends:
ii  gem  3:0.93.3-6~0mag0

Versions of packages puredata suggests:
ii  pd-aubio   0.3.2-4.2+b1
ii  pd-csound  1:5.17.11~dfsg-2
ii  pd-pdp     1:0.12.5-2
ii  pd-zexy    2.2.5-1

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to