Bug 698439 - Wrong use of memcpy in zsh
Summary: Wrong use of memcpy in zsh
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: zsh
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Dominic Hopf
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 696096
TreeView+ depends on / blocked
 
Reported: 2011-04-20 21:33 UTC by Felipe Contreras
Modified: 2012-02-02 21:55 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-02 21:55:38 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Felipe Contreras 2011-04-20 21:33:05 UTC
Description of problem: zsh uses memcpy wrongly

Version-Release number of selected component (if applicable): 4.3.10-5

Follow the instructions in parent bug #696096.

Paste the following into the command line:

foo:            baaaaaaaaaaaaaaaaaaaaaaaaaar
foo:            baaaaaaaaaaaaaaaaaaaaaaaaaar
foo:            baaaaaaaaaaaaaaaaaaaaaaaaaar

A crash occurs.

Comment 1 Dominic Hopf 2011-12-17 19:01:27 UTC
Trying to reproduce the issue with the instructions you described 696096 is not causing a crash anymore, unfortunately. I was able to point out lines like this in /var/log/messages instead:

Dec 17 19:56:21 hellraiser ksmtuned[1127]: ERROR: ld.so: object '/tmp/memcpy_check.so' from /etc/ld.so.preload cannot be preloaded: ignored.


For the record: I have an F16 installation here and run Zsh version 4.3.14 which is available in updates-testing.


Is there any other way to maybe reproduce this issue or can we assume this has been fixed in the meanwhile?

Comment 2 Felipe Contreras 2011-12-22 16:28:25 UTC
(In reply to comment #1)
> Trying to reproduce the issue with the instructions you described 696096 is not
> causing a crash anymore, unfortunately. I was able to point out lines like this
> in /var/log/messages instead:
> 
> Dec 17 19:56:21 hellraiser ksmtuned[1127]: ERROR: ld.so: object
> '/tmp/memcpy_check.so' from /etc/ld.so.preload cannot be preloaded: ignored.

You must be doing something wrong then.

Please use attachment #493497 [details].

And do this:
% gcc -O2 -fPIC -Wall -Werror memcpy_check.c --shared -o /tmp/memcpy_check.so
% echo /tmp/memcpy_check.so | sudo tee /etc/ld.so.preload

Make sure that all these commands succeed, that ld.so.preload contains /tmp/memcpy_check.so, and that 'file /tmp/memcpy_check.so' returns something that is compatible to your machine.

FTR, still crashes here.

Comment 3 Felipe Contreras 2012-02-02 21:55:38 UTC
Seems to be fixed now. Maybe 4.3.14, or maybe 4.3.15.


Note You need to log in before you can comment on or make changes to this bug.