Issue 35583: (glibc2.28/MIPS32EL) python 3.7.x interpreter segmentation fault (3.6.x/2.7.x compile fine) (original) (raw)

Created on 2018-12-25 19:39 by broly, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (5)

msg332514 - (view)

Author: Gagan (broly)

Date: 2018-12-25 19:39

Hello everyone.

I am currently trying to compile Python 3.7.x on a MIPS(el, little endian; 32 bit) platform, and I am having issues producing a functioning interpreter to continue the compilation.

I have no issue compiling either 2.7.x or 3.6.x versions on this machine, and I am using 3.6.7.

here is the dump from the installation:

root@DD-WRT:/mnt/work/Python-3.7.2# make platform LD_LIBRARY_PATH=/mnt/work/Python-3.7.2:/lib:/usr/lib:/usr/local/lib:/jffs/lib:/jffs/usr/lib:/jffs/usr/local/lib:/mmc/lib:/mmc/usr/lib:/opt/lib:/opt/usr/lib ./python -E -S -m sysconfig --generate-posix-vars ;
if test $? -ne 0 ; then
echo "generate-posix-vars failed" ;
rm -f ./pybuilddir.txt ;
exit 1 ;
fi /bin/sh: line 5: 399 Segmentation fault LD_LIBRARY_PATH=/mnt/work/Python-3.7.2:/lib:/usr/lib:/usr/local/lib:/jffs/lib:/jffs/usr/lib:/jffs/usr/local/lib:/mmc/lib:/mmc/usr/lib:/opt/lib:/opt/usr/lib ./python -E -S -m sysconfig --generate-posix-vars generate-posix-vars failed make: *** [Makefile:604: pybuilddir.txt] Error 1

and here is the valgrind output.:


it seems to me there is an issue with the new Modules/getpath.c Objects/pathconfig.c Modules/main.c compared to the 3.6.x versions?

Any help would be appreciated!

thank you

msg332570 - (view)

Author: Gagan (broly)

Date: 2018-12-27 00:35

i tried compiling using "--without-pymalloc" and experienced the same problem.

there is no REASONABLE explanation for how this anomaly has arisen within SUBVERSIONS.

in the words of some infamous rappers:

"what, the 'embedded' (ARM-fellating) [east coast] crew doesn't have any love for MIPS [{Dr.} Dre and Snoop Dogg]?" (https://www.youtube.com/watch?v=tNfx325Nw78)

"y'all don't love MIPS (us)?"

"well let it be known then. we know you're ARM lovers ('east coast')"

seems those "high minded", "ancient", "lost civilisation" (and "aryan" [LULZ]) individuals have polluted computing.

it is unreal how much you guys have destroyed your own language.

msg332603 - (view)

Author: Mariatta (Mariatta) * (Python committer)

Date: 2018-12-27 17:23

Your disrespectful comments and insults are not welcome here.

msg332605 - (view)

Author: Gagan (broly)

Date: 2018-12-27 17:45

of course you have more time to get sanctimonious than provide a substantive or insight comment as to what the problem is.

i am not surprised, at all.

msg332728 - (view)

Author: Gagan (broly)

Date: 2018-12-29 17:56

hello everyone.

the core problem was that the 3.x series configure file includes a "-lintl" flag when it discovers the libintl header. in 2.x, this was not the case.

so when configure is checking for wchar_t, the inclusion of -lintl (as opposed to libgnuintl, which is what i have), it fails and returns 0 which is then the SIZEOF_WCHAR_T in the pyconfig.h file.

it turns out Modules/main.c relies more on wchar_t in 3.7 than it does in 3.6.x, which is why i did not see this problem arise when compiling the interpreter to complete module compilation (and tests).

however, in 3.7.x, there is additional use of wchar_t and thus the segmentation faults (allocating 0 bytes).

hope this helps others who may compile the GNU flavour of libintl (see https://lists.gnu.org/archive/html/bug-gnu-utils/2010-07/msg00002.html for more information. i learned a little too).

CHEERS EH

History

Date

User

Action

Args

2022-04-11 14:59:09

admin

set

github: 79764

2018-12-30 01:09:46

broly

set

resolution: not a bug -> rejected

2018-12-29 17:56:32

broly

set

status: open -> closed
resolution: not a bug
messages: +

stage: resolved

2018-12-27 17:45:42

broly

set

messages: +

2018-12-27 17:23:45

Mariatta

set

nosy: + Mariatta
messages: +

2018-12-27 00:35:53

broly

set

messages: +

2018-12-25 19:40:24

broly

set

title: python 3.7.x interpreter segmentation fault (3.6.x/2.7.x compile fine) -> (glibc2.28/MIPS32EL) python 3.7.x interpreter segmentation fault (3.6.x/2.7.x compile fine)

2018-12-25 19:39:03

broly

create