Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 180604 - sys-apps/vbetool-0.7 - vbestate save segfaults on x86_64
Summary: sys-apps/vbetool-0.7 - vbestate save segfaults on x86_64
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-01 23:59 UTC by Jonathan Briggs
Modified: 2008-07-14 03:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Briggs 2007-06-01 23:59:15 UTC
I cannot suspend and resume my laptop with vbetool 0.7.


Reproducible: Always

Steps to Reproduce:
1. vbetool vbestate save
Actual Results:  
When run under gdb I get this backtrace:

(gdb) run vbestate save
Starting program: /usr/sbin/vbetool vbestate save
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7fff2f3fe000
Get video state buffer size failed
Allocated buffer at 0x20000 (base is 0x0)
ES: 0x2000 EBX: 0x0000

Program received signal SIGSEGV, Segmentation fault.
0x0000000000424cd7 in rdb (addr=21647) at sys.c:234
234             val = *(u8*)(M.mem_base + addr);
(gdb) bt
#0  0x0000000000424cd7 in rdb (addr=21647) at sys.c:234
#1  0x0000000000403ab7 in fetch_data_byte (offset=20623) at decode.c:308
#2  0x00000000004184c3 in x86emuOp_add_byte_RM_R (op1=<value optimized out>) at ops.c:115
#3  0x000000000040497c in X86EMU_exec () at decode.c:123
#4  0x0000000000402a50 in real_call (registers=0x7fff2f38ddc0) at thunk.c:202
#5  0x0000000000402b6a in LRMI_int (num=16, registers=0x7fff2f38ddc0) at thunk.c:225
#6  0x0000000000401e2b in __save_state (psize=0x7fff2f38de24) at vbetool.c:334
#7  0x0000000000401e91 in save_state () at vbetool.c:347
#8  0x00000000004014e3 in main (argc=3, argv=0x7fff2f38df58) at vbetool.c:72
#9  0x000000310f61d944 in __libc_start_main (main=0x401475 <main>, argc=3, ubp_av=0x7fff2f38df58, 
    init=<value optimized out>, fini=<value optimized out>, rtld_fini=<value optimized out>, 
    stack_end=0x7fff2f38df48) at libc-start.c:238
#10 0x0000000000401369 in _start ()


Expected Results:  
Should write state to output.

While searching the web I saw mentions of similar problems in Ubuntu and Fedora.  Maybe one of those projects has a fixed version.

The lspci -vvv of the nvidia chip in question.

01:00.0 VGA compatible controller: nVidia Corporation NV17 [GeForce4 420 Go 32M] (rev a3) (prog-if 00 [VGA])
        Subsystem: Hewlett-Packard Company Unknown device 006d
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
        Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
        Latency: 64 (1250ns min, 250ns max)
        Interrupt: pin A routed to IRQ 11
        Region 0: Memory at e2000000 (32-bit, non-prefetchable) [size=16M]
        Region 1: Memory at f0000000 (32-bit, prefetchable) [size=128M]
        Region 2: Memory at f8000000 (32-bit, prefetchable) [size=512K]
        [virtual] Expansion ROM at f8080000 [disabled] [size=128K]
        Capabilities: [60] Power Management version 2
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [44] AGP version 2.0
                Status: RQ=32 Iso- ArqSz=0 Cal=0 SBA- ITACoh- GART64- HTrans- 64bit- FW+ AGP3- Rate=x1,x2,x4
                Command: RQ=1 ArqSz=0 Cal=0 SBA- AGP- GART64- 64bit- FW- Rate=<none>
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2007-06-02 04:11:26 UTC
oops
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-07-14 03:42:20 UTC
retest with 1.0