Re: Segmentation fault (core dumped) while using Cplex Python API

2014-06-01 Thread Akira Li
varun...@gmail.com writes: > Hello Everyone, > > I am trying to solve a mixed-integer problem using Cplex Python API > and I get this error Segmentation fault (core dumped). i am not able > to figure out the reason for this. > Traceback > > srva@hades:~$ python RW10.py --output test --logPath log

Re: Segmentation fault (core dumped) while using Cplex Python API

2014-06-01 Thread Gary Herron
On 06/01/2014 12:28 PM, varun...@gmail.com wrote: Hello Everyone, I am trying to solve a mixed-integer problem using Cplex Python API and I get this error Segmentation fault (core dumped). i am not able to figure out the reason for this. Traceback srva@hades:~$ python RW10.py --output test --

Re: segmentation fault, executable python file

2014-04-29 Thread fanny
I try gdb the executable file in another machine and get this: Error -3 from inflate: incorrect header check Error decompresing struct if I do gdb in my machine (where I generate the executable file) I get nothing, and the app work correctly. I try to search about that, but i don't get it. Coul

Re: segmentation fault, executable python file

2014-04-04 Thread Jurko Gospodnetić
Hi. On 4.4.2014. 11:17, Chris Angelico wrote: But from here you need someone more familiar with cxfreeze. All I can advise is to compare installed packages on each; maybe you have multiple versions of some library or something. From what little I know of it, it freezes as little as possibl

Re: segmentation fault, executable python file

2014-04-04 Thread Chris Angelico
On Fri, Apr 4, 2014 at 8:06 PM, wrote: > the first one is ubuntu 12.04 64-bit (where i generate the executable file), > and the second one is the same. Any idea? I confused for days until today. > > Thanks for your replay That's a good start. Next thing to try is running your executable under g

Re: segmentation fault, executable python file

2014-04-04 Thread fanny
the first one is ubuntu 12.04 64-bit (where i generate the executable file), and the second one is the same. Any idea? I confused for days until today. Thanks for your replay On Friday, April 4, 2014 3:57:33 PM UTC+7, Chris Angelico wrote: > On Fri, Apr 4, 2014 at 7:36 PM, wrote: > > > Hello,

Re: segmentation fault, executable python file

2014-04-04 Thread Chris Angelico
On Fri, Apr 4, 2014 at 7:36 PM, wrote: > Hello, > I generated an executable python file using cxfreeze. > I run that file, it runs fine. > But when I run it on another PC, it don't run. I try to it via terminal, and > it says "Segmentation fault(core dump)". I try again run it with sudo, it > s

Re: Segmentation Fault on exit

2011-08-10 Thread ron
On Aug 6, 6:35 am, Vipul Raheja wrote: > Hi, > > I have wrapped a library from C++ to Python using SWIG. But when I > import it in Python, I am able to work fine with it, but it gives a > segmentation fault while exiting. Following is the log: > > vipul@vipul-laptop:~/ossim-svn/src/pyossim/swig$ p

Re: Segmentation Fault on exit

2011-08-08 Thread Ulrich Eckhardt
Vipul Raheja wrote: > I have wrapped a library from C++ to Python using SWIG. But when I > import it in Python, I am able to work fine with it, but it gives a > segmentation fault while exiting. 1. Use a debugger Run python with "gdb python", import the module and exit. The debugger should then s

Re: Segmentation Fault on exit

2011-08-06 Thread Chris Angelico
On Sat, Aug 6, 2011 at 2:34 PM, Vipul Raheja wrote: > Here's the link: www.geofemengineering.it/data/master_wrap.cxx > Thanks and Regards, > Vipul Raheja Ugh. Unfortunately that file is somewhat lengthy... I hate to say "tl;dr" to people, but... is there any way to simplify that down? Perhaps th

Re: Segmentation Fault on exit

