Segmentation error with Python / Chrome / Java (linux mint)

When I run python (without any arguments) on the command line, a segmentation error occurs.

mistake:

 $ python [1] 11094 segmentation fault python2.7 

And linux kernel traps:

 $ dmesg traps: python2[10923] general protection ip:4db605 sp:7fffe4b29e70 error:0 in python2.7[400000+2ba000 $gdb python Program received signal SIGSEGV, Segmentation fault. 0x00000000004db605 in PyDict_SetItemString () (gdb) backtrace #0 0x00000000004db605 in PyDict_SetItemString () #1 0x000000000044719b in _PyExc_Init () #2 0x000000000046928e in Py_InitializeEx () #3 0x0000000000469db3 in Py_Main () #4 0x00007ffff7816de5 in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6 #5 0x00000000005735fe in _start () 

Selected Part objdump -d /usr/bin/python2.7 | less objdump -d /usr/bin/python2.7 | less

 4db5f7: 0f 84 a6 02 00 00 je 4db8a3 <PyDict_SetItemString+0x323> 4db5fd: 4d 8b 48 08 mov 0x8(%r8),%r9 4db601: 41 83 00 01 addl $0x1,(%r8) 4db605: 4d 8b 11 mov (%r9),%r10 4db608: 4d 89 cc mov %r9,%r12 4db60b: 4d 85 d2 test %r10,%r10 4db60e: 4d 89 50 08 mov %r10,0x8(%r8) 

My machine specification:

  • Linux Mint 16 (64bit)
  • Ram: 8 GB (free 6 GB)
  • I have Mint installed on an SSD (64 GB) last night , 1 TB HDD
  • CPU: Core I5 ​​4670k
  • Linux kernel: Linux mint 3.11.0-12-generi # 19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 2013 x86_64 x86_64 x86_64 GNU / Linux

I tried installing the new kubuntu 14.04 on my computer (and as another solution, upgrade the distribution to mint 17), but unfortunately the distribution crashed.

Can someone tell me why the error occurred? and how can i fix it?

I am wondering if anyone helped solve the problem. (I know what segsegv is, but I don’t know why this error occurs on a new Linux installation)

There is the same issue with Google-Chrome, Java, and other programs.

thanks

+7
python segmentation-fault linux crash linuxmint
source share
1 answer

This is not an explanation of why your python is currently crashing - if you don't have some weird configuration on your system that you didn't mention about, this is apparently a python bug, but here is a possible fix:

I can only guess that something was corrupted when you installed python. The ideal solution would be to remove and reinstall, but this is a pain, because there are a large number of system critical programs that have python as a dependency. Therefore, you can follow the instructions here to find everything that you have removed and reinstall. Here is my suggestion:

  • sudo apt-get purge python2.7

    You will be given a long list of packages that you are about to remove, and everything is in order. Let them be deleted.

  • sudo apt-get install python2.7

    Reinstall python. Now reinstall the old remote packages:

  • grep Remove /var/log/apt/history.log | tail -n1 | cut -d: -f2- | sed "s/(.*)//g" | sed "s/:your_processor//g"

    This is a list of your most recent removed packages, which you can now provide apt-get to reinstall. :your_processor is the architecture specified by apt, for me it is :amd64 .

Remember that this is a rather dangerous operation.

Also, seeing your comment - it seems that you have poor RAM. This is a hardware problem. Reinstallation may fix this, but the problem reappears - replace the offending stick. If this is a new car, it is likely to be covered by your warranty. Also check for dust, etc. In the slot, if you yourself built a car. Here's a superuser post explaining why a memtest failure is a big deal .

+1
source share

All Articles