bad environment variable in padsp script

Bug #2068940 reported by Stephen Isard
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
pulseaudio (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

On jammy 22.04 LTS. I need padsp for an old program that writes to /dev/dsp. The /usr/bin/padsp script from pulseaudio-utils 1:15.99.1+dfsg1-1ubuntu2.2 has the lines
if [ x"$LD_PRELOAD" = x ] ; then
   LD_PRELOAD="/usr/\\$$LIB/pulseaudio/libpulsedsp.so"
else
   LD_PRELOAD="$LD_PRELOAD /usr/\\$$LIB/pulseaudio/libpulsedsp.so"
fi
I don't know where it is supposed to be picking up a value for $LIB, but it isn't working. I get an error message: ld.so: object '/usr/\788488LIB/pulseaudio/libpulsedsp.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
The libpulsedsp 1:15.99.1+dfsg1-1ubuntu2.2 package put libpulsedsp.so in /usr/lib/x86_64-linux-gnu/pulseaudio and if I edit that into the script in place of the call to $LIB, everything works. So I think it is just a problem with the use of LIB in the script.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in pulseaudio (Ubuntu):
status: New → Confirmed
Revision history for this message
bivanbi (balazs-lengyak) wrote :

A quick dirty workaround for 64-bit binaries:
```
diff --git a/usr/bin/padsp.dpkg b/usr/bin/padsp
index 1f6bfd5..62e8686 100755
--- a/usr/bin/padsp.dpkg
+++ b/usr/bin/padsp
@@ -73,11 +73,7 @@ done

 shift $(( $OPTIND - 1 ))

-if [ x"$LD_PRELOAD" = x ] ; then
- LD_PRELOAD="/usr/\\$$LIB/pulseaudio/libpulsedsp.so"
-else
- LD_PRELOAD="$LD_PRELOAD /usr/\\$$LIB/pulseaudio/libpulsedsp.so"
-fi
+LD_PRELOAD=/usr/lib/x86_64-linux-gnu/pulseaudio/libpulsedsp.so

 export LD_PRELOAD

```

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.