trinity.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* current trinity gives glibc errors
@ 2013-12-20 14:51 Toralf Förster
  2013-12-20 19:27 ` Dave Jones
  0 siblings, 1 reply; 9+ messages in thread
From: Toralf Förster @ 2013-12-20 14:51 UTC (permalink / raw)
  To: trinity

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

When I run latest trinity at a stable 32 Bit Gentoo Linux user mode linux image I do now get :

trinity -q -N 10000 -C 2 -x mremap

...

[child0:1763] init_module (128) returned ENOSYS, marking as inactive.
[child0:1763] ipc (117) returned ENOSYS, marking as inactive.
[main] Random reseed: 3211420801
[child0:1765] ioperm (101) returned ENOSYS, marking as inactive.
[child0:1765] set_robust_list (311) returned ENOSYS, marking as inactive.
[child0:1765] move_pages (317) returned ENOSYS, marking as inactive.
*** glibc detected *** trinity: double free or corruption (out): 0x085bc000 ***
======= Backtrace: =========
/lib/libc.so.6(+0x76552)[0x400a0552]
trinity[0x805930e]
trinity[0x8052085]
trinity[0x805508c]
trinity[0x804af91]
trinity[0x804ead5]
trinity[0x804a605]
/lib/libc.so.6(__libc_start_main+0xf5)[0x40046ad5]
trinity[0x804ab15]
======= Memory map: ========
00100000-00102000 r-xp 00000000 00:00 0 
08048000-0806d000 r-xp 00000000 62:00 88380      /usr/bin/trinity
0806d000-0806e000 r--p 00024000 62:00 88380      /usr/bin/trinity
0806e000-080cb000 rw-p 00025000 62:00 88380      /usr/bin/trinity
080cb000-084eb000 rw-p 00000000 00:00 0          [heap]
084eb000-085b5000 rw-p 00000000 00:00 0          [heap]
085b5000-08783000 rw-p 00000000 00:00 0          [heap]
40000000-40020000 r-xp 00000000 62:00 88339      /lib/ld-2.16.so
40020000-40021000 r--p 0001f000 62:00 88339      /lib/ld-2.16.so
40021000-40022000 rw-p 00020000 62:00 88339      /lib/ld-2.16.so
40022000-40026000 rw-p 00000000 00:00 0 
40026000-40028000 rw-s 00000000 00:04 83577      /dev/zero (deleted)
40028000-40029000 rw-p 00000000 00:00 0 
40029000-4002a000 rw-p 00000000 00:00 0 
4002a000-401cb000 r-xp 00000000 62:00 88343      /lib/libc-2.16.so
401cb000-401cc000 ---p 001a1000 62:00 88343      /lib/libc-2.16.so
401cc000-401ce000 r--p 001a1000 62:00 88343      /lib/libc-2.16.so
401ce000-401cf000 rw-p 001a3000 62:00 88343      /lib/libc-2.16.so
401cf000-401d3000 rw-p 00000000 00:00 0 
401d3000-4022a000 rw-s 00000000 00:04 83575      /dev/zero (deleted)
4022a000-40248000 ---s 00000000 00:04 83576      /dev/zero (deleted)
40248000-40254000 rw-s 0001e000 00:04 83576      /dev/zero (deleted)
40254000-40272000 ---s 0002a000 00:04 83576      /dev/zero (deleted)
40272000-40274000 r--s 00000000 00:04 83578      /dev/zero (deleted)
40274000-40276000 -w-s 00000000 00:04 83579      /dev/zero (deleted)
40276000-40376000 rw-s 00000000 00:04 83580      /dev/zero (deleted)
40376000-40476000 r--s 00000000 00:04 83581      /dev/zero (deleted)
40476000-40576000 -w-s 00000000 00:04 83582      /dev/zero (deleted)
40576000-40776000 rw-s 00000000 00:04 83583      /dev/zero (deleted)
40776000-40976000 r--s 00000000 00:04 83584      /dev/zero (deleted)
40976000-40b76000 -w-s 00000000 00:04 83585      /dev/zero (deleted)
40b76000-40f76000 rw-s 00000000 00:04 83586      /dev/zero (deleted)
40f76000-41376000 r--s 00000000 00:04 83587      /dev/zero (deleted)
41376000-41776000 -w-s 00000000 00:04 83588      /dev/zero (deleted)
41776000-42176000 rw-s 00000000 00:04 83589      /dev/zero (deleted)
42176000-42b76000 r--s 00000000 00:04 83590      /dev/zero (deleted)
42b76000-43576000 -w-s 00000000 00:04 83591      /dev/zero (deleted)
4357d000-43597000 r-xp 00000000 62:00 85032      /usr/lib/gcc/i686-pc-linux-gnu/4.7.3/libgcc_s.so.1
43597000-43598000 r--p 00019000 62:00 85032      /usr/lib/gcc/i686-pc-linux-gnu/4.7.3/libgcc_s.so.1
43598000-43599000 rw-p 0001a000 62:00 85032      /usr/lib/gcc/i686-pc-linux-gnu/4.7.3/libgcc_s.so.1
bf7e3000-bf804000 rw-p 00000000 00:00 0
[main] Random reseed: 3271769164

- -- 
MfG/Sincerely
Toralf Förster
pgp finger print:1A37 6F99 4A9D 026F 13E2 4DCF C4EA CDDE 0076 E94E
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iF4EAREIAAYFAlK0WYUACgkQxOrN3gB26U4+IwD+IqBcRpU9nQud5F1omd0EPWki
Hqvx4eBlZcKgJg19zwQA/1ypItkbJ/qTw6aQtrb/6U832kd7BF4mUfBiWwELD0O2
=0UZq
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: current trinity gives glibc errors
  2013-12-20 14:51 current trinity gives glibc errors Toralf Förster
@ 2013-12-20 19:27 ` Dave Jones
  2013-12-20 20:23   ` Toralf Förster
  2013-12-20 20:32   ` Toralf Förster
  0 siblings, 2 replies; 9+ messages in thread
From: Dave Jones @ 2013-12-20 19:27 UTC (permalink / raw)
  To: Toralf Förster; +Cc: trinity

On Fri, Dec 20, 2013 at 03:51:49PM +0100, Toralf Förster wrote:
 > -----BEGIN PGP SIGNED MESSAGE-----
 > Hash: SHA256
 > 
 > When I run latest trinity at a stable 32 Bit Gentoo Linux user mode linux image I do now get :
 > 
 > trinity -q -N 10000 -C 2 -x mremap
 > 
 > ...
 > 
 > [child0:1763] init_module (128) returned ENOSYS, marking as inactive.
 > [child0:1763] ipc (117) returned ENOSYS, marking as inactive.
 > [main] Random reseed: 3211420801
 > [child0:1765] ioperm (101) returned ENOSYS, marking as inactive.
 > [child0:1765] set_robust_list (311) returned ENOSYS, marking as inactive.
 > [child0:1765] move_pages (317) returned ENOSYS, marking as inactive.
 > *** glibc detected *** trinity: double free or corruption (out): 0x085bc000 ***
 > ======= Backtrace: =========
 > /lib/libc.so.6(+0x76552)[0x400a0552]
 > trinity[0x805930e]
 > trinity[0x8052085]
 > trinity[0x805508c]
 > trinity[0x804af91]
 > trinity[0x804ead5]
 > trinity[0x804a605]
 > /lib/libc.so.6(__libc_start_main+0xf5)[0x40046ad5]
 > trinity[0x804ab15]

If you could narrow down which syscalls are causing this it would help a lot.
scripts/find.sh might give you some ideas.

	Dave

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: current trinity gives glibc errors
  2013-12-20 19:27 ` Dave Jones
@ 2013-12-20 20:23   ` Toralf Förster
  2013-12-20 20:32   ` Toralf Förster
  1 sibling, 0 replies; 9+ messages in thread
From: Toralf Förster @ 2013-12-20 20:23 UTC (permalink / raw)
  To: Dave Jones; +Cc: trinity

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 12/20/2013 08:27 PM, Dave Jones wrote:
> If you could narrow down which syscalls are causing this it would
> help a lot. scripts/find.sh might give you some ideas.
> 
> Dave
will do - where's the variable $i (line 32 and 33) defined in find.sh ?

- -- 
MfG/Sincerely
Toralf Förster
pgp finger print:1A37 6F99 4A9D 026F 13E2 4DCF C4EA CDDE 0076 E94E
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iF4EAREIAAYFAlK0p0QACgkQxOrN3gB26U5b6wD/bedr1F1Dk3Kzvtdjb2gZsV+Q
iU7ulQyaINKX3+ZHt5kA/jTFU1HmnJhQ2fO/s4HZTOCML1FDzp7BQsMRHxlpEOvW
=L3GK
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: current trinity gives glibc errors
  2013-12-20 19:27 ` Dave Jones
  2013-12-20 20:23   ` Toralf Förster
@ 2013-12-20 20:32   ` Toralf Förster
  2013-12-20 20:50     ` Dave Jones
  1 sibling, 1 reply; 9+ messages in thread
From: Toralf Förster @ 2013-12-20 20:32 UTC (permalink / raw)
  To: Dave Jones; +Cc: trinity

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 12/20/2013 08:27 PM, Dave Jones wrote:
> On Fri, Dec 20, 2013 at 03:51:49PM +0100, Toralf Förster wrote:
>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
>> 
>> When I run latest trinity at a stable 32 Bit Gentoo Linux user
>> mode linux image I do now get :
>> 
>> trinity -q -N 10000 -C 2 -x mremap
>> 
>> ...
>> 
>> [child0:1763] init_module (128) returned ENOSYS, marking as
>> inactive. [child0:1763] ipc (117) returned ENOSYS, marking as
>> inactive. [main] Random reseed: 3211420801 [child0:1765] ioperm
>> (101) returned ENOSYS, marking as inactive. [child0:1765]
>> set_robust_list (311) returned ENOSYS, marking as inactive. 
>> [child0:1765] move_pages (317) returned ENOSYS, marking as
>> inactive. *** glibc detected *** trinity: double free or
>> corruption (out): 0x085bc000 *** ======= Backtrace: ========= 
>> /lib/libc.so.6(+0x76552)[0x400a0552] trinity[0x805930e] 
>> trinity[0x8052085] trinity[0x805508c] trinity[0x804af91] 
>> trinity[0x804ead5] trinity[0x804a605] 
>> /lib/libc.so.6(__libc_start_main+0xf5)[0x40046ad5] 
>> trinity[0x804ab15]
> 
> If you could narrow down which syscalls are causing this it would
> help a lot. scripts/find.sh might give you some ideas.
> 
> Dave
> 
> 
It is this :

trinity -q -l off -N 1 -c move_pages


- -- 
MfG/Sincerely
Toralf Förster
pgp finger print:1A37 6F99 4A9D 026F 13E2 4DCF C4EA CDDE 0076 E94E
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iF4EAREIAAYFAlK0qV8ACgkQxOrN3gB26U6gUwD/WSN2Cvc/pKt1JmDDv4nPreCs
5saJoP1QSw77PWP5xogBAImklXwHsLqlTA/ASJDQ250kzuwXAC5NzDMl0D5tOfeq
=ssCC
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: current trinity gives glibc errors
  2013-12-20 20:32   ` Toralf Förster
@ 2013-12-20 20:50     ` Dave Jones
  2013-12-20 20:59       ` Toralf Förster
                         ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Dave Jones @ 2013-12-20 20:50 UTC (permalink / raw)
  To: Toralf Förster; +Cc: trinity

