[issue18458] interactive interpreter crashes and test_readline fails on OS X 10.9 Mavericks due to libedit update

2021-11-04 Thread Erlend E. Aasland


Change by Erlend E. Aasland :


--
components:  -email
nosy: +Etienne Le Sueur, Russell.Jurney, jcea, mkleehammer, mrichman, 
ned.deily, nneonneo, python-dev, ronaldoussoren -ahmedsayeed1982, barry, 
r.david.murray
versions:  -Python 3.11

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18458] interactive interpreter crashes and test_readline fails on OS X 10.9 Mavericks due to libedit update

2021-11-04 Thread Erlend E. Aasland


Change by Erlend E. Aasland :


--
Removed message: https://bugs.python.org/msg405711

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18458] interactive interpreter crashes and test_readline fails on OS X 10.9 Mavericks due to libedit update

2021-11-04 Thread Ahmed Sayeed


Ahmed Sayeed  added the comment:

"The strncat() function shall append not more than n bytes (a null byte and 
bytes that follow it are not appended) from the array pointed to by s2 to the 
end of the string pointed to by s1." http://www-look-4.com/category/technology/

The wording imply that the third "n" argument is an additional boundary limit, 
not the destination buffer capacity (ie. the destination buffer is not 
implicitly SIZE_MAX), https://komiya-dental.com/health/healthy-foods/ and both 
source and destination do not overlap (overlapping depends on the source and 
destination layout, not on the "n" value) 
http://www.iu-bloomington.com/computers/invisible-with-vpn/

However, it seems that the optimized strncat version of the GLIBC behaves 
incorrectly, when using this value. https://waytowhatsnext.com/sports/navona/
"The strncat() function shall append not more than n bytes (a null byte and 
bytes that follow it are not appended) from the array pointed to by s2 to the 
end of the string pointed to by s1."
https://www.webb-dev.co.uk/sports/sports-and-health/
The wording imply that the third "n" argument is an additional boundary limit, 
not the destination buffer capacity (ie. the destination buffer is not 
implicitly SIZE_MAX), and both source and destination 
http://www.wearelondonmade.com/category/tech/ do not overlap (overlapping 
depends on the source and destination layout, not on the "n" value)

However, it seems that the optimized strncat version of the GLIBC behaves 
incorrectly, when using this value. 
http://www.jopspeech.com/category/technology/
"The strncat() function shall append not more than n bytes (a null byte and 
bytes that follow it are not appended) from the array pointed to by s2 to the 
end of the string pointed to by s1."
http://joerg.li/category/technology/
The wording imply that the third "n" argument is an additional boundary limit, 
not the destination buffer capacity (ie. the destination buffer is not 
implicitly SIZE_MAX), and both source and destination do not 
http://connstr.net/category/technology/ overlap (overlapping depends on the 
source and destination layout, not on the "n" value)

However, it seems that the optimized strncat version of the GLIBC behaves 
incorrectly, when using this value. 
http://embermanchester.uk/category/technology/
"The strncat() function shall append not more than n bytes (a null byte and 
bytes that follow it are not appended) from the array pointed to by s2 to the 
end of the string pointed to by s1."
 http://www.slipstone.co.uk/category/technology/
The wording imply that the third "n" argument is an additional boundary limit, 
not the destination buffer capacity (ie. the destination buffer is not 
implicitly SIZE_MAX), and both source and destination do not overlap 
http://www.logoarts.co.uk/category/technology/ (overlapping depends on the 
source and destination layout, not on the "n" value)

However, it seems that the optimized strncat version of the GLIBC behaves 
incorrectly, when using this value. 
http://www.acpirateradio.co.uk/category/technology/
"The strncat() function shall append not more than n bytes (a null byte and 
bytes that follow it are not appended) from the array pointed to by s2 to the 
end of the string pointed to by s1." 
http://www.compilatori.com/category/technology/

The wording imply that the third "n" argument is an additional boundary limit, 
not the destination buffer capacity (ie. the destination buffer is not 
implicitly SIZE_MAX), and both source and destination do not overlap 
(overlapping depends on the source and destination layout, not on the "n" 
value) 

