Wireshark-dev: Re: [Wireshark-dev] wireshark 0.99.7 crash on MacOS X 10.5 (Leopard)
From: Michael Tuexen <[email protected]>
Date: Thu, 3 Jan 2008 20:40:59 +0100
Hi Andreas,

did up upgrade to
which fixes a number of bugs and especially some
which show up when using wireshark?

I was able to successfully build wireshark with
the latest gtk/glib stuff. Everything works fine
except for the stock icons...

Best regards

On Jan 3, 2008, at 8:34 PM, Andreas Fink wrote:

Hi there,
I'm trying to rebuild wireshark for MacOS X 10.5 (Leopard) with the new X11 engine (instead of the old XFree86, Leopard uses XFree.org's implementation if I'm not mistaken). However I'm running into crashes saying:
intelix:sources afink$ wireshark --sync
The program 'wireshark' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 57553 error_code 8 request_code 152 minor_code 4)
(Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)

So I did a backtrace in gdb and got this:

#0  0x00942053 in gdk_x_error () at gstring.h:149
#1  0x048e1c14 in _XError ()
#2  0x048e38d1 in _XReply ()
#3  0x048dc78a in XSync ()
#4  0x048dc829 in _XSyncFunction ()
#5  0x002bb9e7 in XRenderCreatePicture () at gthread.h:338
#6 0x00a37bcc in _cairo_xlib_surface_ensure_dst_picture (surface=0x78cfe80) at cairo-xlib-surface.c:741 #7 0x00a3a06f in _cairo_xlib_surface_show_glyphs (abstract_dst=0x78cfe80, op=CAIRO_OPERATOR_OVER, src_pattern=0xbfffd1bc, glyphs=0xbfffd304, num_glyphs=26, scaled_font=0x78cabf0) at cairo-xlib-surface.c:2960 #8 0x00a14ef7 in _cairo_surface_show_glyphs (surface=0x78cfe80, op=CAIRO_OPERATOR_OVER, source=0xbfffdafc, glyphs=0xbfffd304, num_glyphs=26, scaled_font=0x78cabf0) at cairo-surface.c:1886 #9 0x00a084fa in _cairo_gstate_show_glyphs (gstate=0x2, glyphs=0xbfffdc00, num_glyphs=26) at cairo-gstate.c:1585 #10 0x00a0226f in cairo_show_glyphs (cr=0x0, glyphs=0xbfffdc00, num_glyphs=26) at cairo.c:2952 #11 0x0027e4da in pango_cairo_renderer_draw_glyphs (renderer=0x4dde7c0, font=0x4ddf8b8, glyphs=0x6d1a300, x=0, y=0) at pangocairo-render.c:259 #12 0x009c9f55 in pango_renderer_draw_glyphs (renderer=0x4dde7c0, font=0x4ddf8b8, glyphs=0x6d1a300, x=0, y=0) at pango-renderer.c:629 #13 0x0027ec5d in _pango_cairo_do_glyph_string (cr=0x4dde7c0, font=0x4ddf8b8, glyphs=0x6d1a300, do_path=0) at pangocairo-render.c: 534 #14 0x009c9f55 in pango_renderer_draw_glyphs (renderer=0x4df4010, font=0x4ddf8b8, glyphs=0x6d1a300, x=54272, y=0) at pango-renderer.c: 629 #15 0x009cb174 in pango_renderer_draw_layout_line (renderer=0x4df4010, line=0x4df3608, x=54272, y=0) at pango- renderer.c:559 #16 0x009cb5d2 in pango_renderer_draw_layout (renderer=0x4df4010, layout=0x6d15620, x=54272, y=-10240) at pango-renderer.c:186 #17 0x00918af6 in gdk_draw_layout_with_colors (drawable=0x6d17bc0, gc=0x6d05248, x=53, y=-10, layout=0x6d15620, foreground=0x0, background=0x0) at gdkpango.c:951 #18 0x00918cfe in gdk_draw_layout (drawable=0x6d17bc0, gc=0x6d05248, x=53, y=-10, layout=0x6d15620) at gdkpango.c:1013 #19 0x004c4932 in draw_row (clist=0x4acf130, area=0x0, row=7, clist_row=0x6d0c828) at gtkclist.c:5846 #20 0x004c4bcb in draw_rows (clist=0x4acf130, area=0x0) at gtkclist.c:5924
#21 0x00059d1f in packet_list_thaw () at packet_list.c:734
#22 0x0000d545 in cf_continue_tail (cf=0x12e440, to_read=0, err=0xbfffe4bc) at file.c:697 #23 0x0000797f in capture_input_new_packets (capture_opts=0x13e5c0, to_read=8) at capture.c:358 #24 0x0000aff3 in sync_pipe_input_cb (source=9, user_data=0x13e5c0) at capture_sync.c:1135 #25 0x00049a9b in pipe_input_cb (data=0x12a240, source=9, condition=GDK_INPUT_READ) at gui_utils.c:750 #26 0x00914333 in gdk_io_invoke (source=0x78cc850, condition=G_IO_IN, data=0x78c88f0) at gdkevents.c:986 #27 0x049ec80e in g_main_context_dispatch (context=0x4b10410) at gmain.c:2064 #28 0x049edfbe in g_main_context_iterate (context=0x4b10410, block=1, dispatch=1, self=0x4b1de20) at gmain.c:2697
#29 0x049ee27c in g_main_loop_run (loop=0x6b87ba0) at gmain.c:2905
#30 0x00568856 in gtk_main () at gtkmain.c:1163
#31 0x00054879 in main (argc=0, argv=0xbffff8ec) at main.c:3075

Does anyone have an idea what this could be?

I launched Wireshark, saved the preferences (to eliminate tons of warnings of undefined new preferences) started a capture with live display on my ethernet. A few packets got displayed before this happened.
Same happens to my preconfigured Wireshark 0.99.5 version which was  
still compiled under Tiger 10.4.

Andreas Fink

Fink Consulting GmbH
Global Networks Schweiz AG
BebbiCell AG

Tel: +41-61-6666330 Fax: +41-61-6666331  Mobile: +41-79-2457333
Address: Clarastrasse 3, 4058 Basel, Switzerland
E-Mail:  [email protected]
www.finkconsulting.com www.global-networks.ch www.bebbicell.ch
ICQ: 8239353 MSN: [email protected] AIM: smsrelay Skype: andreasfink
Yahoo: finkconsulting SMS: +41792457333

Say NO to Power Line Communications: http://www.youtube.com/watch? v=pdcY0Eetvsw

Wireshark-dev mailing list
[email protected]