Gentoo Archives: gentoo-embedded

From: Natanael Copa <mlists@××××××.org>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] uclibc "emerge sync" segfaults
Date: Thu, 05 Aug 2004 07:23:36
Message-Id: 4111E072.6050503@tanael.org
In Reply to: Re: [gentoo-embedded] uclibc "emerge sync" segfaults by Mike Frysinger
1 Mike Frysinger wrote:
2
3 >On Monday 02 August 2004 04:32 am, Natanael Copa wrote:
4 >
5 >
6 >>I just came back from a longweekend and wanted to check out what was new.
7 >>
8 >>But emerge sync segfaulted.
9 >><snip>
10 >>I guess there is a bug in libresolv in uclibc
11 >>
12 >>
13 >
14 >yeah, we've been looking into this ...
15 >i dont know if solar found anything over the weekend (i was gone), but find
16 >attached a small .c file i made to reproduce the error
17 >
18 >
19
20 This might be interesting, when running emerge in gdb:
21
22 (gdb) backtrace
23 #0 0x40044274 in PyString_FromString (
24 str=0xb5c3815b <Address 0xb5c3815b out of bounds>)
25 at Objects/stringobject.c:111
26 #1 0x4049587d in gethost_common (h=0xbffff020, addr=0xbffff040,
27 alen=16, af=2)
28 at
29 /var/tmp/portage/python-2.3.4/work/Python-2.3.4/Modules/socketmodule.c:2425
30 #2 0x40495a67 in socket_gethostbyname_ex (self=0x0, args=0x4024426c)
31 at
32 /var/tmp/portage/python-2.3.4/work/Python-2.3.4/Modules/socketmodule.c:2558
33 #3 0x400406c9 in PyCFunction_Call (func=0x4019df2c, arg=0x4024426c, kw=0x0)
34 at Objects/methodobject.c:108
35 #4 0x400686e6 in call_function (pp_stack=0xbffff130, oparg=0)
36 at Python/ceval.c:3439
37 #5 0x40066aa1 in eval_frame (f=0x805c27c) at Python/ceval.c:2116
38 #6 0x4006786d in PyEval_EvalCodeEx (co=0x40456c60, globals=0x0,
39 locals=0xffffffff, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0,
40 defcount=0, closure=0x0) at Python/ceval.c:2663
41 #7 0x40064d88 in PyEval_EvalCode (co=0x40456c60, globals=0x4015279c,
42 locals=0x4015279c) at Python/ceval.c:537
43 #8 0x4007f109 in run_node (n=0x4013a338,
44 filename=0xbffff579 "/usr/bin/emerge", globals=0x4015279c,
45 locals=0x4015279c, flags=0xbffff2b8) at Python/pythonrun.c:1267
46 #9 0x4007e448 in PyRun_SimpleFileExFlags (fp=0x8049668,
47 filename=0xbffff579 "/usr/bin/emerge", closeit=1, flags=0xbffff2b8)
48 at Python/pythonrun.c:862
49 #10 0x4007df37 in PyRun_AnyFileExFlags (fp=0x8049668,
50 filename=0xbffff579 "/usr/bin/emerge", closeit=1, flags=0xbffff2b8)
51 at Python/pythonrun.c:659
52 #11 0x400835c6 in Py_Main (argc=2, argv=0xbffff3a4) at Modules/main.c:415
53 #12 0x08048427 in main (argc=3, argv=0xbffff3a4) at Modules/python.c:23
54
55
56 But I guess it all ends up in the uclibc libresolv stuff.
57
58 - nat
59
60 --
61 gentoo-embedded@g.o mailing list