Bugzilla – Bug 136070
sysp crash
Last modified: 2005-11-30 14:28:21 UTC
Starting program: /usr/sbin/sysp -s xstuff Program received signal SIGSEGV, Segmentation fault. 0x400000000009b661 in vesaBIOS () (gdb) bt #0 0x400000000009b661 in vesaBIOS () #1 0x40000000000789e0 in ScanXStuff::Scan () #2 0x40000000000100b0 in ScanModule () #3 0x4000000000010b40 in main () #4 0x20000000005920f0 in __libc_start_main (main=0, argc=Cannot access memory at address 0x0 ) at libc-start.c:209 #5 0x4000000000008640 in _start ()
hd_list returns NULL.
Hmm, if you call hwinfo --vbe does this produce any usefull result ? by the way I tried to test on brouwer which causes the machine to lock up a few weeks ago this doesn't happen. I'm sorry
I think I found the bug: vbios.c hd = hd_list(hd_data, hw_vbe, 1, NULL) if (!hd->detail || hd->detail->type != hd_detail_bios) { ... } if hd is null the code above will crash. I added hd = hd_list(hd_data, hw_vbe, 1, NULL) if (! hd) { return 0; } the return code from the function is handled correctly