2011-08-06 Thread Dan Stromberg
I have little reason to doubt that it's related to referencing counting, but: http://stromberg.dnsalias.org/~dstromberg/checking-early.html On Sat, Aug 6, 2011 at 3:35 AM, Vipul Raheja wrote: > Hi, > > I have wrapped a library from C++ to Python using SWIG. But when I > import it in Python, I a

Re: Segmentation Fault on exit

2011-08-06 Thread Vipul Raheja
Hi, I did look out for the problem's solution but have been struggling with it ever since. I also asked around on IRC too but haven't quite progressed towards the solution. Here is the link to the swig-generated .cxx file which we need to look into for the answers. Could you please have a look at

Re: Segmentation Fault on exit

2011-08-06 Thread Chris Angelico
On Sat, Aug 6, 2011 at 12:16 PM, Vipul Raheja wrote: > Hi Chris, > Thanks for the reply. > However, the error occurs even if I don't do anything, that is, even if I > simply import the library and exit() after that. > I created a file a.py whose contents were the following: > import pyossim > exit

Re: Segmentation Fault on exit

2011-08-06 Thread Vipul Raheja
Hi Chris, Thanks for the reply. However, the error occurs even if I don't do anything, that is, even if I simply import the library and exit() after that. I created a file a.py whose contents were the following: import pyossim exit() Upon execution, the log was as follows: vipul@vipul-laptop:

Re: Segmentation Fault on exit

2011-08-06 Thread Chris Angelico
On Sat, Aug 6, 2011 at 11:35 AM, Vipul Raheja wrote: > Hi, > > I have wrapped a library from C++ to Python using SWIG. But when I > import it in Python, I am able to work fine with it, but it gives a > segmentation fault while exiting. Following is the log: The most likely cause of this is that y

Re: segmentation fault

