2024-04-28 06:29 BST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002868LibCSSLibCSSpublic2024-03-03 08:11
ReporterxHire 
Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
StatusnewResolutionopen 
Summary0002868: Crash (segfault) on NULL style of nested box when trying to get computed height
DescriptionThread 1 "netsurf-gtk3" received signal SIGSEGV, Segmentation fault.
css_computed_height (style=0x0, length=length@entry=0x7fffffffac80, unit=unit@entry=0x7fffffffac84) at src/select/computed.c:614
614 return get_height(style, length, unit);
(gdb) bt
#0 css_computed_height (style=0x0, length=length@entry=0x7fffffffac80, unit=unit@entry=0x7fffffffac84) at src/select/computed.c:614
#1 0x00005555555bf21f in layout_find_dimensions (unit_len_ctx=unit_len_ctx@entry=0x55555692e180, available_width=available_width@entry=1300, box=box@entry=0x555556d78100, style=0x555556d77f30, width=width@entry=0x555556d78180, height=height@entry=0x555556d78184, max_width=0x555556db00c4, min_width=0x555556db00c0, max_height=0x555556db00cc,
    min_height=0x555556db00c8, margin=0x555556d78198, padding=0x555556d781a8, border=0x555556d781b8, viewport_height=-1) at content/handlers/html/layout_internal.h:524
0000002 0x00005555555bf5ae in layout_flex_ctx__populate_item_data (flex=0x555556d77b20, available_width=1300, ctx=0x555556dba360) at content/handlers/html/layout_flex.c:355
#3 layout_flex (flex=flex@entry=0x555556d77b20, available_width=1300, content=content@entry=0x55555692df10) at content/handlers/html/layout_flex.c:1085
#4 0x00005555555b9cba in layout_block_context (block=block@entry=0x555556d59ac0, viewport_height=viewport_height@entry=-1, content=0x55555692df10, content@entry=0xfffffffffffffd90) at content/handlers/html/layout.c:3792
#5 0x00005555555bd402 in layout_float (b=b@entry=0x555556d59ac0, width=width@entry=2000, content=0xfffffffffffffd90, content@entry=0x55555692df10) at content/handlers/html/layout.c:2617
#6 0x00005555555ba78e in layout_line (next_box=<synthetic pointer>, content=<optimized out>, has_text_children=<optimized out>, indent=<optimized out>, cont=<optimized out>, cy=199, cx=<optimized out>, y=<synthetic pointer>, width=<synthetic pointer>, first=0x555556d59ac0) at content/handlers/html/layout.c:2829
#7 layout_inline_container (content=<optimized out>, cy=199, cx=0, cont=<optimized out>, width=<optimized out>, inline_container=<optimized out>) at content/handlers/html/layout.c:3515
#8 layout_block_context (block=block@entry=0x5555568b2a90, viewport_height=viewport_height@entry=1980, content=content@entry=0x55555692df10) at content/handlers/html/layout.c:3829
#9 0x00005555555b9f4d in layout_block_context (block=block@entry=0x5555568b2000, viewport_height=viewport_height@entry=1980, content=content@entry=0x55555692df10) at content/handlers/html/layout.c:3796
#10 0x00005555555be599 in layout_document (content=content@entry=0x55555692df10, width=<optimized out>, width@entry=3818, height=height@entry=1980) at content/handlers/html/layout.c:5443
#11 0x00005555555ad5b3 in html_reformat (c=0x55555692df10, width=3818, height=1980) at content/handlers/html/html.c:1071
#12 0x0000555555584130 in content__reformat (c=0x55555692df10, background=background@entry=false, width=<optimized out>, height=<optimized out>) at content/content.c:344
#13 0x00005555555841f4 in content_reformat (h=<optimized out>, background=background@entry=false, width=<optimized out>, height=<optimized out>) at content/content.c:324
#14 0x00005555555ea6b9 in browser_window_content_ready (bw=0x5555563fa850) at desktop/browser_window.c:851
#15 browser_window_callback (c=<optimized out>, event=0x7fffffffb3d0, pw=0x5555563fa850) at desktop/browser_window.c:1500
#16 0x00005555555d2e54 in hlcache_content_callback (c=<optimized out>, msg=<optimized out>, data=<optimized out>, pw=<optimized out>) at content/hlcache.c:205
#17 0x0000555555583fd3 in content_broadcast (c=0x55555692df10, msg=CONTENT_MSG_READY, data=0x0) at content/content.c:762
#18 0x00005555555af007 in html_box_convert_done (c=0x55555692df10, success=<optimized out>) at content/handlers/html/html.c:276
#19 0x000055555559dbaf in convert_xml_to_box (ctx=0x555556c2f880) at content/handlers/html/box_construct.c:1300
#20 0x0000555555618025 in schedule_run () at frontends/gtk/schedule.c:148
#21 0x000055555560d5e8 in nsgtk_main () at frontends/gtk/gui.c:1072
#22 0x0000555555582eb1 in main (argc=<optimized out>, argv=<optimized out>) at frontends/gtk/gui.c:1231
Steps To ReproduceVisit https://www.illustrationday.com/
TagsNo tags attached.
Fixed in CI build #
Reported in CI build #
Attached Files

-Relationships
+Relationships

-Notes
There are no notes attached to this issue.
+Notes

-Issue History
Date Modified Username Field Change
2024-03-03 08:11 xHire New Issue
+Issue History