[gopher] Dynamically linked Mosaic on Linux??

Florian E. Teply usenet at teply.info
Fri Nov 12 14:29:02 UTC 2010


On Fri, 12 Nov 2010 05:51:16 -0800 (PST)
Cameron Kaiser <spectre at floodgap.com> wrote:

> > That does indeed fix it. Just being nosy: what would the underlying
> > problem be? To me, the change indicates a typecast that doesn't
> > work as intended, even though bincoming seems to be exactly the
> > boolean value the typecast was meant to produce.
> 
> The redundant bincoming and iincoming were added by me in ck9 to solve
> this problem with preferences in general. NCSA never finished the code
> that hooked up reading the preferences file to actually storing prefs
> in memory, so when I turned it on, everything dereferenced a null
> pointer and crashed. I added the redundant arguments so that for
> simple prefs a simple value could be passed along directly (strings
> still need a pointer of course) and there would be no messy mucking
> around, but I only did this for the ones I needed to get running.
> Obviously I missed one, and I should just do the rest of them for
> ck10 at the same time.
> 

BTW, i just catched another one during runtime. Happens already when 
accessing google at the result pages. I had two versions of that one 
though and attached three backtraces in total. But that probably has to 
do with me linking libpng dynamically. The last two backtraces are actually 
very similar, only resolving to different functions/libraries. They can be 
reliably triggered by doing a search at google. It'll crash with a segfault
when displaying the results. I'll see if i can reproduce that on gopher pages...

Regards,
Florian

Backtrace #1:
(gdb) run
Starting program: /home/floh/ebuilds/mosaic-ck/src/Mosaic 
Warning: Cannot convert string "-*-lucidatypewriter-medium-r-normal-*-12-*-iso8859-1" to type FontStruct 
Warning: Cannot convert string "-adobe-times-bold-r-normal-*-12-*-*-*-*-*-iso8859-1" to type FontStruct 
Warning: Cannot convert string "-adobe-times-bold-r-normal-*-24-*-*-*-*-*-iso8859-1" to type FontStruct 
Warning: Cannot convert string "-adobe-times-bold-r-normal-*-18-*-*-*-*-*-iso8859-1" to type FontStruct 
Warning: Cannot convert string "-adobe-times-bold-r-normal-*-10-*-*-*-*-*-iso8859-1" to type FontStruct 
Warning: Cannot convert string "-adobe-courier-medium-r-normal-*-12-*-*-*-*-*-iso8859-1" to type FontStruct 
Warning: Cannot convert string "-adobe-times-medium-r-normal-*-10-*-*-*-*-*-iso8859-1" to type FontStruct

Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) backtrace
#0  0x00000000 in ?? ()
#1  0x0fa7814c in ?? () from /usr/lib/libpng14.so.14
#2  0x0fa5fff8 in png_create_info_struct () from /usr/lib/libpng14.so.14
#3  0x1005bfec in ReadPNG (infile=Cannot access memory at address 0x3f8
) at readPNG.c:162
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Backtrace #2:
Program received signal SIGSEGV, Segmentation fault.
0x0f8075b4 in free () from /lib/libc.so.6
(gdb) backtrace
#0  0x0f8075b4 in free () from /lib/libc.so.6
#1  0x0fa77df8 in png_free_default () from /usr/lib/libpng14.so.14
#2  0x0fa77e68 in png_free () from /usr/lib/libpng14.so.14
#3  0x0fa61400 in ?? () from /usr/lib/libpng14.so.14
#4  0x0fa64b40 in ?? () from /usr/lib/libpng14.so.14
#5  0x0fa6e7c0 in png_read_info () from /usr/lib/libpng14.so.14
#6  0x1005c010 in ReadPNG (infile=0x10396790, width=0xbfffd110, height=0xbfffd114, colrs=0xbfffd518) at readPNG.c:168
#7  0x1004d9bc in ReadBitmap (datafile=0x102b7280 "/tmp/fileMSyJk6", w=0xbfffd110, h=0xbfffd114, colrs=0xbfffd518, bg=0xbfffe118)
    at picread.c:690
#8  0x1004a9cc in ImageResolve (w=0x1028ead0, src=0x10394488 "http://www.google.de/images/srpr/nav_logo25.png", noload=0, wid=0x0, hei=0x0)
    at img.c:588