2009-10-15 Thread David Cournapeau
On Thu, Oct 15, 2009 at 9:08 PM, ankita dutta wrote: > hi, > well, even i was also using matplotlib for some time, and it was working > fine. > but this time i use it for data which is quite large,( my input file has > single column of float values , > and length ( no. of rows) of this column is 1

Re: segmentation fault

2009-10-15 Thread ankita dutta
hi, well, even i was also using matplotlib for some time, and it was working fine. but this time i use it for data which is quite large,( my input file has single column of float values , and length ( no. of rows) of this column is 10,000,000. ) may be because of size it might have crashed. any wa

Re: segmentation fault

2009-10-15 Thread David Cournapeau
On Thu, Oct 15, 2009 at 7:46 PM, ankita dutta wrote: > thanx david, > > yes ,i am using matplotlib for plotting graph. > i am using this lines in my programme: > > "import matplotlib.pyplot as plt" > > now, if the problem with matplotlib ( and i will send them mail) , The problem is how matplotli

Re: segmentation fault

2009-10-15 Thread ankita dutta
hi chris, i am using matplotlib for plotting graph, as following: "import matplotlib.pyplot as plt" can you kindly tell me how to fix this problem(crashing) ? On Thu, Oct 15, 2009 at 3:36 PM, Chris Rebert wrote: > On Thu, Oct 15, 2009 at 2:14 AM, ankita dutta > wrote: > > hi, > > i am relat

Re: segmentation fault

2009-10-15 Thread ankita dutta
thanx david, yes ,i am using matplotlib for plotting graph. i am using this lines in my programme: "import matplotlib.pyplot as plt" now, if the problem with matplotlib ( and i will send them mail) , but can you kindly tell alternatively , how can i plot graph for my programme. ankita On Thu,

Re: segmentation fault

2009-10-15 Thread Krishnakant
On Thu, 2009-10-15 at 14:44 +0530, ankita dutta wrote: > hi, > i am relatively new to python programming, > i am facing the following problem: > > i am tring to simply obtain data from a file ( "B.txt" , data in > this file are in single column and floats) > and plot a graph between those value

Re: segmentation fault

2009-10-15 Thread Chris Rebert
On Thu, Oct 15, 2009 at 2:14 AM, ankita dutta wrote: > hi, > i am relatively new to python programming, > i am facing the following problem: > > i am tring to simply  obtain data from a file ( "B.txt" ,  data in this file > are in single column and floats) > and plot a graph between those values a

Re: segmentation fault

2009-10-15 Thread David Cournapeau
On Thu, Oct 15, 2009 at 6:14 PM, ankita dutta wrote: >   is dumped > segmentation fault > > It looks like you are using matplotlib, and matplotlib is the one likely to segfault. You could check that it is indeed the case by just commenting the part which does the plot - but I would be very surpr

Re: segmentation fault while using ctypes

2009-04-15 Thread sanket
On Apr 14, 9:00 pm, bieff...@gmail.com wrote: > On Apr 15, 12:39 am, sanket wrote: > > > > > Hello All, > > > I am dealing with this weird bug. > > I have a function in C and I have written python bindings for it using > > ctypes. > > > I can call this function for couple of times and then suddenl

Re: segmentation fault while using ctypes

2009-04-15 Thread Diez B. Roggisch
> > Thanks Diez, > > I used the gdb but it just crashed and kicked my out of gdb prompt. > how can I get a stack trace? That's odd, has never happened for me before. Can you show us what you do exactly, and what gdb & co say? Diez -- http://mail.python.org/mailman/listinfo/python-list

Re: segmentation fault while using ctypes

2009-04-14 Thread bieffe62
On Apr 15, 12:39 am, sanket wrote: > Hello All, > > I am dealing with this weird bug. > I have a function in C and I have written python bindings for it using > ctypes. > > I can call this function for couple of times and then suddenly it > gives me seg fault. > But I can call same function from a

Re: segmentation fault while using ctypes

2009-04-14 Thread Aaron Brady
On Apr 14, 6:45 pm, Aaron Brady wrote: > On Apr 14, 6:04 pm, sanket wrote: > > > > > On Apr 14, 4:00 pm, MRAB wrote: > > > > sanket wrote: > > > > Hello All, > > > > > I am dealing with this weird bug. > > > > I have a function in C and I have written python bindings for it using > > > > ctypes.

Re: segmentation fault while using ctypes

2009-04-14 Thread MRAB
Aaron Brady wrote: On Apr 14, 6:04 pm, sanket wrote: On Apr 14, 4:00 pm, MRAB wrote: sanket wrote: Hello All, I am dealing with this weird bug. I have a function in C and I have written python bindings for it using ctypes. I can call this function for couple of times and then suddenly it

Re: segmentation fault while using ctypes

2009-04-14 Thread Aaron Brady
On Apr 14, 6:04 pm, sanket wrote: > On Apr 14, 4:00 pm, MRAB wrote: > > > > > sanket wrote: > > > Hello All, > > > > I am dealing with this weird bug. > > > I have a function in C and I have written python bindings for it using > > > ctypes. > > > > I can call this function for couple of times an

Re: segmentation fault while using ctypes

2009-04-14 Thread MRAB
sanket wrote: On Apr 14, 4:00 pm, MRAB wrote: sanket wrote: Hello All, I am dealing with this weird bug. I have a function in C and I have written python bindings for it using ctypes. I can call this function for couple of times and then suddenly it gives me seg fault. But I can call same func

Re: segmentation fault while using ctypes

2009-04-14 Thread sanket
On Apr 14, 3:56 pm, "Diez B. Roggisch" wrote: > sanket schrieb: > > > Hello All, > > > I am dealing with this weird bug. > > I have a function in C and I have written python bindings for it using > > ctypes. > > > I can call this function for couple of times and then suddenly it > > gives me seg f

Re: segmentation fault while using ctypes

2009-04-14 Thread sanket
On Apr 14, 4:00 pm, MRAB wrote: > sanket wrote: > > Hello All, > > > I am dealing with this weird bug. > > I have a function in C and I have written python bindings for it using > > ctypes. > > > I can call this function for couple of times and then suddenly it > > gives me seg fault. > > But I ca

Re: segmentation fault while using ctypes

2009-04-14 Thread MRAB
sanket wrote: Hello All, I am dealing with this weird bug. I have a function in C and I have written python bindings for it using ctypes. I can call this function for couple of times and then suddenly it gives me seg fault. But I can call same function from a C code for any number of times. I

Re: segmentation fault while using ctypes

2009-04-14 Thread Diez B. Roggisch
sanket schrieb: Hello All, I am dealing with this weird bug. I have a function in C and I have written python bindings for it using ctypes. I can call this function for couple of times and then suddenly it gives me seg fault. But I can call same function from a C code for any number of times.

Re: Segmentation Fault on CDLL reloading

2008-08-30 Thread Diez B. Roggisch
Marcus.CM schrieb: Hi, I use the following ctype to load a .so library in Linux. vr = ctypes.CDLL(sstr) And the following to release it so that i can reload the library without quiting the python script. _ctypes.dlclose(vr._handle) These calls are guarded by a writer lock and access to

Re: Segmentation fault on updating a BYTEA field [psycopg2]

2008-05-23 Thread George Sakkis
On May 21, 6:32 pm, George Sakkis <[EMAIL PROTECTED]> wrote: > I have a simple DB table that stores md5 signature pairs: > >Table "public.duplicate" > Column | Type | Modifiers > --+---+--- > sig | bytea | not null > orig_sig | bytea | not null > Indexes: > "

Re: segmentation fault when executing PyImport_ImportModule("sys")

2008-04-12 Thread Dietrich Bollmann
Hi, I found the reason for the segmentation fault and hope that my solution might be helpful for somebody else some day :) On Tue, 2008-04-08 at 19:31 +0900, Dietrich Bollmann wrote: Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 0xb046ab90 (LWP 9854)] > threadstate

