Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IcePy crash on exception marshalling #107

Closed
bentoi opened this issue Jun 19, 2018 · 2 comments
Closed

IcePy crash on exception marshalling #107

bentoi opened this issue Jun 19, 2018 · 2 comments
Assignees
Milestone

Comments

@bentoi
Copy link
Member

bentoi commented Jun 19, 2018

I'm seeing this failure with Ice for Python 3.7.1 (macOS) when interrupting the ./allTests.py script which is running the Android tests. It looks like this could occur when reading a Test::Common::TestCaseFailedException defined in Controller.ice.

hread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   org.python.python             	0x000000010bb9418c PyObject_SetAttrString + 16
1   IcePy.so                      	0x000000010c75c16b IcePy::DataMember::unmarshaled(_object*, _object*, void*) + 43
2   IcePy.so                      	0x000000010c75ac19 IcePy::PrimitiveInfo::unmarshal(Ice::InputStream*, IceUtil::Handle<IcePy::UnmarshalCallback> const&, _object*, void*, bool, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const*) + 601
3   IcePy.so                      	0x000000010c769130 IcePy::ExceptionInfo::unmarshal(Ice::InputStream*) + 240
4   IcePy.so                      	0x000000010c76a462 IcePy::ExceptionReader::_read(Ice::InputStream*) + 66
5   IcePy.so                      	0x000000010c7dfc20 Ice::InputStream::EncapsDecoder11::throwException(IceUtil::Handle<Ice::UserExceptionFactory> const&) + 624
6   IcePy.so                      	0x000000010c72faa3 IcePy::Invocation::unmarshalException(IceUtil::Handle<IcePy::Operation> const&, std::__1::pair<unsigned char const*, unsigned char const*> const&) + 163
7   IcePy.so                      	0x000000010c7304be IcePy::SyncTypedInvocation::invoke(_object*, _object*) + 558
8   IcePy.so                      	0x000000010c73f25b operationInvoke(IcePy::OperationObject*, _object*) + 139
9   org.python.python             	0x000000010bbe0367 PyEval_EvalFrameEx + 19822
10  org.python.python             	0x000000010bbdb3e2 PyEval_EvalCodeEx + 1562
11  org.python.python             	0x000000010bbe44e7 fast_function + 290
12  org.python.python             	0x000000010bbe026a PyEval_EvalFrameEx + 19569
13  org.python.python             	0x000000010bbdb3e2 PyEval_EvalCodeEx + 1562
14  org.python.python             	0x000000010bbe44e7 fast_function + 290
15  org.python.python             	0x000000010bbe026a PyEval_EvalFrameEx + 19569
16  org.python.python             	0x000000010bbdb3e2 PyEval_EvalCodeEx + 1562
17  org.python.python             	0x000000010bbe44e7 fast_function + 290
18  org.python.python             	0x000000010bbe026a PyEval_EvalFrameEx + 19569
19  org.python.python             	0x000000010bbe4489 fast_function + 196
20  org.python.python             	0x000000010bbe026a PyEval_EvalFrameEx + 19569
21  org.python.python             	0x000000010bbe4489 fast_function + 196
22  org.python.python             	0x000000010bbe026a PyEval_EvalFrameEx + 19569
23  org.python.python             	0x000000010bbdb3e2 PyEval_EvalCodeEx + 1562
24  org.python.python             	0x000000010bbe44e7 fast_function + 290
25  org.python.python             	0x000000010bbe026a PyEval_EvalFrameEx + 19569
26  org.python.python             	0x000000010bbe4489 fast_function + 196
27  org.python.python             	0x000000010bbe026a PyEval_EvalFrameEx + 19569
28  org.python.python             	0x000000010bbe4489 fast_function + 196
29  org.python.python             	0x000000010bbe026a PyEval_EvalFrameEx + 19569
30  org.python.python             	0x000000010bbe4489 fast_function + 196
31  org.python.python             	0x000000010bbe026a PyEval_EvalFrameEx + 19569
32  org.python.python             	0x000000010bbe4489 fast_function + 196
33  org.python.python             	0x000000010bbe026a PyEval_EvalFrameEx + 19569
34  org.python.python             	0x000000010bbe4489 fast_function + 196
35  org.python.python             	0x000000010bbe026a PyEval_EvalFrameEx + 19569
36  org.python.python             	0x000000010bbdb3e2 PyEval_EvalCodeEx + 1562
37  org.python.python             	0x000000010bbe44e7 fast_function + 290
38  org.python.python             	0x000000010bbe026a PyEval_EvalFrameEx + 19569
39  org.python.python             	0x000000010bbdb3e2 PyEval_EvalCodeEx + 1562
40  org.python.python             	0x000000010bbe44e7 fast_function + 290
41  org.python.python             	0x000000010bbe026a PyEval_EvalFrameEx + 19569
42  org.python.python             	0x000000010bbdb3e2 PyEval_EvalCodeEx + 1562
43  org.python.python             	0x000000010bbe44e7 fast_function + 290
44  org.python.python             	0x000000010bbe026a PyEval_EvalFrameEx + 19569
45  org.python.python             	0x000000010bbdb3e2 PyEval_EvalCodeEx + 1562
46  org.python.python             	0x000000010bbe44e7 fast_function + 290
47  org.python.python             	0x000000010bbe026a PyEval_EvalFrameEx + 19569
48  org.python.python             	0x000000010bbe4489 fast_function + 196
49  org.python.python             	0x000000010bbe026a PyEval_EvalFrameEx + 19569
50  org.python.python             	0x000000010bbdb3e2 PyEval_EvalCodeEx + 1562
51  org.python.python             	0x000000010bbdadc2 PyEval_EvalCode + 32
52  org.python.python             	0x000000010bbfc7ab run_mod + 49
53  org.python.python             	0x000000010bbfc852 PyRun_FileExFlags + 130
54  org.python.python             	0x000000010bbfc3d4 PyRun_SimpleFileExFlags + 706
55  org.python.python             	0x000000010bc0df54 Py_Main + 3136
56  libdyld.dylib                 	0x00007fff7e04b015 start + 1