However, it seems that the optimized strncat version of the GLIBC behaves 
incorrectly, when using this value.

--
components: +email
nosy: +ahmedsayeed1982 -Etienne Le Sueur, Russell.Jurney, jcea, mkleehammer, 
mrichman, ned.deily, nneonneo, python-dev, ronaldoussoren
versions: +Python 3.11 -Python 2.7, Python 3.3, Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18458] interactive interpreter crashes and test_readline fails on OS X 10.9 Mavericks due to libedit update

2015-06-02 Thread R. David Murray

R. David Murray added the comment:

Yes, this is fixed, as the issue resolution says.  If you are curious about the 
fix, follow the links to the commits starting in msg197116.

--
nosy: +r.david.murray

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18458
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18458] interactive interpreter crashes and test_readline fails on OS X 10.9 Mavericks due to libedit update

2015-06-02 Thread Etienne Le Sueur

Etienne Le Sueur added the comment:

Thanks, I had missed that message.

On 6/2/15 4:39 PM, R. David Murray wrote:
 R. David Murray added the comment:

 Yes, this is fixed, as the issue resolution says.  If you are curious about 
 the fix, follow the links to the commits starting in msg197116.

 --
 nosy: +r.david.murray

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue18458
 ___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18458
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18458] interactive interpreter crashes and test_readline fails on OS X 10.9 Mavericks due to libedit update

2013-11-01 Thread Russell Jurney

Russell Jurney added the comment:

I have installed 2.7.6 RC1 on OS X 10.9, and this bug still exists. See 
http://stackoverflow.com/questions/19722580/segfault-11-with-pandas-with-python-v2-7-6-rc1-on-mac-os-x-10-9

--
nosy: +Russell.Jurney

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18458
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18458] interactive interpreter crashes and test_readline fails on OS X 10.9 Mavericks due to libedit update

2013-11-01 Thread Robert Xiao

Changes by Robert Xiao nneon...@gmail.com:


Removed file: http://bugs.python.org/file32320/readline.so

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18458
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18458] interactive interpreter crashes and test_readline fails on OS X 10.9 Mavericks due to libedit update

2013-11-01 Thread Robert Xiao

Robert Xiao added the comment:

Russell, that's not related to readline. Please file a new bug report.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18458
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18458] interactive interpreter crashes and test_readline fails on OS X 10.9 Mavericks due to libedit update

2013-10-30 Thread Mark Richman

Mark Richman added the comment:

I had to do `sudo sh ./patch_readline_issue_18458.sh` or the patch script 
itself would cause Python to crash.

After applying this patch, I got the following output, and the problem is still 
*not* solved for me:

-- running on OS X 10.9
 -- 2.7 does not need to be patched - skipped
 -- 3.2 not found - skipped
 -- 3.3 not found - skipped
 -- 3.4 not found - skipped
 -- done

--
nosy: +mrichman

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18458
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18458] interactive interpreter crashes and test_readline fails on OS X 10.9 Mavericks due to libedit update

2013-10-30 Thread Ned Deily

Ned Deily added the comment:

Mark, I'm not sure I understand what you saw but the patch script will cause a 
Python crash as part of its testing so that is to be expected.  You should not 
have to run the script using sudo.  This script also only applies to Pythons 
installed from python.org (or otherwise installed into /Library/Frameworks).  
Please check which python you are using.  Using whatever command name you enter 
to start the failing python, try the following (I'll assume you use 
python2.7):

type python2.7
which python2.7
python2.7 -c import sys;print(sys.version)
python2.7 -c import sys;print(sys.executable)

The value for sys.executable should be:
/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python

In any case, you could manually rename _readline.so as shown in one of the 
earlier messages (substituting 2.7 for 3.3).  Or you could install 2.7.6rc1.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18458
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18458] interactive interpreter crashes and test_readline fails on OS X 10.9 Mavericks due to libedit update

2013-10-30 Thread Mark Richman

Mark Richman added the comment:

My mistake. I'm using
/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python