#9  0x1004b870 in DelayedImageResolve (w=0x1028ead0, src=0x1038c780 "/images/srpr/nav_logo25.png") at img.c:872
#10 0x100ae340 in HandleAClick (hw=0x1028ead0, eptr=0x102b8840, event=0x0) at HTML.c:4272
#11 0x100b3ef0 in HTMLLoadNextDelayedImage (hw=0x1028ead0) at HTML.c:7210
#12 0x1002d84c in mo_start_async_loads (mwin=0x102622f8, id=0x0) at gui-documents.c:139
#13 0x1002edc0 in mo_do_window_text (win=0x102622f8, url=0x102ae280 "http://www.google.de/search?hl=de&source=hp&ie=ISO-8859-1&q=test", 
    txt=0x102bbaa8 "<!doctype html><head><title>test - Google-Suche</title><script>window.google={kEI:\"okzdTL3kEoj0sgbC_J2BDA\",kEXPI:\"25907,26711,27404,27545\",kCSI:{e:\"25907,26711,27404,27545\",ei:\"okzdTL3kEoj0sgbC_J2BDA\""..., 
    txthead=0x102bbaa8 "<!doctype html><head><title>test - Google-Suche</title><script>window.google={kEI:\"okzdTL3kEoj0sgbC_J2BDA\",kEXPI:\"25907,26711,27404,27545\",kCSI:{e:\"25907,26711,27404,27545\",ei:\"okzdTL3kEoj0sgbC_J2BDA\""..., register_visit=2, ref=0x0, last_modified=0x0, 
    expires=0x102a8560 ": -1") at gui-documents.c:622
#14 0x1002f950 in mo_load_window_text (win=0x102622f8, url=0x102ae280 "http://www.google.de/search?hl=de&source=hp&ie=ISO-8859-1&q=test", 
    ref=0x0) at gui-documents.c:1072
#15 0x1002ffe0 in mo_access_document (win=0x102622f8, url=0x102cfdf8 "/search?hl=de&source=hp&ie=ISO-8859-1&q=test") at gui-documents.c:1350
#16 0x10008508 in submit_form_callback (w=0x1028ead0, client_data=0x10000, call_data=0xbfffe3c4) at gui.c:1408
#17 0x0fc6a974 in XtCallCallbackList () from /usr/lib/libXt.so.6
#18 0x100cdeb4 in CBSubmitForm (w=0x102ac9a8, client_data=0x102ac730 "\020(\352\320\020+p\210", call_data=0xbfffe478 "") at HTMLwidgets.c:691
#19 0x100cea0c in CBActivateField (w=0x102ac9a8, client_data=0x102ac730 "\020(\352\320\020+p\210", call_data=0xbfffe478 "")
    at HTMLwidgets.c:1110
#20 0x0fc6a974 in XtCallCallbackList () from /usr/lib/libXt.so.6
#21 0x0fe402a0 in ?? () from /usr/lib/libXm.so.4
#22 0x0fca7b00 in ?? () from /usr/lib/libXt.so.6
#23 0x0fca7ef8 in ?? () from /usr/lib/libXt.so.6
#24 0x0fca84d0 in _XtTranslateEvent () from /usr/lib/libXt.so.6
#25 0x0fc7aa58 in XtDispatchEventToWidget () from /usr/lib/libXt.so.6
#26 0x0fc7b08c in ?? () from /usr/lib/libXt.so.6
#27 0x0fc79fa0 in XtDispatchEvent () from /usr/lib/libXt.so.6
#28 0x0fc7a06c in XtAppMainLoop () from /usr/lib/libXt.so.6
#29 0x1001298c in mo_do_gui (argc=1, argv=0xbfffef14) at gui.c:4798
#30 0x10005a30 in main (argc=1, argv=0xbfffef14, envp=0xbfffef1c) at main.c:251
(gdb) 

Backtrace #3:
Program received signal SIGSEGV, Segmentation fault.
0x0fa61334 in ?? () from /usr/lib/libpng14.so.14
(gdb) backtrace
#0  0x0fa61334 in ?? () from /usr/lib/libpng14.so.14
#1  0x0fa61328 in ?? () from /usr/lib/libpng14.so.14
#2  0x0fa64b40 in ?? () from /usr/lib/libpng14.so.14
#3  0x0fa6e7c0 in png_read_info () from /usr/lib/libpng14.so.14
#4  0x1005c010 in ReadPNG (infile=0x103957b0, width=0xbfffd110, height=0xbfffd114, colrs=0xbfffd518) at readPNG.c:168
#5  0x1004d9bc in ReadBitmap (datafile=0x103a84b0 "/tmp/fileVXANUe", w=0xbfffd110, h=0xbfffd114, colrs=0xbfffd518, bg=0xbfffe118)
    at picread.c:690
