stack smashing detected with v1.0.5

Bug #961812 reported by Evangelos Foutras
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libmemcached
Fix Released
Low
Brian Aker

Bug Description

I received a bug report [1] on Arch Linux's tracker.

The issue is that php-memcached (version 2.0.1) built against libmemcached 1.0.4 – but running against libmemcached 1.0.5 – produces a "stack smashing detected" error when it calls Memcached::getMulti().

This fault occurs only on x86_64 and not on i686 architectures.

There is no soname bump between libmemcached 1.0.4 and 1.0.5, so this shouldn't be happening. Rebuilding php-memcached against libmemcached 1.0.5 makes the issue go away.

Is there a change in libmemcached 1.0.5 that would cause this? The full error is included in the downstream report [1], but it may not provide many clues. I can provide additional information if that's requested.

[1] https://bugs.archlinux.org/task/29024

Revision history for this message
Brian Aker (brianaker) wrote :

My guess?

Somehow there is an ABI issue that wasn't detected during the last build cycle. We can bump it in 1.0.6 to force the fix.

Changed in libmemcached:
assignee: nobody → Brian Aker (brianaker)
Revision history for this message
Brian Aker (brianaker) wrote :

There was a shift in the usage of stddef header. That could have caused the issue (I am surprised, but it is the only difference detected).

Brian Aker (brianaker)
Changed in libmemcached:
status: New → In Progress
milestone: none → 1.0.6
importance: Undecided → Low
Revision history for this message
Evangelos Foutras (foutrelis) wrote :

I'm attaching an automated report generated by ABI Compliance Checker [1].

I hope that it helps you better understand which change broke ABI compatibility in v1.0.5.

[1] http://ispras.linuxbase.org/index.php/ABI_compliance_checker

Revision history for this message
Brian Aker (brianaker) wrote :

What tool did you use to generate the the report?

I'm bumping the version for 1.0.6.

Revision history for this message
Evangelos Foutras (foutrelis) wrote :

I have included information about the tool used in my previous comment.

Thanks for fixing this.

Brian Aker (brianaker)
Changed in libmemcached:
status: In Progress → Fix Released
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.