[issue35583] (glibc2.28/MIPS32EL) python 3.7.x interpreter segmentation fault (3.6.x/2.7.x compile fine)
Change by Gagan : -- resolution: not a bug -> rejected ___ Python tracker <https://bugs.python.org/issue35583> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35583] (glibc2.28/MIPS32EL) python 3.7.x interpreter segmentation fault (3.6.x/2.7.x compile fine)
Gagan added the comment: 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/msg2.html for more information. i learned a little too). CHEERS EH -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue35583> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35583] (glibc2.28/MIPS32EL) python 3.7.x interpreter segmentation fault (3.6.x/2.7.x compile fine)
Gagan added the comment: 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. -- ___ Python tracker <https://bugs.python.org/issue35583> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35583] (glibc2.28/MIPS32EL) python 3.7.x interpreter segmentation fault (3.6.x/2.7.x compile fine)
Gagan added the comment: 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. -- ___ Python tracker <https://bugs.python.org/issue35583> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35583] (glibc2.28/MIPS32EL) python 3.7.x interpreter segmentation fault (3.6.x/2.7.x compile fine)
Change by Gagan : -- 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) ___ Python tracker <https://bugs.python.org/issue35583> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35583] python 3.7.x interpreter segmentation fault (3.6.x/2.7.x compile fine)
New submission from Gagan : 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.: - root@DD-WRT:/mnt/work/Python-3.7.2# valgrind ./python -E -S -m sysconfig --generate-posix-vars ==1246== Memcheck, a memory error detector ==1246== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==1246== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info ==1246== Command: ./python -E -S -m sysconfig --generate-posix-vars ==1246== ==1246== Conditional jump or move depends on uninitialised value(s) ==1246==at 0x401FAF4: ??? (in /lib/ld-2.28.so) ==1246==by 0x400942C: ??? (in /lib/ld-2.28.so) ==1246== ==1246== Conditional jump or move depends on uninitialised value(s) ==1246==at 0x4020104: ??? (in /lib/ld-2.28.so) ==1246==by 0x4020024: ??? (in /lib/ld-2.28.so) ==1246== ==1246== Conditional jump or move depends on uninitialised value(s) ==1246==at 0x4007E94: ??? (in /lib/ld-2.28.so) ==1246==by 0x4007DC4: ??? (in /lib/ld-2.28.so) ==1246== ==1246== Conditional jump or move depends on uninitialised value(s) ==1246==at 0x4020104: ??? (in /lib/ld-2.28.so) ==1246==by 0x400D950: ??? (in /lib/ld-2.28.so) ==1246== Could not find platform dependent libraries Consider setting $PYTHONHOME to [:] ==1246== Conditional jump or move depends on uninitialised value(s) ==1246==at 0x4858AEC: wcslen (vg_replace_strmem.c:1856) ==1246==by 0x4A51CEC: _PyMem_RawWcsdup (obmalloc.c:569) ==1246==by 0x4D15A8C: pymain_wstrdup (main.c:501) ==1246==by 0x4D15A8C: pymain_init_cmdline_argv (main.c:561) ==1246==by 0x4D15A8C: pymain_read_conf (main.c:2024) ==1246==by 0x4D15A8C: pymain_cmdline_impl (main.c:2642) ==1246==by 0x4D15A8C: pymain_cmdline (main.c:2707) ==1246==by 0x4D15A8C: pymain_init (main.c:2748) ==1246==by 0x4D18BA0: pymain_main (main.c:2782) ==1246==by 0x4D1AE04: _Py_UnixMain (main.c:2822) ==1246==by 0x400D88: main (in /tmp/mnt/work/Python-3.7.2/python) ==1246== ==1246== Conditional jump or move depends on uninitialised value(s) ==1246==at 0x4858AEC: wcslen (vg_replace_strmem.c:1856) ==1246==by 0x4A51CEC: _PyMem_RawWcsdup (obmalloc.c:569) ==1246==by 0x4D0D688: copy_wstrlist (main.c:1237) ==1246==by 0x4D171E0: pymain_init_core_argv (main.c:1263) ==1246==by 0x4D171E0: pymain_read_conf_impl (main.c:1955) ==1246==by 0x4D171E0: pymain_read_conf (main.c:2028) ==1246==by 0x4D171E0: pymain_cmdline_impl (main.c:2642) ==1246==by 0x4D171E0: pymain_cmdline (main.c:2707) ==1246==by 0x4D171E0: pymain_init (main.c:2748) ==1246==by 0x4D18BA0: pymain_main (main.c:2782) ==1246==by 0x4D1AE04: _Py_UnixMain (main.c:2822) ==1246==by 0x400D88: main (in /tmp/mnt/work/Python-3.7.2/python) ==1246== ==1246== Conditional jump or move depends on uninitialised value(s) ==1246==at 0x4858AEC: wcslen (vg_replace_strmem.c:1856) ==1246==by 0x4A51CEC: _PyMem_RawWcsdup (obmalloc.c:569) ==1246==by 0x4D0D688: copy_wstrlist (main.c:1237) ==1246==by 0x4D17B78: pymain_cmdline_impl (main.c:2663) ==1246==by 0x4D17B78: pymain_cmdline (main.c:2707) ==1246==by 0x4D17B78: pymain_init (main.c:2748) ==1246==by 0x4D18BA0: pymain_main (main.c:2782) ==1246==by 0x4D1AE04: _Py_UnixMain (main.c:2822) ==1246==by 0x400D88: main (in /tmp/mnt/work/Python-3.7.2/python) ==1246== ==1246== Conditional jump or move depends on uninitialised value(s) ==1246==at 0x4858AEC: wcslen (vg_replace_strmem.c:1856) ==1246==by 0x4A51CEC: _PyMem_RawWcsdup (obmalloc.c:569) ==1246==by 0x4D11C3C: _PyCoreConfig_Copy (main.c:2415) ==1246==by 0x4C9D630: _Py_InitializeCore (pylifecycle.c:847) ==1246==by 0x4D150D4: pymain_init (main.c:2760) ==1246==by 0x4D18BA0: pymain_main (main.c:2782) ==1246==by 0x4D1AE04: _Py_UnixMain (main.c:2822) ==1246==by 0x400D88: main (in /tmp/mnt/work/Python-3.7.2/python) ==1246== ==1246== Conditional jump or