Re: Segmentation fault..

2007-10-06 Thread Bjoern Schliessmann
Abandoned wrote: > I run a my script and 3-4 minutes later give me an error > "segmentation fault". > What is the reason of this error ? The reason is that the process tries to write to a memory address it outside of its allocated segments. Regards, Björn -- BOFH excuse #20: divide-by-zero e

Re: Segmentation fault..

2007-10-06 Thread Jorge Godoy
Bruno Desthuilliers wrote: > Jorge Godoy a écrit : >> Without seeing any code, it is hard to say anything. But the answer to >> the ultimate question is "42". > > Indeed. Err, what was the question, exactly ?-) As soon as calculations are finished, you'll know. :-) -- http://mail.python.org/ma

Re: Segmentation fault..

2007-10-06 Thread Bruno Desthuilliers
Jorge Godoy a écrit : > Abandoned wrote: > >> Hi.. >> I run a my script and 3-4 minutes later give me an error "segmentation >> fault". >> What is the reason of this error ? >> >> I use in my script: >> Threading >> Psycopg2 >> open & write to txt >> urlopen >> >> My platform is ubuntu linux. >> >

Re: Segmentation fault..

2007-10-06 Thread Jorge Godoy
Abandoned wrote: > Hi.. > I run a my script and 3-4 minutes later give me an error "segmentation > fault". > What is the reason of this error ? > > I use in my script: > Threading > Psycopg2 > open & write to txt > urlopen > > My platform is ubuntu linux. > > I'm sorry my bad english. > King re

Re: Segmentation Fault

2006-08-31 Thread John Savage
"pycraze" <[EMAIL PROTECTED]> writes: >I would like to ask a question. How do one handle the exception due to >Segmentation fault due to Python ? Our bit operations and arithmetic >manipulations are written in C and to some of our testcases we >experiance Segmentation fault from the python librari

Re: Segmentation Fault

2006-08-28 Thread Simon Forman
[EMAIL PROTECTED] wrote: > "Simon Forman" <[EMAIL PROTECTED]> writes: > > > pycraze wrote: > >> I would like to ask a question. How do one handle the exception due to > >> Segmentation fault due to Python ? Our bit operations and arithmetic > >> manipulations are written in C and to some of our te

Re: Segmentation Fault

2006-08-28 Thread thomas . samson
"Simon Forman" <[EMAIL PROTECTED]> writes: > pycraze wrote: >> I would like to ask a question. How do one handle the exception due to >> Segmentation fault due to Python ? Our bit operations and arithmetic >> manipulations are written in C and to some of our testcases we >> experiance Segmentatio

Re: Segmentation Fault

2006-08-28 Thread Duncan Booth
pycraze wrote: > I would like to ask a question. How do one handle the exception due to > Segmentation fault due to Python ? Our bit operations and arithmetic > manipulations are written in C and to some of our testcases we > experiance Segmentation fault from the python libraries. > >From what

Re: Segmentation Fault

2006-08-28 Thread Steve Holden
pycraze wrote: > I would like to ask a question. How do one handle the exception due to > Segmentation fault due to Python ? Our bit operations and arithmetic > manipulations are written in C and to some of our testcases we > experiance Segmentation fault from the python libraries. > > If i know

Re: Segmentation Fault

2006-08-28 Thread John Machin
pycraze wrote: > I would like to ask a question. How do one handle the exception due to > Segmentation fault due to Python ? This is confusing. A seg fault kills the process immediately. No exception (in the Python sense of that word) is raised. > Our bit operations and arithmetic > manipulations

Re: Segmentation Fault

2006-08-27 Thread Simon Forman
pycraze wrote: > I would like to ask a question. How do one handle the exception due to > Segmentation fault due to Python ? Our bit operations and arithmetic > manipulations are written in C and to some of our testcases we > experiance Segmentation fault from the python libraries. > > If i know h

Re: Segmentation fault only on Iinux

2006-06-21 Thread Kiran
Unfortunately (i guess), I am not doing any XML. However, I am taking the previous suggestion of putting print lines in every other line of my code and then seeing where it crashes. Hopefully, that will solve the problem. thanks for the suggestions everybody -- Kiran Frank Millman wrote: > Kira

Re: Segmentation fault only on Iinux

2006-06-20 Thread Frank Millman
Kiran wrote: > Hello All, > In my program, I have a main thread which is the GUI (wxPython) and > then a thread which goes and reads data from a socket. The reason this > is in a different thread is because the data might take some time to > come back, and I want to have the GUI to be responsiv

Re: Segmentation fault only on Iinux

2006-06-20 Thread faulkner
if you don't know exactly which line of code causes the segfault, use print statements to determine that. then try to either redesign/refactor so that line isn't necessary, or protect its operation somehow. if you do know, tell us what it is and we might not need to see all your code. Kiran wrote:

Re: segmentation fault in scipy?

2006-05-11 Thread py_genetic
>Now I'm even more confused. What kind of array is "error" here? First you tell >me it's a (25000, 80) array and now you are telling me it is a (25000,) array. >Once you've defined what "error" is, then please tell me what the quantity is >that you want to calculate. I think I told you several diff

Re: segmentation fault in scipy?

2006-05-11 Thread py_genetic
True! it is rediculous/insane as I mentioned and noted and agreed with you (in all your responses) and was my problem, however, not wrong (same result), as I was just simply noting (not to be right), although, yes, insane. Thanks again. -- http://mail.python.org/mailman/listinfo/python-list

Re: segmentation fault in scipy?

2006-05-11 Thread Robert Kern
py_genetic wrote: >>No! matrix objects use matrix multiplication for *. You seem to need >>elementwise >>multiplication. > > No! when you mult a vector with itself transposed, the diagonal of the > resulting matrix is the squares of each error (albeit you do a lot of > extra calc), then sum the s

Re: segmentation fault in scipy?

2006-05-11 Thread Robert Kern
py_genetic wrote: >>No! matrix objects use matrix multiplication for *. You seem to need >>elementwise >>multiplication. > > No! when you mult a vector with itself transposed, the diagonal of the > resulting matrix is the squares of each error (albeit you do a lot of > extra calc), then sum the s

Re: segmentation fault in scipy?

2006-05-11 Thread py_genetic
>No! matrix objects use matrix multiplication for *. You seem to need >elementwise >multiplication. No! when you mult a vector with itself transposed, the diagonal of the resulting matrix is the squares of each error (albeit you do a lot of extra calc), then sum the squares, ie trace(). Its a ni

Re: segmentation fault in scipy?

2006-05-11 Thread Robert Kern
[EMAIL PROTECTED] wrote: > This is great advise and much appreciated. It was the answer to my > problem, thank you. However, isn't this faster... > scipy.sum(scipy.array(scipy.matrix(error)*scipy.matrix(error)), axis = > None) > as we you explained in my other posting? No! matrix objects use ma

Re: segmentation fault in scipy?

2006-05-11 Thread conor . robinson
>I'm afraid you're using terminology (and abbreviations!) that I can't follow. >Let me try to restate what's going on and you can correct me as I screw up. You >have a neural net that has 80 output units. You have 25000 observations that >you >are using to train the neural net. Each observation ve

Re: segmentation fault in scipy?

2006-05-11 Thread conor . robinson
> If I run it from the shell (unix) I get: Segmentation fault and see a > core dump in my processes. If I run it in the python shell I get as > above: > File "D:\Python24\Lib\site-packages\numpy\core\defmatrix.py", line > 149, in That's a Window's path... Does Windows even make full use o

Re: segmentation fault in scipy?

2006-05-10 Thread Robert Kern
[EMAIL PROTECTED] wrote: > Im using rprop (not dependent on error function in this case ie. > standard rprop vs. irprop or arprop) for an MLP tanh, sigmod nnet as > part of a hybrid model. I guess I was using a little Matlab thought > when I wrote the SSE funtion. My batches are about 25,000 x 80

Re: segmentation fault in scipy?

2006-05-10 Thread conor . robinson
Im using rprop (not dependent on error function in this case ie. standard rprop vs. irprop or arprop) for an MLP tanh, sigmod nnet as part of a hybrid model. I guess I was using a little Matlab thought when I wrote the SSE funtion. My batches are about 25,000 x 80 so my absolute error (diff betwee

Re: segmentation fault in scipy?

2006-05-10 Thread Robert Kern
[EMAIL PROTECTED] wrote: > Good point. Finding the SSE using an absolute error matrix of (25000 x > 1) is insane. I pulled out the error function (for now) and I'm back > in business. Thanks for all the great advise. Could you go back for a second and describe your problem a little bit more. It

Re: segmentation fault in scipy?

2006-05-10 Thread conor . robinson
Good point. Finding the SSE using an absolute error matrix of (25000 x 1) is insane. I pulled out the error function (for now) and I'm back in business. Thanks for all the great advise. -- http://mail.python.org/mailman/listinfo/python-list

Re: segmentation fault in scipy?

2006-05-10 Thread Robert Kern
[EMAIL PROTECTED] wrote: > I'm running operations large arrays of floats, approx 25,000 x 80. > Python (scipy) does not seem to come close to using 4GB of wired mem, > but segments at around a gig. Everything works fine on smaller batches > of data around 10,000 x 80 and uses a max of ~600mb of mem

Re: segmentation fault in scipy?

2006-05-10 Thread conor . robinson
If I run it from the shell (unix) I get: Segmentation fault and see a core dump in my processes. If I run it in the python shell I get as above: File "D:\Python24\Lib\site-packages\numpy\core\defmatrix.py", line 149, in __mul__ return N.dot(self, other) MemoryError I your experience as one of

Re: segmentation fault in scipy?

2006-05-10 Thread Travis E. Oliphant
[EMAIL PROTECTED] wrote: > I'm running operations large arrays of floats, approx 25,000 x 80. > Python (scipy) does not seem to come close to using 4GB of wired mem, > but segments at around a gig. Everything works fine on smaller batches > of data around 10,000 x 80 and uses a max of ~600mb of mem