Ticket #401 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

32bit client can't use shm to talk to 64bit PA daemon

Reported by: michich Owned by: lennart
Milestone: Component: core
Keywords: Cc:

Description

A 32bit program (for testing I use the package qmmp.i386 on Fedora Rawhide x86_64) is unable to use shared memory to communicate with the 64bit pulseaudio daemon. The client prints an error message:

E: shm.c: Invalid shared memory segment size

The error is not fatal, the client is able to play sounds anyway (I think it uses sockets for all data then).

The problem is caused by a smaller size of struct shm_marker when compiled for i386. I don't think the _reserved fields should be pointers.

Attachments

pulseaudio-0.9.13-32-client-64-daemon.patch (0.7 kB) - added by michich 3 years ago.
patch for SHM compatibility between i386 client and x86_64 daemon

Change History

Changed 3 years ago by michich

patch for SHM compatibility between i386 client and x86_64 daemon

Changed 3 years ago by coling

Ahh, this seems to make sense to me. Lennart?

Changed 3 years ago by lennart

  • status changed from new to closed
  • resolution set to fixed

Uh, I thought I had fixed that a while back. But apparently all I did was replacing "void*" by "uint64_t*". How pointless ... and embarassing.

Fixed now in rf826ded33d079ea7aead78c811f742cee98214e8.

Thanks for the patch

Note: See TracTickets for help on using tickets.