@bentoi bentoi added this to the 3.7.2 milestone Jun 19, 2018
@bentoi
Copy link
Member Author

bentoi commented Jun 21, 2018

Stack trace with line numbers:

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   org.python.python             	0x000000010936318c PyObject_SetAttrString + 16
1   IcePy.so                      	0x000000010a184fbf IcePy::DataMember::unmarshaled(_object*, _object*, void*) + 271 (Types.cpp:1221)
2   IcePy.so                      	0x000000010a18232e IcePy::PrimitiveInfo::unmarshal(Ice::InputStream*, IceUtil::Handle<IcePy::UnmarshalCallback> const&, _object*, void*, bool, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const*) + 1870 (Types.cpp:1029)
3   IcePy.so                      	0x000000010a19f6f0 IcePy::ExceptionInfo::unmarshal(Ice::InputStream*) + 960 (Types.cpp:3736)
4   IcePy.so                      	0x000000010a1a17d5 IcePy::ExceptionReader::_read(Ice::InputStream*) + 85 (Types.cpp:3937)
5   libIce.3.7.1.dylib            	0x000000010a898465 Ice::InputStream::EncapsDecoder11::throwException(IceUtil::Handle<Ice::UserExceptionFactory> const&) + 517 (InputStream.cpp:2371)
6   libIce.3.7.1.dylib            	0x000000010a88cfb9 Ice::InputStream::throwException(IceUtil::Handle<Ice::UserExceptionFactory> const&) + 57 (InputStream.cpp:1442)
7   IcePy.so                      	0x000000010a11e06c IcePy::Invocation::unmarshalException(IceUtil::Handle<IcePy::Operation> const&, std::__1::pair<unsigned char const*, unsigned char const*> const&) + 412 (Operation.cpp:2136)
8   IcePy.so                      	0x000000010a11f753 IcePy::SyncTypedInvocation::invoke(_object*, _object*) + 2467 (Operation.cpp:2287)
9   IcePy.so                      	0x000000010a13af10 operationInvoke(IcePy::OperationObject*, _object*) + 288 (Operation.cpp:577)
10  org.python.python             	0x00000001093af367 PyEval_EvalFrameEx + 19822
...

@bernardnormier
Copy link
Member

I am unable to reproduce this crash.

@bentoi bentoi self-assigned this Nov 20, 2018
@bentoi bentoi closed this as completed in 738347a Nov 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants