Hi folks,
On Mon, Nov 04, 2013 at 02:50:58AM +0900, Izumi Tsutsui wrote:
> If I copy sessionstore.js from NetBSD (generated by pkgsrc firefox 24)
> to ubuntu, firefox 24 on ubuntu can load it and restore all tabs properly.
>
> Linux strace -f on firefox on ubuntu shows:
> ---
> [pid 16346] gettimeofday({1383050120, 536085}, NULL) = 0
> [pid 16346]
> open("/home/tsutsui/.mozilla/firefox/a4po3i17.default/sessionstore.js",
> O_RDONLY) = 33
> [pid 16346] fstat64(33, {st_mode=S_IFREG|0600, st_size=302226, ...}) = 0
> [pid 16346] mmap2(NULL, 1048576, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xa7000000
> [pid 16346] read(33, <unfinished ...>
> :
> [pid 16346] <... read resumed> "{\"windows\":[{\"tabs\":[{\"entries\":"...,
> 302226) = 302226
> ---
> so it tries open(2), fstat(2), mmap(2) and read(2) sessionstore.js.
>
> With pkgsrc firefox-24 ktrace/kdump shows:
> ---
> 1336 11 firefox RET __gettimeofday50 0
> 1336 11 firefox CALL open(0xb1fdace0,0,0x180)
> 1336 11 firefox NAMI
> "/home/tsutsui/.mozilla/firefox/1xub1hun.default/sessionstore.js"
> 1336 11 firefox RET open 37/0x25
> 1336 11 firefox CALL __fstat50(0x25,0xb25fdb20)
> 1336 11 firefox RET __fstat50 0
> 1336 11 firefox CALL close(0x25)
> 1336 11 firefox RET close 0
> ---
> so it looks some checks against results of fstat(2) fail.
What would it take to make NetBSD's ktrace output readable like the linux one?
is there a reason why this raw unprocessed version is dumped? Or is it some
convention? Can't it be mixed?
With regards,
Reinoud
Attachment:
pgpWu7Mxijee6.pgp
Description: PGP signature