#6  0x1004a9cc in ImageResolve (w=0x1028eab0, src=0x10393470 "http://www.google.de/images/srpr/nav_logo25.png", noload=0, wid=0x0, hei=0x0)
    at img.c:588
#7  0x1004b870 in DelayedImageResolve (w=0x1028eab0, src=0x1038b5b0 "/images/srpr/nav_logo25.png") at img.c:872
#8  0x100ae340 in HandleAClick (hw=0x1028eab0, eptr=0x102b8958, event=0x0) at HTML.c:4272
#9  0x100b3ef0 in HTMLLoadNextDelayedImage (hw=0x1028eab0) at HTML.c:7210
#10 0x1002d84c in mo_start_async_loads (mwin=0x102622f8, id=0x0) at gui-documents.c:139
#11 0x1002edc0 in mo_do_window_text (win=0x102622f8, url=0x102d0ad8 "http://www.google.de/search?hl=de&source=hp&ie=ISO-8859-1&q=test", 
    txt=0x102bbbc0 "<!doctype html><head><title>test - Google-Suche</title><script>window.google={kEI:\"pU3dTMiZCszAswa-5bXDCw\",kEXPI:\"26711,27404,27566\",kCSI:{e:\"26711,27404,27566\",ei:\"pU3dTMiZCszAswa-5bXDCw\",expi:\"26711"..., 
    txthead=0x102bbbc0 "<!doctype html><head><title>test - Google-Suche</title><script>window.google={kEI:\"pU3dTMiZCszAswa-5bXDCw\",kEXPI:\"26711,27404,27566\",kCSI:{e:\"26711,27404,27566\",ei:\"pU3dTMiZCszAswa-5bXDCw\",expi:\"26711"..., register_visit=2, ref=0x0, last_modified=0x0, 
    expires=0x102ae0d0 ": -1") at gui-documents.c:622
#12 0x1002f950 in mo_load_window_text (win=0x102622f8, url=0x102d0ad8 "http://www.google.de/search?hl=de&source=hp&ie=ISO-8859-1&q=test", 
    ref=0x0) at gui-documents.c:1072
#13 0x1002ffe0 in mo_access_document (win=0x102622f8, url=0x102cff10 "/search?hl=de&source=hp&ie=ISO-8859-1&q=test") at gui-documents.c:1350
#14 0x10008508 in submit_form_callback (w=0x1028eab0, client_data=0x10000, call_data=0xbfffe3c4) at gui.c:1408
#15 0x0fc6a974 in XtCallCallbackList () from /usr/lib/libXt.so.6
#16 0x100cdeb4 in CBSubmitForm (w=0x102aca00, client_data=0x102ac7a8 "\020(\352\260\020+q\240", call_data=0xbfffe478 "") at HTMLwidgets.c:691
#17 0x100cea0c in CBActivateField (w=0x102aca00, client_data=0x102ac7a8 "\020(\352\260\020+q\240", call_data=0xbfffe478 "")
    at HTMLwidgets.c:1110
#18 0x0fc6a974 in XtCallCallbackList () from /usr/lib/libXt.so.6
#19 0x0fe402a0 in ?? () from /usr/lib/libXm.so.4
#20 0x0fca7b00 in ?? () from /usr/lib/libXt.so.6
#21 0x0fca7ef8 in ?? () from /usr/lib/libXt.so.6
#22 0x0fca84d0 in _XtTranslateEvent () from /usr/lib/libXt.so.6
#23 0x0fc7aa58 in XtDispatchEventToWidget () from /usr/lib/libXt.so.6
#24 0x0fc7b08c in ?? () from /usr/lib/libXt.so.6
#25 0x0fc79fa0 in XtDispatchEvent () from /usr/lib/libXt.so.6
#26 0x0fc7a06c in XtAppMainLoop () from /usr/lib/libXt.so.6
#27 0x1001298c in mo_do_gui (argc=1, argv=0xbfffef14) at gui.c:4798
#28 0x10005a30 in main (argc=1, argv=0xbfffef14, envp=0xbfffef1c) at main.c:251
(gdb) 



More information about the Gopher-Project mailing list