Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #80199

Re: Python extension using a C library with one 'hello' function

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail
From Veek M <vek.m1234@gmail.com>
Newsgroups comp.lang.python
Subject Re: Python extension using a C library with one 'hello' function
Followup-To comp.lang.python
Date Tue, 04 Nov 2014 21:45:09 +0630
Organization Home
Lines 21
Message-ID <m3au1u$u36$1@dont-email.me> (permalink)
References <m3ab5o$kuo$1@dont-email.me> <mailman.15452.1415115002.18130.python-list@python.org>
Mime-Version 1.0
Content-Type text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding 7Bit
Injection-Date Tue, 4 Nov 2014 16:14:55 +0000 (UTC)
Injection-Info mx02.eternal-september.org; posting-host="f68a2336b1bb3a5b9be9c6035d2d5633"; logging-data="30822"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+EBlxQBqtGr0/ncsSFDUWg"
User-Agent KNode/4.4.11
Cancel-Lock sha1:nA4pFIzc9sDYnx92Z4ClVz63k/M=
Xref csiph.com comp.lang.python:80199

Followups directed to: comp.lang.python

Show key headers only | View raw


Jason Swails wrote:

> I've submitted a PR to your github repo showing you the changes
> necessary to get your module working on my computer.

Segfaults :p which is an improvement :)

open("./_hello.cpython-32mu.so", O_RDONLY) = 5
read(5, 
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300\7\0\0\0\0\0\0"..., 832) 
= 832
fstat(5, {st_mode=S_IFREG|0755, st_size=19217, ...}) = 0
getcwd("/root/github/junk/hello", 128)  = 24
mmap(NULL, 2101544, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 5, 0) = 
0x7f65daea5000
mprotect(0x7f65daea6000, 2093056, PROT_NONE) = 0
mmap(0x7f65db0a5000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_DENYWRITE, 5, 0) = 0x7f65db0a5000
close(5)                                = 0
mprotect(0x7f65db0a5000, 4096, PROT_READ) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---

Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Python extension using a C library with one 'hello' function Veek M <vek.m1234@gmail.com> - 2014-11-04 16:22 +0630
  Re: Python extension using a C library with one 'hello' function Chris Angelico <rosuav@gmail.com> - 2014-11-05 01:57 +1100
  Re: Python extension using a C library with one 'hello' function Søren <sd@syntonetic.com> - 2014-11-04 13:11 +0100
    Re: Python extension using a C library with one 'hello' function Veek M <vek.m1234@gmail.com> - 2014-11-04 21:46 +0630
  Re: Python extension using a C library with one 'hello' function Jason Swails <jason.swails@gmail.com> - 2014-11-04 10:30 -0500
    Re: Python extension using a C library with one 'hello' function Veek M <vek.m1234@gmail.com> - 2014-11-04 21:45 +0630
      Re: Python extension using a C library with one 'hello' function Jason Swails <jason.swails@gmail.com> - 2014-11-04 11:28 -0500
        Re: Python extension using a C library with one 'hello' function Veek M <vek.m1234@gmail.com> - 2014-11-04 22:13 +0630
        Re: Python extension using a C library with one 'hello' function Veek M <vek.m1234@gmail.com> - 2014-11-04 22:39 +0630
          Re: Python extension using a C library with one 'hello' function Jason Swails <jason.swails@gmail.com> - 2014-11-04 12:28 -0500
    Re: Python extension using a C library with one 'hello' function Veek M <vek.m1234@gmail.com> - 2014-11-04 23:03 +0630
      Re: Python extension using a C library with one 'hello' function Jason Swails <jason.swails@gmail.com> - 2014-11-04 13:28 -0500

csiph-web