[gopher] Dynamically linked Mosaic on Linux??

Florian E. Teply usenet at teply.info
Fri Nov 12 21:03:50 UTC 2010


On Fri, 12 Nov 2010 09:59:44 -0800 (PST)
Cameron Kaiser <spectre at floodgap.com> wrote:

> If you link Mosaic statically against libpng.a, does that fix the
> problem? That at least gives me an idea where to look.
> 

Umm, not quite. Had to fiddle around some in order to make it compile
at all:
* changed prefs.c according to your last mail
* changed readPNG.c to call png_create_info_struct instead of
  png_info_init in line 162

as it seems, png_info_init() has been removed from libpng-1.4.3, at
least i've seen it only inside a comment.

Backtrace attached...

Regards,
Florian

Program received signal SIGSEGV, Segmentation fault.
0x100fa8ec in png_set_text_2 ()
(gdb) backtrace
#0  0x100fa8ec in png_set_text_2 ()
#1  0x100f71c4 in png_handle_iTXt ()
#2  0x100ede68 in png_read_info ()
#3  0x1005e370 in ReadPNG (infile=0x103b03e0, width=0xbfffd110, height=0xbfffd114, colrs=0xbfffd518) at readPNG.c:168
#4  0x1004fd1c in ReadBitmap (datafile=0x103ade40 "/tmp/fileyz14wE", w=0xbfffd110, h=0xbfffd114, colrs=0xbfffd518, bg=0xbfffe118)
    at picread.c:690
#5  0x1004cd2c in ImageResolve (w=0x102a9f78, src=0x103ae068 "http://www.google.de/images/srpr/nav_logo25.png", noload=0, wid=0x0, hei=0x0)
    at img.c:588
#6  0x1004dbd0 in DelayedImageResolve (w=0x102a9f78, src=0x102e3f68 "/images/srpr/nav_logo25.png") at img.c:872
#7  0x100b06a0 in HandleAClick (hw=0x102a9f78, eptr=0x102d4100, event=0x0) at HTML.c:4272
#8  0x100b6250 in HTMLLoadNextDelayedImage (hw=0x102a9f78) at HTML.c:7210
#9  0x1002fbac in mo_start_async_loads (mwin=0x1027d878, id=0x0) at gui-documents.c:139
#10 0x10031120 in mo_do_window_text (win=0x1027d878, url=0x102eb838 "http://www.google.de/search?hl=de&source=hp&ie=ISO-8859-1&q=test", 
    txt=0x102d52f0 "<!doctype html><head><title>test - Google-Suche</title><script>window.google={kEI:\"hqjdTLenJIL6sgazx7GCDA\",kEXPI:\"25907,26711,27404,27547\",kCSI:{e:\"25907,26711,27404,27547\",ei:\"hqjdTLenJIL6sgazx7GCDA\""..., 
    txthead=0x102d52f0 "<!doctype html><head><title>test - Google-Suche</title><script>window.google={kEI:\"hqjdTLenJIL6sgazx7GCDA\",kEXPI:\"25907,26711,27404,27547\",kCSI:{e:\"25907,26711,27404,27547\",ei:\"hqjdTLenJIL6sgazx7GCDA\""..., register_visit=2, ref=0x0, last_modified=0x0, 
    expires=0x102eba38 ": -1") at gui-documents.c:622
#11 0x10031cb0 in mo_load_window_text (win=0x1027d878, url=0x102eb838 "http://www.google.de/search?hl=de&source=hp&ie=ISO-8859-1&q=test", 
    ref=0x0) at gui-documents.c:1072
#12 0x10032340 in mo_access_document (win=0x1027d878, url=0x102eb6f0 "/search?hl=de&source=hp&ie=ISO-8859-1&q=test") at gui-documents.c:1350
#13 0x1000a868 in submit_form_callback (w=0x102a9f78, client_data=0x10000, call_data=0xbfffe3c4) at gui.c:1408
#14 0x0fc6a974 in XtCallCallbackList () from /usr/lib/libXt.so.6
#15 0x100d0214 in CBSubmitForm (w=0x102c82b0, client_data=0x102c8058 "\020*\237x\020-)H", call_data=0xbfffe478 "") at HTMLwidgets.c:691
#16 0x100d0d6c in CBActivateField (w=0x102c82b0, client_data=0x102c8058 "\020*\237x\020-)H", call_data=0xbfffe478 "") at HTMLwidgets.c:1110
#17 0x0fc6a974 in XtCallCallbackList () from /usr/lib/libXt.so.6
#18 0x0fe402a0 in ?? () from /usr/lib/libXm.so.4
#19 0x0fca7b00 in ?? () from /usr/lib/libXt.so.6
#20 0x0fca7ef8 in ?? () from /usr/lib/libXt.so.6
#21 0x0fca84d0 in _XtTranslateEvent () from /usr/lib/libXt.so.6
#22 0x0fc7aa58 in XtDispatchEventToWidget () from /usr/lib/libXt.so.6
#23 0x0fc7b08c in ?? () from /usr/lib/libXt.so.6
#24 0x0fc79fa0 in XtDispatchEvent () from /usr/lib/libXt.so.6
#25 0x0fc7a06c in XtAppMainLoop () from /usr/lib/libXt.so.6
#26 0x10014cec in mo_do_gui (argc=1, argv=0xbfffef14) at gui.c:4798
#27 0x10007d90 in main (argc=1, argv=0xbfffef14, envp=0xbfffef1c) at main.c:251
(gdb) 



More information about the Gopher-Project mailing list