pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/51498: devel/meld violates mprotect (problem originating in glib2)



>Number:         51498
>Category:       pkg
>Synopsis:       devel/meld violates mprotect (problem originating in glib2)
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 23 14:40:00 +0000 2016
>Originator:     coypu
>Release:        NetBSD-7.99.38, pkgsrc-2016Q3 (current)
>Organization:
>Environment:
NetBSD laptop.Home 7.99.38 NetBSD 7.99.38 (GENERIC) #7: Tue Sep 20 19:16:03 IDT 2016  fly%laptop.Home@localhost:/home/fly/obj-amd64/sys/arch/amd64/compile/GENERIC amd64
>Description:
Build devel/meld, segfault. paxctl +m `which python2.7` "fixes" it.


... build everything with INSTALL_UNSTRIPPED=yes, CFLAGS+=-g in mk.conf:


[New process 1]
[New process 5]
[New process 4]
[New process 3]
[New process 2]
Core was generated by `python2.7'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x0000756dbc81a690 in ?? ()
[Current thread is 1 (LWP 1)]
gdb$ bt
#0  0x000077d322e12690 in ?? ()
#1  0x000077d31dc13346 in g_cclosure_marshal_VOID__VOIDv (closure=0x77d322f71aa0, return_value=0x0, instance=0x77d3227332d0, args=0x7f7ffffc8da8, marshal_data=0x77d322e12690, n_params=0x0, param_types=0x0) at gmarshal.c:905


#2  0x000077d31dc1097e in g_type_class_meta_marshalv (closure=0x77d322f71aa0, return_value=0x0, instance=0x77d3227332d0, args=0x7f7ffffc8da8, marshal_data=0x88, n_params=0x0, param_types=0x0) at gclosure.c:1024
#3  0x000077d31dc10540 in _g_closure_invoke_va (closure=0x77d322f71aa0, return_value=0x0, instance=0x77d3227332d0, args=0x7f7ffffc8da8, n_params=0x0, param_types=0x0) at gclosure.c:867
#4  0x000077d31dc2ae89 in g_signal_emit_valist (instance=0x77d3227332d0, signal_id=0x101, detail=0x0, var_args=0x7f7ffffc8da8) at gsignal.c:3294
#5  0x000077d31dc2c072 in g_signal_emit (instance=0x77d3227332d0, signal_id=0x101, detail=0x0) at gsignal.c:3441
#6  0x000077d31e4d3cda in g_application_register (application=0x77d3227332d0, cancellable=0x0, error=0x7f7ffffc8f18) at gapplication.c:2049
#7  0x000077d31e4d1f44 in g_application_real_local_command_line (application=0x77d3227332d0, arguments=0x7f7ffffc8fc8, exit_status=0x7f7ffffc8fc4) at gapplication.c:1012
#8  0x000077d31433b550 in gtk_application_local_command_line (application=0x77d3227332d0, arguments=0x7f7ffffc8fc8, exit_status=0x7f7ffffc8fc4) at gtkapplication.c:672
#9  0x000077d31e4d43e2 in g_application_run (application=0x77d3227332d0, argc=0x1, argv=0x77d323fa6110) at gapplication.c:2350
#10 0x000077d31d00a08c in ffi_call_unix64 () at ../src/x86/unix64.S:76
#11 0x000077d31d009aad in ffi_call (cif=0x77d323f59398, fn=0x77d31e4d41c9 <g_application_run>, rvalue=0x7f7ffffc9120, avalue=0x77d322b06b48) at ../src/x86/ffi64.c:525
#12 0x000077d31f040b18 in pygi_invoke_c_callable (function_cache=0x77d323f592f0, state=0x7f7ffffc91a0, py_args=0x77d32264ab90, py_kwargs=0x0) at pygi-invoke.c:674
#13 0x000077d31f042176 in _function_cache_invoke_real (function_cache=0x77d323f592f0, state=0x7f7ffffc91a0, py_args=0x77d32264ab90, py_kwargs=0x0) at pygi-cache.c:780
#14 0x000077d31f04237d in pygi_function_cache_invoke (function_cache=0x77d323f592f0, py_args=0x77d32264ab90, py_kwargs=0x0) at pygi-cache.c:859
#15 0x000077d31f040c20 in pygi_callable_info_invoke (info=0x77d321b78f20, py_args=0x77d32264ab90, kwargs=0x0, cache=0x77d323f592f0, user_data=0x0) at pygi-invoke.c:717
#16 0x000077d31f040d65 in _wrap_g_callable_info_invoke (self=0x77d32265e8f0, py_args=0x77d32264ab90, kwargs=0x0) at pygi-invoke.c:754
#17 0x000077d31f02e42b in _callable_info_call (self=0x77d3226ef880, args=0x77d323afa510, kwargs=0x0) at pygi-info.c:557
#18 0x000077d31f02e6b4 in _function_info_call (self=0x77d3226ef880, args=0x77d323afa510, kwargs=0x0) at pygi-info.c:623
#19 0x000077d32404d8be in PyObject_Call (func=0x77d3226ef880, arg=0x77d323afa510, kw=0x0) at Objects/abstract.c:2546
#20 0x000077d324123652 in do_call (func=0x77d3226ef880, pp_stack=0x7f7ffffc94c0, na=0x1, nk=0x0) at Python/ceval.c:4567
#21 0x000077d324122d56 in call_function (pp_stack=0x7f7ffffc94c0, oparg=0x1) at Python/ceval.c:4372
#22 0x000077d32411ec9f in PyEval_EvalFrameEx (f=0x77d323e505c0, throwflag=0x0) at Python/ceval.c:2987
#23 0x000077d324120d6f in PyEval_EvalCodeEx (co=0x77d323e5dc30, globals=0x77d32444a168, locals=0x77d32444a168, args=0x0, argcount=0x0, kws=0x0, kwcount=0x0, defs=0x0, defcount=0x0, closure=0x0) at Python/ceval.c:3582
#24 0x000077d3241176cf in PyEval_EvalCode (co=0x77d323e5dc30, globals=0x77d32444a168, locals=0x77d32444a168) at Python/ceval.c:669
#25 0x000077d32414d5eb in run_mod (mod=0x77d323b8cc50, filename=0x7f7ffffcbe24 "/home/fly/pkg/bin/meld", globals=0x77d32444a168, locals=0x77d32444a168, flags=0x7f7ffffc9b30, arena=0x77d323f144c0) at Python/pythonrun.c:1376
#26 0x000077d32414d574 in PyRun_FileExFlags (fp=0x77d323375e00, filename=0x7f7ffffcbe24 "/home/fly/pkg/bin/meld", start=0x101, globals=0x77d32444a168, locals=0x77d32444a168, closeit=0x1, flags=0x7f7ffffc9b30) at Python/pythonrun.c:1362
#27 0x000077d32414c1c4 in PyRun_SimpleFileExFlags (fp=0x77d323375e00, filename=0x7f7ffffcbe24 "/home/fly/pkg/bin/meld", closeit=0x1, flags=0x7f7ffffc9b30) at Python/pythonrun.c:948
#28 0x000077d32414ba24 in PyRun_AnyFileExFlags (fp=0x77d323375e00, filename=0x7f7ffffcbe24 "/home/fly/pkg/bin/meld", closeit=0x1, flags=0x7f7ffffc9b30) at Python/pythonrun.c:752
#29 0x000077d324164785 in Py_Main (argc=0x2, argv=0x7f7ffffc9c10) at Modules/main.c:640
#30 0x0000000000400940 in main (argc=0x2, argv=0x7f7ffffc9c10) at ./Modules/python.c:20


For convenience, this is gmarshal.c (from glib2): 
https://git.gnome.org/browse/glib/tree/gobject/gmarshal.c#n879
>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index