This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


https://sourceware.org/bugzilla/show_bug.cgi?id=21366

            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:

<pre>
import sys
import os
import zmq
c = zmq.Context.instance()
s = c.socket(zmq.ROUTER)
print(s)
s.bind_to_random_port("tcp://127.0.0.1")
print("works")
sys.exit(0)
</pre>

with
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-auto-load-dir=$debugdir:$datadir/auto-load
             --with-auto-load-safe-path=$debugdir:$datadir/auto-load
             --with-expat
             --with-gdb-datadir=/usr/special/tmp/share/gdb (relocatable)
             --with-jit-reader-dir=/usr/special/tmp/lib/gdb (relocatable)
             --without-libunwind-ia64
             --with-lzma
             --with-python=/opt/conda/envs/gdb_ipykernel
             --without-guile
             --with-separate-debug-dir=/usr/special/tmp/lib/debug (relocatable)
             --without-babeltrace

My build command:

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

python version is python 3.5.2

ZMQ:
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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]