[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Linux-ia64] libgmp3 problem on IA64 (fwd)

From: Duraid Madina
Subject: [Linux-ia64] libgmp3 problem on IA64 (fwd)
Date: Thu, 26 Jul 2001 09:40:12 +1000 (EST)

Anyone have any comments on this?


----- Forwarded message from Eric Gillespie, Jr. -----

>From address@hidden  Thu Jul 26 09:35:01 2001
Delivered-To: address@hidden
From: "Eric Gillespie, Jr." <address@hidden>
To: address@hidden, address@hidden
Message-ID: <address@hidden>
Mail-Followup-To: address@hidden, address@hidden
References: <address@hidden>
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <address@hidden>; from address@hidden on Mon, Jul 23, 2001 at 
12:40:59AM -0700
Subject: [Linux-ia64] libgmp3 problem on IA64
Sender: address@hidden
Errors-To: address@hidden
X-BeenThere: address@hidden
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:address@hidden>
List-Post: <mailto:address@hidden>
List-Subscribe: <http://lists.linuxia64.org/lists/listinfo/linux-ia64>,
List-Id: Linux Kernel Discussions on the IA-64 Platform 
List-Unsubscribe: <http://lists.linuxia64.org/lists/listinfo/linux-ia64>,
List-Archive: <http://lists.linuxia64.org/archives//linux-ia64/>
Date: Wed, 25 Jul 2001 18:29:26 -0500

For the past couple days i have been investigating an odd segfault in
Sawfish.  For some reason, some people were not seeing it, but once it
starts, it is perfectly reproducable, even after eliminating any state
Sawfish saves (Unix domain socket, configuration files, etc.).

The crash only occurs when using session management; it doesn't matter
if you use xsm or gnome-session.  I know the problem is in GMP (the
GNU MultiPrecision library), but i think i'm in over my head at this
point.  Can anyone help?

I've tracked the crash down to the rep_print_number_to_string function
in librep-0.14/src (rep is the extension language used by Sawfish),
show below.  More debugging later on showed me that the crash happens
in libgmp3-3.1.1/mpn/get_str.c, at the very end of mpn_get_str(),
right where you'll find this crap:

while (s != str)
  *--s = 0;

Anyway, here's the tail end of one of my gdb sessions.

(gdb) break numbers.c:2773
Breakpoint 1 at 0x20000000000c3530: file numbers.c, line 2773.
(gdb) cont

Breakpoint 1, Fnumber_to_string (z=3984315712182462, radix=146)
    at numbers.c:2773
2773        out = rep_print_number_to_string (z, rep_INT (radix), -1);
(gdb) step
rep_print_number_to_string (obj=3984315712182462, radix=36, prec=-1)
    at numbers.c:1091
1091        char *out = 0;
(gdb) next
1093        if (!rep_NUMERICP (obj))
1101            if (radix == 10)
1103            else if (radix == 16)
1105            else if (radix == 8)
1110                obj = promote_to (obj, rep_NUMBER_BIGNUM);
1111                goto do_bignum;
1127            out = mpz_get_str (0, radix, rep_NUMBER(obj,z));
(gdb) step

Program received signal SIGSEGV, Segmentation fault.
0x20000000002dad51 in __gmpn_get_str () from /usr/lib/libgmp.so.3
Single stepping until exit from function __gmpn_get_str, 
which has no line number information.

Eric Gillespie, Jr. <*> address@hidden
Software Developer
Progeny Linux Systems - http://progeny.com
"I don't know what a Sawfish Window Manager is."

Linux-IA64 mailing list

----- End of forwarded message from Eric Gillespie, Jr. -----

reply via email to

[Prev in Thread] Current Thread [Next in Thread]