On Fri, Dec 20, 2013 at 09:32:31PM +0100, Toralf Förster wrote:
 > -----BEGIN PGP SIGNED MESSAGE-----
 > Hash: SHA256
 > 
 > On 12/20/2013 08:27 PM, Dave Jones wrote:
 > > On Fri, Dec 20, 2013 at 03:51:49PM +0100, Toralf Förster wrote:
 > >> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
 > >> 
 > >> When I run latest trinity at a stable 32 Bit Gentoo Linux user
 > >> mode linux image I do now get :
 > >> 
 > >> trinity -q -N 10000 -C 2 -x mremap
 > >> 
 > It is this :
 > 
 > trinity -q -l off -N 1 -c move_pages

Are you running as root ?  Probably best to just -x it for now.

sanitise_move_pages could use rewriting tbh, to use the new maps structs.
I'll look at doing that in the new year.

	Dave

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: current trinity gives glibc errors
  2013-12-20 20:50     ` Dave Jones
@ 2013-12-20 20:59       ` Toralf Förster
  2013-12-28 17:20       ` Toralf Förster
  2014-02-21 21:28       ` Toralf Förster
  2 siblings, 0 replies; 9+ messages in thread
From: Toralf Förster @ 2013-12-20 20:59 UTC (permalink / raw)
  To: Dave Jones; +Cc: trinity

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 12/20/2013 09:50 PM, Dave Jones wrote:
> Are you running as root ?  Probably best to just -x it for now.
> 
no - always as common user w/o special rights - but will do it
> sanitise_move_pages could use rewriting tbh, to use the new maps
> structs. I'll look at doing that in the new year.
thx :-)

- -- 
MfG/Sincerely
Toralf Förster
pgp finger print:1A37 6F99 4A9D 026F 13E2 4DCF C4EA CDDE 0076 E94E
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iF4EAREIAAYFAlK0r6QACgkQxOrN3gB26U73kQD+K3fC7dXjjobKKhqyvlT8sJXJ
QmAZeiOHNfiRneOY65sA/jE8fE/hcvIeX2AkA+IAo1zejb8UTYpgS8qwzKbv7xZw
=EwGM
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: current trinity gives glibc errors
  2013-12-20 20:50     ` Dave Jones
  2013-12-20 20:59       ` Toralf Förster
@ 2013-12-28 17:20       ` Toralf Förster
  2014-02-21 21:28       ` Toralf Förster
  2 siblings, 0 replies; 9+ messages in thread
From: Toralf Förster @ 2013-12-28 17:20 UTC (permalink / raw)
  To: Dave Jones; +Cc: trinity

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 12/20/2013 09:50 PM, Dave Jones wrote:
> On Fri, Dec 20, 2013 at 09:32:31PM +0100, Toralf Förster wrote:
>  > -----BEGIN PGP SIGNED MESSAGE-----
>  > Hash: SHA256
>  > 
>  > On 12/20/2013 08:27 PM, Dave Jones wrote:
>  > > On Fri, Dec 20, 2013 at 03:51:49PM +0100, Toralf Förster wrote:
>  > >> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
>  > >> 
>  > >> When I run latest trinity at a stable 32 Bit Gentoo Linux user
>  > >> mode linux image I do now get :
>  > >> 
>  > >> trinity -q -N 10000 -C 2 -x mremap
>  > >> 
>  > It is this :
>  > 
>  > trinity -q -l off -N 1 -c move_pages
> 
> Are you running as root ?  Probably best to just -x it for now.
> 
> sanitise_move_pages could use rewriting tbh, to use the new maps structs.
> I'll look at doing that in the new year.
> 
> 	Dave
> 
> 
With latest git tree 1.1-946-g7f333fd I cannot blame a single syscall for emitting the glibc error. I tried it with this command line (as a common user) :
$> for sc in `trinity -L | grep entrypoint | grep -v AVOID | awk '{ print $3 }' | sort -u`; do echo $sc; trinity -q -c $sc -C2 -N 9999 2>&1 | grep -B 4 -A 4 libc; sleep 2; don


So, it is either a combination of 2 or more syscalls (and ofc ML might be a culprit too).

BTW, the tag "v1.3" seems to be a light weight tag, right ? Because git describe" still refers to v1.1-..."

- -- 
MfG/Sincerely
Toralf Förster
pgp finger print:1A37 6F99 4A9D 026F 13E2 4DCF C4EA CDDE 0076 E94E
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iF4EAREIAAYFAlK/CEQACgkQxOrN3gB26U4v8QD/d2vnlF6UiT/1+04p7b1uvqxS
zWYa1hm4gz5x8oX6/64A/00qgnL3NwgAkia61ENPPLe4pqzYONslgm8vjqby0Kjy
=7FS7
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: current trinity gives glibc errors
  2013-12-20 20:50     ` Dave Jones
  2013-12-20 20:59       ` Toralf Förster
  2013-12-28 17:20       ` Toralf Förster
@ 2014-02-21 21:28       ` Toralf Förster
  2014-02-21 21:52         ` Dave Jones
  2 siblings, 1 reply; 9+ messages in thread
From: Toralf Förster @ 2014-02-21 21:28 UTC (permalink / raw)
  To: Dave Jones; +Cc: trinity

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 12/20/2013 09:50 PM, Dave Jones wrote:
> On Fri, Dec 20, 2013 at 09:32:31PM +0100, Toralf Förster wrote:
>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
>> 
>> On 12/20/2013 08:27 PM, Dave Jones wrote:
>>> On Fri, Dec 20, 2013 at 03:51:49PM +0100, Toralf Förster
>>> wrote:
>>>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
>>>> 
>>>> When I run latest trinity at a stable 32 Bit Gentoo Linux
>>>> user mode linux image I do now get :
>>>> 
>>>> trinity -q -N 10000 -C 2 -x mremap
>>>> 
>> It is this :
>> 
>> trinity -q -l off -N 1 -c move_pages
> 
> Are you running as root ?  Probably best to just -x it for now.
> 
> sanitise_move_pages could use rewriting tbh, to use the new maps
> structs. I'll look at doing that in the new year.
> 
since today (with 1.1-1102-g4914e9f) it works now again - thx


- -- 
MfG/Sincerely
Toralf Förster
pgp finger print:1A37 6F99 4A9D 026F 13E2 4DCF C4EA CDDE 0076 E94E
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iF4EAREIAAYFAlMHxQAACgkQxOrN3gB26U6JmQD+MIlNwsJVfDUHNzVpPp4O3+mg
lk5ZawRphM124rOFsEUA/30dKQr57nJOLmtppRDPHgqWNkfSrJHn0GxISAhifrjG
=l5xU
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: current trinity gives glibc errors
  2014-02-21 21:28       ` Toralf Förster
@ 2014-02-21 21:52         ` Dave Jones
  0 siblings, 0 replies; 9+ messages in thread
From: Dave Jones @ 2014-02-21 21:52 UTC (permalink / raw)
  To: Toralf Förster; +Cc: trinity

On Fri, Feb 21, 2014 at 10:28:32PM +0100, Toralf Förster wrote:
 
 > >>>> When I run latest trinity at a stable 32 Bit Gentoo Linux
 > >>>> user mode linux image I do now get :
 > >>>> 
 > >>>> trinity -q -N 10000 -C 2 -x mremap
 > >>>> 
 > >> It is this :
 > >> 
 > >> trinity -q -l off -N 1 -c move_pages
 > > 
 > > Are you running as root ?  Probably best to just -x it for now.
 > > 
 > > sanitise_move_pages could use rewriting tbh, to use the new maps
 > > structs. I'll look at doing that in the new year.
 > > 
 > since today (with 1.1-1102-g4914e9f) it works now again - thx

good to know. I've still got a bunch of other backtraces to dig through,
but that's going to have to wait until next week.

	Dave

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-02-21 21:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-20 14:51 current trinity gives glibc errors Toralf Förster
2013-12-20 19:27 ` Dave Jones
2013-12-20 20:23   ` Toralf Förster
2013-12-20 20:32   ` Toralf Förster
2013-12-20 20:50     ` Dave Jones
2013-12-20 20:59       ` Toralf Förster
2013-12-28 17:20       ` Toralf Förster
2014-02-21 21:28       ` Toralf Förster
2014-02-21 21:52         ` Dave Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).