Skip to content
This repository has been archived by the owner on Jun 14, 2018. It is now read-only.

Segmentation fault on OSX #13

Open
joel-simon opened this issue Feb 5, 2018 · 4 comments
Open

Segmentation fault on OSX #13

joel-simon opened this issue Feb 5, 2018 · 4 comments
Labels

Comments

@joel-simon
Copy link

Segfault on black_border_problem.jpg, using example code verbatim.

OSX 10.12.6

Anaconda python 3.5.4, also tried python 3.4 not anaconda.

Installed with sudo python ./setup.py install

Thank you! I look forward to trying this library.

@jflesch
Copy link
Member

jflesch commented Feb 5, 2018

Sorry but I don't have any computer with MacOSX.
To fix this bug, I will need at least a stacktrace. Can you get one with Gdb ?

@jflesch jflesch added the bug label Feb 5, 2018
@joel-simon
Copy link
Author

joel-simon commented Feb 5, 2018

Hello! Thank you for your response.

Reading symbols from /usr/local/bin/python3.4_x86...(no debugging symbols found)...done.
(gdb) run utils/foo.py
Starting program: /usr/local/bin/python3.4_x86 utils/foo.py
[New Thread 0x1403 of process 66474]
warning: unhandled dyld version (15)
[New Thread 0x1503 of process 66474]

Thread 3 received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Thread 0x1503 of process 66474]
0x00007fff5c001000 in ?? ()


(gdb) backtrace full
#0  0x00007fff5c001000 in ?? ()
No symbol table info available.
#1  0x0000000100000000 in ?? ()
No symbol table info available.
#2  0x0000000000000002 in ?? ()
No symbol table info available.
#3  0x00007fff5bfff688 in ?? ()
No symbol table info available.
#4  0x00007fff5bfff6e5 in ?? ()
No symbol table info available.
#5  0x0000000000000000 in ?? ()
No symbol table info available.

I am not experienced with gdb but I hope the above is helpful, let me know if there is anything else I I can send.

@jflesch
Copy link
Member

jflesch commented Feb 6, 2018

Hm, debug symbols are missing. I'm going to need you to do some patching:

patch -p1 << EOF
diff --git a/setup.py b/setup.py
index d5767c7..caa31f5 100755
--- a/setup.py
+++ b/setup.py
@@ -15,6 +15,8 @@ else:
     else:
         extra_compile_args = []
 
+extra_compile_args += ['-g', '-ggdb', '-O0']
+
 setup(
     name="pypillowfight",
     version="0.2.2",
EOF
python ./setup.py install

@joel-simon
Copy link
Author

Hi, I tried recompiling with that and still did not have symbols. I will look into why

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants