Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* kdat and Alpha machines
@ 1998-08-27  4:42 Brian E.W. Wood
  1998-08-27 16:36 ` Steve Frampton
  0 siblings, 1 reply; 8+ messages in thread
From: Brian E.W. Wood @ 1998-08-27  4:42 UTC (permalink / raw)
  To: axp-list


I have found a program, kdat, which is a great backup tool. I use it on an
Intel machine at work and like it a lot.

So, I tried to compile and run it on my alpha at home. It compiles OK but
segfaults when run. I re-compiled with debugging enabled and ran it with gdb
with the following result:

--------------

(gdb) run
Starting program: /usr/src/kdat-1.99b/kdat/./kdat

Program received signal SIGSEGV, Segmentation fault.
0x0 in ?? ()
Current language:  auto; currently c
(gdb) where
#0  0x0 in ?? ()
#1  0x15556668220 in _IO_fclose (fp=0x1201bca70) at iofclose.c:44
#2  0x15556668220 in _IO_fclose (fp=Cannot access memory at address 0x8.
) at iofclose.c:44
Cannot access memory at address 0x40. 

--------------

I sent this output to the author (who is very cooperative) but it didn't mean
anything to him. There is no iofclose.c anywhere on my system so I am at a loss
as to where to look for the problem (library routine?). Obviously it is probably
a 32/64 bit thing but I do not know where to go from here.

Any advice would be appreciated.

The kdat code can be had from:

http://sunsite.auc.dk/qweb/kdat/

Like I said it seems a great backup tool, and would likely be useful to
anbybody running KDE on an Alpha if it could be made to work.

Thanks as always.

---
Brian E.W. Wood  beww@intac.com


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

* Re: kdat and Alpha machines
@ 1998-08-27 14:53 Greg Lindahl
  1998-08-27 16:03 ` Brian E.W. Wood
  0 siblings, 1 reply; 8+ messages in thread
From: Greg Lindahl @ 1998-08-27 14:53 UTC (permalink / raw)
  To: beww; +Cc: axp-list

> So, I tried to compile and run it on my alpha at home. It compiles OK but
> segfaults when run. I re-compiled with debugging enabled and ran it with gdb
> with the following result:
> 
> --------------
> 
> (gdb) run
> Starting program: /usr/src/kdat-1.99b/kdat/./kdat
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x0 in ?? ()
> Current language:  auto; currently c
> (gdb) where
> #0  0x0 in ?? ()
> #1  0x15556668220 in _IO_fclose (fp=0x1201bca70) at iofclose.c:44
> #2  0x15556668220 in _IO_fclose (fp=Cannot access memory at address 0x8.
> ) at iofclose.c:44
> Cannot access memory at address 0x40. 

You didn't bother to say that you were using RH 5.0 and C++.

There is a known botch in the libio library for RH 5.0 and C++ that
any C++ program dumps core. It was never fixed, but you can either
install egcs or upgrade to RH 5.1

-- g


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

* Re: kdat and Alpha machines
  1998-08-27 14:53 kdat and Alpha machines Greg Lindahl
@ 1998-08-27 16:03 ` Brian E.W. Wood
  0 siblings, 0 replies; 8+ messages in thread
From: Brian E.W. Wood @ 1998-08-27 16:03 UTC (permalink / raw)
  To: axp-list


On 27-Aug-98 Greg Lindahl wrote:
>> So, I tried to compile and run it on my alpha at home. It compiles OK but
>> segfaults when run. I re-compiled with debugging enabled and ran it with gdb
>> with the following result:
>> 
>> --------------
>> 
>> (gdb) run
>> Starting program: /usr/src/kdat-1.99b/kdat/./kdat
>> 
>> Program received signal SIGSEGV, Segmentation fault.
>> 0x0 in ?? ()
>> Current language:  auto; currently c
>> (gdb) where
>> #0  0x0 in ?? ()
>> #1  0x15556668220 in _IO_fclose (fp=0x1201bca70) at iofclose.c:44
>> #2  0x15556668220 in _IO_fclose (fp=Cannot access memory at address 0x8.
>> ) at iofclose.c:44
>> Cannot access memory at address 0x40. 
> 
> You didn't bother to say that you were using RH 5.0 and C++.
> 
> There is a known botch in the libio library for RH 5.0 and C++ that
> any C++ program dumps core. It was never fixed, but you can either
> install egcs or upgrade to RH 5.1

Sorry, I should have specified that I was running RH 5.0 with egcs 1.0.3a. This
compiler has compiled all of qt and kde for me with no problems. Running
qt-1.33 and KDE version 1.0.


---
Brian E.W. Wood  beww@intac.com


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

* Re: kdat and Alpha machines
  1998-08-27  4:42 Brian E.W. Wood
@ 1998-08-27 16:36 ` Steve Frampton
  0 siblings, 0 replies; 8+ messages in thread
From: Steve Frampton @ 1998-08-27 16:36 UTC (permalink / raw)
  To: axp-list

On Thu, 27 Aug 1998, Brian E.W. Wood wrote:

> I have found a program, kdat, which is a great backup tool. I use it on an
> Intel machine at work and like it a lot.

I'll second that.

> Like I said it seems a great backup tool, and would likely be useful to
> anbybody running KDE on an Alpha if it could be made to work.

I'll second that as well!

--------------< LINUX: The choice of a GNU generation. >--------------
Steve Frampton  <3srf@qlink.queensu.ca>  http://qlink.queensu.ca/~3srf


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

* Re: kdat and Alpha machines
@ 1998-08-27 16:39 Greg Lindahl
  1998-08-27 17:20 ` Wes Bauske
  1998-08-27 17:26 ` Brian E.W. Wood
  0 siblings, 2 replies; 8+ messages in thread
From: Greg Lindahl @ 1998-08-27 16:39 UTC (permalink / raw)
  To: beww; +Cc: axp-list

> Sorry, I should have specified that I was running RH 5.0 with egcs 1.0.3a. This
> compiler has compiled all of qt and kde for me with no problems. Running
> qt-1.33 and KDE version 1.0.

Hm, how... interesting. This is exactly how the g++ distributed with
RH 5.0 behaves (core dump at file close), but egcs installs its own
copy of libio which is not broken.

-- g



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

* Re: kdat and Alpha machines
  1998-08-27 16:39 Greg Lindahl
@ 1998-08-27 17:20 ` Wes Bauske
  1998-08-27 19:58   ` Brian E.W. Wood
  1998-08-27 17:26 ` Brian E.W. Wood
  1 sibling, 1 reply; 8+ messages in thread
From: Wes Bauske @ 1998-08-27 17:20 UTC (permalink / raw)
  To: axp-list

Greg Lindahl wrote:
> 
> > Sorry, I should have specified that I was running RH 5.0 with egcs 1.0.3a. This
> > compiler has compiled all of qt and kde for me with no problems. Running
> > qt-1.33 and KDE version 1.0.
> 
> Hm, how... interesting. This is exactly how the g++ distributed with
> RH 5.0 behaves (core dump at file close), but egcs installs its own
> copy of libio which is not broken.
> 

That would imply a bad lib ordering in his link....
Make sure egcs' libs are in the link first.


Wes


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

* Re: kdat and Alpha machines
  1998-08-27 16:39 Greg Lindahl
  1998-08-27 17:20 ` Wes Bauske
@ 1998-08-27 17:26 ` Brian E.W. Wood
  1 sibling, 0 replies; 8+ messages in thread
From: Brian E.W. Wood @ 1998-08-27 17:26 UTC (permalink / raw)
  To: axp-list


On 27-Aug-98 Greg Lindahl wrote:
>> Sorry, I should have specified that I was running RH 5.0 with egcs 1.0.3a.
>> This
>> compiler has compiled all of qt and kde for me with no problems. Running
>> qt-1.33 and KDE version 1.0.
> 
> Hm, how... interesting. This is exactly how the g++ distributed with
> RH 5.0 behaves (core dump at file close), but egcs installs its own
> copy of libio which is not broken.

I checked and the only libio is under /usr/local/egcs so I don't think the
program is finding the wrong lib. egcs was compiled from source with no errors.
All the originally installed gcc RPMs have been removed.

From another post kdat seems to run under RH 5.1. 

What might be a difference between 5.1 and 5.0 with egcs 1.0.3a installed?

I've compiled many c++ programs and have never seen this problem before, I
guess Murphy's Law says the probability of a strange problem like this is
directly proportional to my desire to use a given program. :-(

---
Brian E.W. Wood  beww@intac.com


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

* Re: kdat and Alpha machines
  1998-08-27 17:20 ` Wes Bauske
@ 1998-08-27 19:58   ` Brian E.W. Wood
  0 siblings, 0 replies; 8+ messages in thread
From: Brian E.W. Wood @ 1998-08-27 19:58 UTC (permalink / raw)
  To: axp-list


On 27-Aug-98 Wes Bauske wrote:
> Greg Lindahl wrote:
>> 
>> > Sorry, I should have specified that I was running RH 5.0 with egcs 1.0.3a.
>> > This
>> > compiler has compiled all of qt and kde for me with no problems. Running
>> > qt-1.33 and KDE version 1.0.
>> 
>> Hm, how... interesting. This is exactly how the g++ distributed with
>> RH 5.0 behaves (core dump at file close), but egcs installs its own
>> copy of libio which is not broken.
>> 
> 
> That would imply a bad lib ordering in his link....
> Make sure egcs' libs are in the link first.

OK, it's working now. It was finding /usr/lib/libstdc++.so.2.7.2.8 instead of
the /usr/X11R6/lib/libstdc++.so.2.8.0 that it should have been finding.

Much thanks for all the help here, this probably explains a dew other problems
I have had in the past.

---
Brian E.W. Wood  beww@intac.com


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

end of thread, other threads:[~1998-08-27 19:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-08-27 14:53 kdat and Alpha machines Greg Lindahl
1998-08-27 16:03 ` Brian E.W. Wood
  -- strict thread matches above, loose matches on Subject: below --
1998-08-27 16:39 Greg Lindahl
1998-08-27 17:20 ` Wes Bauske
1998-08-27 19:58   ` Brian E.W. Wood
1998-08-27 17:26 ` Brian E.W. Wood
1998-08-27  4:42 Brian E.W. Wood
1998-08-27 16:36 ` Steve Frampton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox