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


Groups > comp.lang.python > #33571 > unrolled thread

Stack_overflow error

Started byAung Thet Naing <aung.thetnaing@gmail.com>
First post2012-11-19 16:49 -0800
Last post2012-12-13 13:39 -0800
Articles 5 — 3 participants

Back to article view | Back to comp.lang.python


Contents

  Stack_overflow error Aung Thet Naing <aung.thetnaing@gmail.com> - 2012-11-19 16:49 -0800
    Re: Stack_overflow error Chris Angelico <rosuav@gmail.com> - 2012-11-20 12:15 +1100
    Re: Stack_overflow error Dieter Maurer <dieter@handshake.de> - 2012-11-20 19:40 +0100
      Re: Stack_overflow error Aung Thet Naing <aung.thetnaing@gmail.com> - 2012-12-13 13:39 -0800
      Re: Stack_overflow error Aung Thet Naing <aung.thetnaing@gmail.com> - 2012-12-13 13:39 -0800

#33571 — Stack_overflow error

FromAung Thet Naing <aung.thetnaing@gmail.com>
Date2012-11-19 16:49 -0800
SubjectStack_overflow error
Message-ID<1fd7672d-000b-4cbc-bd87-a9f37320c9e8@googlegroups.com>
I'm having Stack_overflow exception in _ctypes_callproc (callproc.c). The error actually come from the:

 cleanup:
    for (i = 0; i < argcount; ++i)
        Py_XDECREF(args[i].keep);

when args[i].keep->ob_refCnt == 1

Aung. 

[toc] | [next] | [standalone]


#33573

FromChris Angelico <rosuav@gmail.com>
Date2012-11-20 12:15 +1100
Message-ID<mailman.24.1353374158.29569.python-list@python.org>
In reply to#33571
On Tue, Nov 20, 2012 at 11:49 AM, Aung Thet Naing
<aung.thetnaing@gmail.com> wrote:
> I'm having Stack_overflow exception in _ctypes_callproc (callproc.c). The error actually come from the:
>
>  cleanup:
>     for (i = 0; i < argcount; ++i)
>         Py_XDECREF(args[i].keep);
>
> when args[i].keep->ob_refCnt == 1

Can you offer more details? I'm guessing you're using ctypes from a
Python script; can you share the script with us?

What Python version are you using? What procedure are you calling?

ChrisA

[toc] | [prev] | [next] | [standalone]


#33645

FromDieter Maurer <dieter@handshake.de>
Date2012-11-20 19:40 +0100
Message-ID<mailman.79.1353436828.29569.python-list@python.org>
In reply to#33571
Aung Thet Naing <aung.thetnaing@gmail.com> writes:

> I'm having Stack_overflow exception in _ctypes_callproc (callproc.c). The error actually come from the:
>
>  cleanup:
>     for (i = 0; i < argcount; ++i)
>         Py_XDECREF(args[i].keep);
>
> when args[i].keep->ob_refCnt == 1

Really a stack overflow or a general segmentation violation?
Under *nix, both are not easy to distinguish -- but maybe, you are
working with Windows?

[toc] | [prev] | [next] | [standalone]


#34819

FromAung Thet Naing <aung.thetnaing@gmail.com>
Date2012-12-13 13:39 -0800
Message-ID<c8f6c12a-4fa9-4d9a-b7ea-53d54cc1ceb5@googlegroups.com>
In reply to#33645
I'm sorry that I have been away from this issue for a while. 

Yes, I'm working on windows. I need to review the error again so that I could rephrase my issue clearly. 

Thanks. 

Aung. 
On Tuesday, November 20, 2012 10:40:42 AM UTC-8, Dieter Maurer wrote:
> Aung Thet Naing <aung.thetnaing@gmail.com> writes:
> 
> 
> 
> > I'm having Stack_overflow exception in _ctypes_callproc (callproc.c). The error actually come from the:
> 
> >
> 
> >  cleanup:
> 
> >     for (i = 0; i < argcount; ++i)
> 
> >         Py_XDECREF(args[i].keep);
> 
> >
> 
> > when args[i].keep->ob_refCnt == 1
> 
> 
> 
> Really a stack overflow or a general segmentation violation?
> 
> Under *nix, both are not easy to distinguish -- but maybe, you are
> 
> working with Windows?

[toc] | [prev] | [next] | [standalone]


#34820

FromAung Thet Naing <aung.thetnaing@gmail.com>
Date2012-12-13 13:39 -0800
Message-ID<mailman.861.1355434783.29569.python-list@python.org>
In reply to#33645
I'm sorry that I have been away from this issue for a while. 

Yes, I'm working on windows. I need to review the error again so that I could rephrase my issue clearly. 

Thanks. 

Aung. 
On Tuesday, November 20, 2012 10:40:42 AM UTC-8, Dieter Maurer wrote:
> Aung Thet Naing <aung.thetnaing@gmail.com> writes:
> 
> 
> 
> > I'm having Stack_overflow exception in _ctypes_callproc (callproc.c). The error actually come from the:
> 
> >
> 
> >  cleanup:
> 
> >     for (i = 0; i < argcount; ++i)
> 
> >         Py_XDECREF(args[i].keep);
> 
> >
> 
> > when args[i].keep->ob_refCnt == 1
> 
> 
> 
> Really a stack overflow or a general segmentation violation?
> 
> Under *nix, both are not easy to distinguish -- but maybe, you are
> 
> working with Windows?

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web