Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segfault: _tmp8_ = 0x4100000000 <error: Cannot access memory at address 0x4100000000> #239

Open
slackernetuk opened this issue Dec 26, 2021 · 1 comment · May be fixed by #355
Open

Segfault: _tmp8_ = 0x4100000000 <error: Cannot access memory at address 0x4100000000> #239

slackernetuk opened this issue Dec 26, 2021 · 1 comment · May be fixed by #355
Labels
Status: Confirmed Verified by someone other than the reporter

Comments

@slackernetuk
Copy link

slackernetuk commented Dec 26, 2021

What Happened?

switchboard-plug-about plug crashed immediately

Steps to Reproduce

  1. gdb io.elementary.switchboard
  2. gdb: r
  3. Thread 1 "io.elementary.s" received signal SIGSEGV, Segmentation fault.

Expected Behavior

Plugin 6.1.0 crashed immediately....last working version 2.6.3

OS Version

Other Linux

Latest release (I have run all updates)

#0  0x00007ffff71de051 in __strlen_avx2 () at /lib64/libc.so.6
#1  0x00007fffec919aed in about_hardware_view_get_host_name (self=0x4e2450 [AboutHardwareView])
    at ../src/Views/HardwareView.vala:532
        _tmp0_ = 0xa08540
        hostname = 0x0
        _tmp3_ = 0xa08540
        _tmp4_ = 0x0
        _tmp5_ = 0x0
        _tmp6_ = 0x0
        _tmp7_ = 0
        _tmp8_ = 14591792
        result = 0x0
        __func__ = "about_hardware_view_get_host_name"
#2  0x00007fffec919f41 in about_hardware_view_constructor
    (type=0xda7cb0 [AboutHardwareView/GtkGrid/GtkContainer/GtkWidget/GInitiallyUnowned], n_construct_properties=0, construct_properties=0x0) at ../src/Views/HardwareView.vala:52
        obj = 0x4e2450 [AboutHardwareView]
        parent_class = 0x7ee030
        self = 0x4e2450 [AboutHardwareView]
        _tmp0_ = 0x788830 [GraniteSettings]
        _tmp1_ = 0x788830 [GraniteSettings]
        product_name_info = 0x0
        _tmp2_ = 0x52 <error: Cannot access memory at address 0x52>
        _tmp3_ = 0x7ffff7244300 <main_arena+1856> "\360B$\367\377\177"
        _tmp4_ = 0x0
        _tmp5_ = 0x430
        _tmp6_ = 0x0
        _tmp7_ = 0x7
        processor_info = 0x0
        _tmp8_ = 0x4100000000 <error: Cannot access memory at address 0x4100000000>
        _tmp9_ = 0x0
        memory_info = 0x0
        _tmp10_ = 0x7ffff7243c20 <main_arena+96> "\360", <incomplete sequence \341>
        _tmp11_ = 0xde9bf0 ""
        _tmp12_ = 0x0
        _tmp13_ = 0x0
        _tmp14_ = 0x7ffff70fbce4
        _tmp15_ = 0x0
        _tmp16_ = 0x0
        _tmp17_ = 0x0
        _tmp18_ = 0x430
        _tmp19_ = 0x44
        _tmp20_ = 0x0
        details_grid = 0x0
        _tmp21_ = 0x0
        _tmp22_ = 0x0
        _tmp49_ = 0x7ffff7fdc990
        _tmp50_ = 0x47b930
        _tmp51_ = 0x7ffff7eabb10
        _tmp52_ = 0x1
        _tmp53_ = 0x0
        _tmp54_ = 0x7fffffffd3e0
        _tmp55_ = 0x7fffec92d2b8
        _tmp56_ = 0xaee0f0
        _tmp57_ = 0
        _tmp63_ = 0x6dfe00
        _tmp64_ = 0x7fffec8fc100
        _tmp65_ = 0xd86c00 [GtkLabel]
#3  0x00007ffff7c35a75 in g_object_new_with_custom_constructor (n_params=0, params=0x0, class=0xde9c00)
    at ../gobject/gobject.c:1857
        cparams = 0x0
        cvalues = 0x0
        node = 0x0
        i = 0
        nqueue = 0x0
        newly_constructed = <optimized out>
        object = <optimized out>
        n_cparams = 0
        cvals_used = 0
        nqueue = 0x0
        object = <optimized out>
        __func__ = "g_object_new_internal"
#4  g_object_new_internal (class=class@entry=0xde9c00, params=params@entry=0x0, n_params=n_params@entry=0)
    at ../gobject/gobject.c:1937
        nqueue = 0x0
        object = <optimized out>
        __func__ = "g_object_new_internal"
#5  0x00007ffff7c36c0d in g_object_new_with_properties
    (object_type=0xda7cb0 [AboutHardwareView/GtkGrid/GtkContainer/GtkWidget/GInitiallyUnowned], n_properties=0, names=names@entry=0x0, values=values@entry=0x0) at ../gobject/gobject.c:2108
        class = 0xde9c00
        unref_class = 0xde9c00
        object = <optimized out>
        __func__ = "g_object_new_with_properties"
#6  0x00007ffff7c37531 in g_object_new (object_type=<optimized out>, first_property_name=<optimized out>)
    at ../gobject/gobject.c:1779
        object = <optimized out>
        var_args = 
            {{gp_offset = 0, fp_offset = 0, overflow_arg_area = 0x425ad0, reg_save_area = 0x7ffff7eb5551 <g_malloc0+33>}}

Attached full backstrace
switchboard-plug-about-bt.txt

@slackernetuk slackernetuk changed the title Segfault on Slackware: 0x00007ffff71e1ff1 in __strlen_avx2 () from /lib64/libc.so.6 Segfault: _tmp8_ = 0x4100000000 <error: Cannot access memory at address 0x4100000000> Nov 18, 2022
@lenemter lenemter added the Status: Confirmed Verified by someone other than the reporter label Mar 26, 2024
@ryonakano
Copy link
Contributor

@slackernetuk @lenemter
Could you tell me how to reproduce this more in detail?
Also, what is the result of the following commands?

hostnamectl hostname --pretty
hostnamectl hostname

It looks like this issue occurs if pretty_hostname is null in the following line (segfaults when trying to .length against null), but I'm not sure when it becomes null.

string hostname = system_interface.pretty_hostname;
if (hostname.length == 0) {
hostname = system_interface.static_hostname;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Confirmed Verified by someone other than the reporter
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants