Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 401565 - x11-libs/vte-0.30.1-r3: update stop with ACCESS DENIED open_wr: /dev/mem
Summary: x11-libs/vte-0.30.1-r3: update stop with ACCESS DENIED open_wr: /dev/mem
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-30 19:34 UTC by Denis I. Polukarov
Modified: 2012-07-07 12:41 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,78.31 KB, text/plain)
2012-01-30 19:36 UTC, Denis I. Polukarov
Details
environment (environment,111.68 KB, text/plain)
2012-01-30 19:39 UTC, Denis I. Polukarov
Details
info (info,4.37 KB, text/plain)
2012-01-30 19:40 UTC, Denis I. Polukarov
Details
pqv (pqv,91 bytes, text/plain)
2012-01-30 19:40 UTC, Denis I. Polukarov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Denis I. Polukarov 2012-01-30 19:34:53 UTC
vte.c:3683: Warning: Vte: invalid annotation option: tranfer
<unknown>:: Warning: Vte: Unknown namespace for identifier 'vte_char_attributes'
vte.h:27: Warning: Vte: symbol='__VTE_VTE_H_INSIDE__': Unknown namespace for symbol '_VTE_VTE_H_INSIDE__'
vte.h:528: Warning: Vte: symbol='__VTE_VTE_H_INSIDE__': Unknown namespace for symbol '_VTE_VTE_H_INSIDE__'
ACCESS DENIED  open_wr:      /dev/mem

Reproducible: Always

Steps to Reproduce:
1. emerge =x11-libs/vte-0.30.1-r3
2.
3.
Actual Results:  
Emerge fail.

Expected Results:  
Updated vte.
Comment 1 Denis I. Polukarov 2012-01-30 19:36:17 UTC
Created attachment 300451 [details]
build.log
Comment 2 Denis I. Polukarov 2012-01-30 19:39:42 UTC
Created attachment 300453 [details]
environment
Comment 3 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-01-30 19:40:14 UTC
What version of dev-libs/gobject-introspection are you using?
Comment 4 Denis I. Polukarov 2012-01-30 19:40:19 UTC
Created attachment 300455 [details]
info
Comment 5 Denis I. Polukarov 2012-01-30 19:40:39 UTC
Created attachment 300457 [details]
pqv
Comment 6 Denis I. Polukarov 2012-01-31 06:38:00 UTC
(In reply to comment #3)
> What version of dev-libs/gobject-introspection are you using?

=dev-libs/gobject-introspection-1.30.0-r2
Comment 7 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-01-31 07:50:49 UTC
> vte.c:3683: Warning: Vte: invalid annotation option: tranfer
> <unknown>:: Warning: Vte: Unknown namespace for identifier
> 'vte_char_attributes'
> vte.h:27: Warning: Vte: symbol='__VTE_VTE_H_INSIDE__': Unknown namespace for
> symbol '_VTE_VTE_H_INSIDE__'
> vte.h:528: Warning: Vte: symbol='__VTE_VTE_H_INSIDE__': Unknown namespace for
> symbol '_VTE_VTE_H_INSIDE__'

These errors are expected and non-fatal (still need to be fixed them at some point I suppose). They will not cause the vte build to die.

> ACCESS DENIED  open_wr:      /dev/mem
> sandbox:stop  caught signal 2 in pid 27212
> Traceback (most recent call last):
>   File "/usr/bin/g-ir-scanner", line 46, in <module>
>     sys.exit(scanner_main(sys.argv))
>   File "/usr/lib/gobject-introspection/giscanner/scannermain.py", line 416, in scanner_main
>     shlibs = create_binary(transformer, options, args)
>   File "/usr/lib/gobject-introspection/giscanner/scannermain.py", line 320, in create_binary
>     gdump_parser.parse()
>   File "/usr/lib/gobject-introspection/giscanner/gdumpparser.py", line 110, in parse
>     tree = self._execute_binary_get_tree()
>   File "/usr/lib/gobject-introspection/giscanner/gdumpparser.py", line 167, in _execute_binary_get_tree
>     subprocess.check_call(args, stdout=sys.stdout, stderr=sys.stderr)
>   File "/usr/lib/python2.7/subprocess.py", line 506, in check_call
>     retcode = call(*popenargs, **kwargs)
>   File "/usr/lib/python2.7/subprocess.py", line 493, in call
>     return Popen(*popenargs, **kwargs).wait()
>   File "/usr/lib/python2.7/subprocess.py", line 1270, in wait
>     pid, sts = _eintr_retry_call(os.waitpid, self.pid, 0)
>   File "/usr/lib/python2.7/subprocess.py", line 478, in _eintr_retry_call
>     return func(*args)

Now, this is the real problem. For some unknown reason, it appears that a call to python's os.waitpid (which AFAIK is just a dumb wrapper around the C library's waitpid(2)) is trying to write to /dev/mem. I have never heard of such a problem and cannot reproduce it on my amd64 machines. Adding arm and toolchain to the CC list, hopefully they can help figure out what is going on.
Comment 8 SpanKY gentoo-dev 2012-01-31 15:42:03 UTC
that log doesn't contain the entire sandbox error.  please don't hit CTRL+C in the middle -- let the build finish.
Comment 9 Denis I. Polukarov 2012-02-01 12:50:12 UTC
(In reply to comment #8)
> that log doesn't contain the entire sandbox error.  please don't hit CTRL+C in
> the middle -- let the build finish.

about 3-4 hours build stop on:
ACCESS DENIED  open_wr:      /dev/mem
Comment 10 Pacho Ramos gentoo-dev 2012-04-01 17:35:25 UTC
Are you still suffering this on a fully updated system?
Comment 11 Denis I. Polukarov 2012-04-02 07:33:37 UTC
I see this error on many apps with introspection, and resolv its by FEATUTES="-sandbox"... :(
Comment 12 Pacho Ramos gentoo-dev 2012-04-02 13:08:28 UTC
(In reply to comment #8)
> that log doesn't contain the entire sandbox error.  please don't hit CTRL+C
> in the middle -- let the build finish.

@sandbox, Should sandbox allow /dev/mem access?
Comment 13 SpanKY gentoo-dev 2012-04-03 02:52:11 UTC
there's no reason builds should be attempting to access /dev/mem
Comment 14 Denis I. Polukarov 2012-04-03 06:48:46 UTC
/dev/mem crw-r----- 1 root kmem
Comment 15 Pacho Ramos gentoo-dev 2012-06-16 10:51:58 UTC
Are you still suffering this problem?
Comment 16 Pacho Ramos gentoo-dev 2012-07-07 12:41:57 UTC
(In reply to comment #15)
> Are you still suffering this problem?