--
*Mark Richman*
web: www.markrichman.com
email: m...@markrichman.com
tel: (954) 234-9049
http://www.linkedin.com/in/mrichman

On Wed, Oct 30, 2013 at 3:32 PM, Ned Deily rep...@bugs.python.org wrote:


 Ned Deily added the comment:

 Mark, I'm not sure I understand what you saw but the patch script will
 cause a Python crash as part of its testing so that is to be expected.  You
 should not have to run the script using sudo.  This script also only
 applies to Pythons installed from python.org (or otherwise installed into
 /Library/Frameworks).  Please check which python you are using.  Using
 whatever command name you enter to start the failing python, try the
 following (I'll assume you use python2.7):

 type python2.7
 which python2.7
 python2.7 -c import sys;print(sys.version)
 python2.7 -c import sys;print(sys.executable)

 The value for sys.executable should be:

 /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python

 In any case, you could manually rename _readline.so as shown in one of the
 earlier messages (substituting 2.7 for 3.3).  Or you could install
 2.7.6rc1.

 --

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue18458
 ___


--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18458
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18458] interactive interpreter crashes and test_readline fails on OS X 10.9 Mavericks due to libedit update

2013-10-27 Thread Ned Deily

Ned Deily added the comment:

An update: release candidates for Python 3.3.3 and 2.7.6 are now available, 
including binary installers for OS X, that include this fix and fully support 
OS X 10.9.

http://www.python.org/download/releases/3.3.3/

http://www.python.org/download/releases/2.7.6/

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18458
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18458] interactive interpreter crashes and test_readline fails on OS X 10.9 Mavericks due to libedit update

2013-10-24 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

Does this affect 2.6?  Is there a patch we need to get into 2.6.9 final?

--
nosy: +barry

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18458
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18458] interactive interpreter crashes and test_readline fails on OS X 10.9 Mavericks due to libedit update

2013-10-24 Thread Ned Deily

Ned Deily added the comment:

Barry: yes, 2.6 is affected. See discussion on python-dev.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18458
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18458] interactive interpreter crashes and test_readline fails on OS X 10.9 Mavericks due to libedit update

2013-10-24 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

On Oct 24, 2013, at 08:14 PM, Ned Deily wrote:

Barry: yes, 2.6 is affected. See discussion on python-dev.

Thanks Ned for the background over on python-dev.  Unless I hear objections
otherwise, I am not going to apply this to 2.6.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18458
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18458] interactive interpreter crashes and test_readline fails on OS X 10.9 Mavericks due to libedit update

2013-10-23 Thread Ned Deily

Ned Deily added the comment:

Until the updated readline module is available in python.org 2.7.6 and 3.3.3 
maintenance releases, here is a script that will check python.org versions of 
Python 2.7.x, 3.2.x, 3.3.x, and 3.4.x for interactive crashes and will patch 
around the problem as needed.  On most systems you will need to run it under an 
account with administrator privileges.

To use it, open a terminal session in Terminal.app (or other shell), then enter:

curl -O http://bugs.python.org/file32324/patch_readline_issue_18458.sh
openssl sha1 patch_readline_issue_18458.sh
# the digest should be 7cb0ff57820a027dd4ca242eb2418930f8f46b4c
sh ./patch_readline_issue_18458.sh


The output on a 10.9 system with python.org 2.7.5, 3.3.2, and 3.4.0a4 installed 
should look something like this:

 -- running on OS X 10.9
 -- 2.7 crashed
 -- 2.7 moving readline extension to 
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/readline.so.disabled
 -- need to patch. Enter password if prompted
Password:
 -- 2.7 is now patched
 -- 3.2 not found - skipped
 -- 3.3 crashed
 -- 3.3 moving readline extension to 
/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/lib-dynload/readline.so.disabled
 -- 3.3 is now patched
 -- 3.4 does not need to be patched - skipped
 -- done

--
title: interactive interpreter crashes and test_readline fails with newer 
versions of libedit - interactive interpreter crashes and test_readline fails 
on OS X 10.9 Mavericks due to libedit update

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18458
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com