GNOME Bugzilla – Bug 339517
record crash when click some button in gnome-font-properties
Last modified: 2006-04-25 08:30:24 UTC
Steps to reproduce: Env: os: opensolaris gnome: 2.14 ldtp: cvs 1. enable accessibility support 2. launch gnome-font-properties 3. run 'record gnome-font-properties tmp.txt' 4. click 'Details...' button in gnome-font-properties' main UI Stack trace: core 'core' of 21443: record gnome-font-properties a.txt d0a94b90 strlen (8055676, 8046334, 8046250, 0) + 30 d0ad2735 vsnprintf (804629f, 1, 8055674, 8046334) + 70 d04672aa g_printf_string_upper_bound (8055674, 8046334) + 3a d049710f g_vasprintf (80462f4, 8055674, 8046334) + 7f d047ca9f g_strdup_vprintf (8055674, 8046334) + 3f d047cafa g_strdup_printf (8055674, 0) + 3a 08053604 text_caret_moved_cb (806bc38, 0) + f4 d17a3d61 cspi_event (806fec0, 807c34c, 8072a80) + 131 d0560cee g_cclosure_marshal_VOID__POINTER (8071e48, 0, 2, 80465ec, 80464f8, d17a3c30) + ee d0543263 g_type_class_meta_marshal (8071e48, 0, 2, 80465ec, 80464f8, b4) + 73 d0542e83 g_closure_invoke (8071e48, 0, 2, 80465ec, 80464f8) + 1b3 d055f5c1 signal_emit_unlocked_R (80755a0, 0, 806fec0, 0, 80465ec) + bc1 d055e30d g_signal_emit_valist (806fec0, 8, 0, 8046774) + add d055e722 g_signal_emit (806fec0, 8, 0, 807c34c) + 42 d174e725 impl_accessible_event_notify_event (806fed4, 807c34c, 8046970) + 65 d173d34b _ORBIT_skel_small_Accessibility_EventListener_notifyEvent (806fed4, 0, 8046834, 8046880, 8046970, d174e6c0) + 3b d142b703 ORBit_POAObject_invoke (8075350, 0, 8046834, 8046880, 80468c4, 8046970) + 53 d1431dea ORBit_OAObject_invoke (8075350, 0, 8046834, 8046880, 80468c4, 8046970) + 4a d1413a35 ORBit_small_invoke_adaptor (8075350, 8077018, d176de08, 80468c4, 8046970) + 455 d142bcf1 ORBit_POAObject_handle_request (8075350, 807b83c, 0, 0, 0, 8077018) + 441 d142bfd7 ORBit_POAObject_invoke_incoming_request (8075350, 8077018, 8046970) + 87 d142c715 ORBit_POA_handle_request (806e540, 8077018, 8077030) + 345 d1431c5c ORBit_handle_request (806e4c8, 8077018) + 12c d140ed88 giop_connection_handle_input (8072d50) + 268 d143b9c0 link_connection_io_handler (0, 1, 8072d50) + 80 d143ee54 link_source_dispatch (8076510, d143b940, 8072d50) + 74 d045a712 g_main_dispatch (806d9a8) + 1f2 d045bf0f g_main_context_dispatch (806d9a8) + af d045c536 g_main_context_iterate (806d9a8, 1, 1, 80685d0) + 596 d045cf4e g_main_loop_run (80720a0) + 44e 08052e50 record_main (8071088, 806f2d8) + 70 08052fbd main (3, 8046c4c, 8046c5c) + 14d 080529ba _start (3, 8046df0, 8046df7, 8046e0d, 0, 8046e13) + 7a Other information: the crash is caused by calling 'text_caret_moved_cb' function, i am wondering why clicking button 'Details...' in gnome-font-proerties will call this function. any comments?
Created attachment 64173 [details] [review] Text caret moved cb crash patch Yandong: Whenever a text property is encountered, this callback will be called. Attached patch will fix the crash (NULL check).
verified the patch, fixed the problem
*** Bug 339670 has been marked as a duplicate of this bug. ***