[Bug python/21366] New: Python script causes GDB core dump

dwjbosman at yahoo dot com sourceware-bugzilla@sourceware.org
Sun Apr 9 19:53:00 GMT 2017


            Bug ID: 21366
           Summary: Python script causes GDB core dump
           Product: gdb
           Version: HEAD
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: python
          Assignee: unassigned at sourceware dot org
          Reporter: dwjbosman at yahoo dot com
  Target Milestone: ---

When I run the following script in GDB:

import sys
import os
import zmq
c = zmq.Context.instance()
s = c.socket(zmq.ROUTER)

arm-none-eabi-gdb --command test.py

GDB crashes with a core dump:

I cloned the Git repository:
commit 5e8bf44f4c94d430ac21257a1a953cfccd2ce79b crashes

I have done a binary search over the git repository: 

commit 5809899dad253e2fefcb6f7ae57a6f43cfa4e3c5 and onwards crashes
commit 3e25a500a1ba05587389737e7c617e5ae6dd2bcf and before work

gdb was configured as follows:
This GDB was configured as follows:
   configure --host=x86_64-pc-linux-gnu --target=arm-none-eabi
             --with-gdb-datadir=/usr/special/tmp/share/gdb (relocatable)
             --with-jit-reader-dir=/usr/special/tmp/lib/gdb (relocatable)
             --with-separate-debug-dir=/usr/special/tmp/lib/debug (relocatable)

My build command:

cd binutils-gdb && export LDFLAGS=-L/opt/conda/envs/gdb_ipykernel/lib/ &&
./configure --target=arm-none-eabi --prefix=/usr/special/tmp
python && make && make tooldir=/usr/special/tmp install

python version is python 3.5.2

python -c 'import zmq; print(zmq.zmq_version(), zmq.__version__)'
4.1.6 16.0.2

You are receiving this mail because:
You are on the CC list for the bug.

More information about the Gdb-prs mailing list