On Tue, Jul 04, 2006 at 08:43:51PM -0400, Jason Lunz wrote:
> On Wed, Jul 05, 2006 at 01:29:30AM +0200, Pavel Machek wrote:
> > But we are running them under emulator, so that should not be a
> > problem... and they are probably 16-bit x86 instructions, anyway.
> 
> yes, I see. That emulator seems be causing the segfaults when I use -s:
> 
> # gdb s2ram
> GNU gdb 6.4.90-debian
> 
> (gdb) run -f -s
> Starting program: /home/lunz/suspend-0.2/s2ram -f -s
> Switching from vt7 to vt1
> Calling save_state
> Get video state buffer size failed
> Allocated buffer at 0x20000 (base is 0x0)
> ES: 0x2000 EBX: 0x0000
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x0000000000424c4f in rdb (addr=21647) at sys.c:234
> 234             val = *(u8*)(M.mem_base + addr);
> (gdb) bt
> #0  0x0000000000424c4f in rdb (addr=21647) at sys.c:234
> #1  0x00000000004038f7 in fetch_data_byte (offset=20623) at decode.c:308
> #2  0x00000000004181f3 in x86emuOp_add_byte_RM_R (op1=<value optimized out>) 
> at ops.c:115
> #3  0x00000000004047b0 in X86EMU_exec () at decode.c:123
> #4  0x000000000040206e in real_call ()
> #5  0x0000000000402b5a in __save_state ()
> #6  0x000000000040194e in s2ram_hacks () at s2ram.c:176
> #7  0x0000000000401bcf in main (argc=<value optimized out>, argv=<value 
> optimized out>)
>     at s2ram.c:360
> 
> 
> I don't have time to look into this any further right now, but this
> might give someone a hint.

I'll check this on an amd64 machine, i think i have one that also needs
-p -s, but IIRC this worked.

Something worth a try would be to use plain vbetool (there is also a newer
vbetool available for ubuntu than the code base included in s2ram) if it
happens there also.

The "Get video state buffer size failed" adn "base is 0x0" looks suspicious
to me.

So if "vbetool vbestate save > /tmp/foo" works on this machine, but s2ram
fails in __save_state, something is wrong with s2ram...
-- 
Stefan Seyfried                     | "Please, just tell people
QA / R&D Team Mobile Devices        |               to use KDE."
SUSE LINUX Products GmbH, Nürnberg  |          -- Linus Torvalds

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Suspend-devel mailing list
Suspend-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/suspend-devel

Reply via email to