Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Richard Hadsell <hadsell@blueskystudios.com>
Subject: Re: Unidentified subject!
Date: Sat, 10 Jan 1998 21:42:32 -0500	[thread overview]
Message-ID: <f459290a1dedcebece18d84977870ee4.axp-list@archive.invalid> (raw)

This is a multi-part message in MIME format.

--------------1372500F2847
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Uncle George wrote:
> 
> how about this:
> 
>     strace foo
> 
> where foo.c =
> main(){
>     char * p = (char*) dlopen("ur lib here", RTLD_LAZY);
> }
> does this work ?

Dan is the Linux guy, I'm the compiler guy.  I tried your suggestion,
and here are the results.  Can you interpret the trace and tell me
anything about it?  I'm attaching the trace output separately, in the
hope that the mailer won't wrap the long lines and make it difficult to
interpret.

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

loki1 studio/final 33% cat foo.c
#include <dlfcn.h>
#include <stdio.h>
main(){
    char * p = (char*) dlopen("/usr/net/dlib/studio++/clothMapping.so",
RTLD_LAZY);
    if (p)
        printf("good\n");
    else
        printf("bad\n");
}

loki1 studio/final 34% ecc -v
Reading specs from
/usr/local/lib/gcc-lib/alphaev5-unknown-linux-gnu/egcs-2.90.23/specs
gcc version egcs-2.90.23 980102 (egcs-1.0.1 release)
loki1 studio/final 35% ecc foo.c -o foo -ldl
loki1 studio/final 36% foo
bad
loki1 studio/final 37% strace foo > & foo.trace
loki1 studio/final 38% 

-- 
Dick Hadsell			914-381-8400  Fax: 914-381-9790
Reply-to:			hadsell@blueskystudios.com
Blue Sky | VIFX			http://www.blueskystudios.com
1 South Road, Harrison, NY 10528

--------------1372500F2847
Content-Type: text/plain; charset=us-ascii; name="foo.trace"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="foo.trace"

execve("./foo", ["foo"], [/* 59 vars */]) = 0
brk(0)                                  = 0x120100ae8
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/usr/net/lib/libdl.so.2.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/libdl.so.2.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=7526, ...}) = 0
mmap(0, 4831832856, PROT_READ, 0 /* MAP_??? */, 0, 0) = 0x15555564000
close(3)                                = 0
open("/lib/libdl.so.2.1", O_RDONLY)     = 3
mmap(0, 0, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555566000
munmap(0x15555566000, 8192)             = 0
mmap(0, 8192, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555666000
mprotect(0x1555566a000, 1041664, PROT_NONE) = 0
mmap(0x15555766000, 1041664, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555766000
close(3)                                = 0
open("/usr/net/lib/libc.so.6.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/libc.so.6.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libc.so.6.1", O_RDONLY)      = 3
mmap(0, 0, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x15555566000
munmap(0x15555566000, 8192)             = 0
mmap(0, 8192, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x1555576a000
mprotect(0x15555834000, 1132008, PROT_NONE) = 0
mmap(0x1555586a000, 1132008, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x1555586a000
mmap(0x1555593e000, 1132008, PROT_NONE, 0 /* MAP_??? */, 0, 0) = 0x1555593e000
close(3)                                = 0
personality(PER_LINUX)                  = 0
osf_getsysinfo(0x2d, 0x11ffff158, 0x11ffff1c0, 0, 0x300000000) = 0
osf_setsysinfo(0xe, 0x11ffff158, 0x11ffff1c0, 0, 0x300000000) = 0
getxpid()                               = 916
open("/usr/net/dlib/studio++/clothMapping.so", O_RDONLY) = 3
brk(0)                                  = 0x120100ae8
brk(0x120100b38)                        = 0x120100b38
brk(0x120102000)                        = 0x120102000
mmap(0, 0, PROT_WRITE, 0 /* MAP_??? */, 12884901888, 0) = 0x15555566000
munmap(0x15555566000, 8192)             = 0
mmap(0, 8192, PROT_WRITE, 0 /* MAP_??? */, 12884901888, 0) = 0x1555594a000
mprotect(0x15555960000, 1048152, PROT_NONE) = 0
mmap(0x15555a4a000, 1048152, PROT_NONE, 0 /* MAP_??? */, 12884901888, 0) = 0x15555a4a000
close(3)                                = 0
open("/usr/net/lib/libstdc++.so.2.8", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/libstdc++.so.2.8", O_RDONLY) = 3
mmap(0, 0, PROT_NONE, 0 /* MAP_??? */, 12884901888, 0) = 0x15555566000
munmap(0x15555566000, 8192)             = 0
mmap(0, 8192, PROT_NONE, 0 /* MAP_??? */, 12884901888, 0) = 0x15555a60000
mprotect(0x15555ab6000, 1071176, PROT_NONE) = 0
mmap(0x15555b60000, 1071176, PROT_NONE, 0 /* MAP_??? */, 12884901888, 0) = 0x15555b60000
mmap(0x15555bba000, 1071176, PROT_NONE, 0 /* MAP_??? */, 12884901888, 0) = 0x15555bba000
close(3)                                = 0
open("/usr/net/lib/libm.so.6.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/libm.so.6.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libm.so.6.1", O_RDONLY)      = 3
mmap(0, 0, PROT_NONE, 0 /* MAP_??? */, 12884901888, 0) = 0x15555566000
munmap(0x15555566000, 8192)             = 0
mmap(0, 8192, PROT_NONE, 0 /* MAP_??? */, 12884901888, 0) = 0x15555bbc000
mprotect(0x15555bea000, 1053200, PROT_NONE) = 0
mmap(0x15555cbc000, 1053200, PROT_NONE, 0 /* MAP_??? */, 12884901888, 0) = 0x15555cbc000
close(3)                                = 0
mprotect(0x15555a60000, 352256, PROT_READ|PROT_WRITE) = 0
mprotect(0x15555a60000, 352256, PROT_READ|PROT_EXEC) = 0
mprotect(0x1555594a000, 90112, PROT_READ|PROT_WRITE) = 0
fstat(1, {st_mode=S_IFREG|0664, st_size=3761, ...}) = 0
mmap(0, 4831832456, PROT_READ|PROT_WRITE, 0 /* MAP_??? */, 12884901888, 0) = 0x15555566000
write(1, "bad\n", 4bad
)                    = 4
munmap(0x15555566000, 8192)             = 0
exit(4)                                 = ?

--------------1372500F2847--

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

             reply	other threads:[~1998-01-11  2:42 UTC|newest]

Thread overview: 122+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-01-11  2:42 Richard Hadsell [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-07-12 16:50 Unidentified subject! Calvin Coghlan
2000-07-12 14:21 Hoover, Tony
2000-07-11 18:46 ryan
2000-07-12 13:05 ` Unidentified subject! Rich Payne
2000-01-20 23:36 Waylon
2000-01-21  1:47 ` Unidentified subject! Cornelius Creedon
2000-01-17 22:43 William Miller Jr.
2000-01-17 22:03 ` Unidentified subject! Rich Payne
2000-01-17 23:52   ` Wes Bauske
2000-01-18  1:57     ` William Miller Jr.
2000-01-18  1:43       ` Larry Snyder
2000-01-18  2:14       ` Wes Bauske
2000-01-18  3:39         ` William Miller Jr.
2000-01-18  4:09           ` Wes Bauske
2000-01-18  4:26             ` Larry Snyder
2000-01-18 13:11           ` Rolf Neugebauer
1999-12-10 13:26 Joachim De Beule
1999-12-10 13:40 ` Unidentified subject! Dr. David Gilbert
1999-12-10 21:47   ` Wes Bauske
1999-12-10 22:11     ` Edward Lukacs
1999-11-07  5:19 Leslie F. Donaldson
1999-11-07  5:44 ` Unidentified subject! Wes Bauske
1999-10-31  9:48 Kai Schmidt
1999-10-31 11:53 ` Unidentified subject! Uncle George
1999-10-31 15:41   ` Kai Schmidt
1999-10-31 22:04     ` Uncle George
1999-10-31 16:42   ` Stephen Williams
1999-09-15  9:54 Max Weninger
1999-09-15 12:39 ` Unidentified subject! Julian Reichwald
1999-09-15 14:41 ` Michal Jaegermann
1999-09-16  6:50 ` Maurice Hilarius
1999-08-20 15:46 Hsiao-Pei Lee
1999-08-20 16:16 ` Unidentified subject! Phil Carmody
1999-07-19 18:27 designer seven
1999-07-16 18:30 Durham, Kenneth J
1999-07-19 14:47 ` Unidentified subject! Georg Steffers
1999-03-15  4:37 philip.chandy
1999-03-15 14:06 ` Unidentified subject! Bob McElrath
1999-03-12 16:30 philip.chandy
1999-03-12 16:40 ` Unidentified subject! Jay.Estabrook
1998-09-29 23:10 Alex Ponnath
1998-09-30  5:06 ` Unidentified subject! Craig Oettle
1998-09-30 17:54 ` Joakim Roubert
1998-06-22 17:55 m. capel
1998-06-23  1:29 ` Unidentified subject! Charl Botha
     [not found] <062565B5.00551213.00@uprrsmtp1.notes.up.com>
1998-02-24 16:52 ` Hugo van der Kooij
1998-02-24 15:30 Brett_A._Letner
1998-01-21 12:03 Oleg Gusev
1998-01-11  3:46 Stefan Traby
1998-01-10 23:52 Uncle George
1998-01-10 20:09 Dan Weeks
     [not found] <Pine.LNX.3.96.971208071631.540A-100000@blade.zone.dk>
1997-12-08 15:40 ` Christopher Curtis
     [not found] <Pine.SGI.3.95.971208000353.24452B-100000@jhunix.hcf.jhu.ed>
1997-12-08  7:26 ` dana
1997-12-08  6:22 Brian Lund
1997-12-08  5:10 Amer M Mallah
1997-11-26 17:10 Andrew Smith
1997-12-03  6:35 ` Aspen Systems Technical Support
1997-11-19 21:29 Przemek Klosowski
1997-11-19  5:48 Eric Smith
     [not found] <3.0.3.32.19971118231416.03207164@cyber1.servtech.com>
1997-11-19  4:27 ` Christopher Curtis
1997-11-19  4:29 ` Murray Stokely
1997-11-19  4:14 Jeremy Sieminski
1997-11-14 16:41 Abdallah Hussein Taha
1997-11-14 17:18 ` Michal Jaegermann
1997-09-20 16:41 天行者一號
1997-09-11 17:31 Christopher J. Grayce
1997-08-21  7:23 Stefan Illy
1997-08-21  7:19 Stefan Illy
1997-07-22 22:44 m. capel
1997-07-21  5:12 xplaycd Stephen Williams
1997-07-21 20:16 ` Unidentified subject! James M. Darlack
1997-07-14 18:33 m. capel
1997-07-02 17:34 Sheer Panic
     [not found] <Pine.LNX.3.95.970702102730.13625J-100000@sheerx.eni.net>
1997-07-02 16:56 ` Eric Hilton Jones
1997-07-02 19:57   ` Sheer Panic
1997-06-04  9:23 Mike McCabe
1997-06-02 21:24 m. capel
1997-05-31 20:24 m. capel
1997-05-19  7:24 SubGenius
1997-05-04 16:01 haw4t
1997-04-17 22:49 haw4t
1997-04-09  2:26 Al Potter
1997-03-21  2:25 Alvin Starr
1997-03-08  0:16 Matthias Cramer
1997-02-14 19:35 David Wild
1997-01-01  6:03 Philip R. Docken
     [not found] <1.5.4.16.19961231210011.26f781f6@voyager.net>
1997-01-01  2:10 ` Paul B. Brown
1996-12-31 20:13 Eric Smith
1996-12-30 20:42 Steven N. Hirsch
1996-12-30 19:04 Andy Sparrow
1996-12-30 18:24 Tony Scalzitti
1996-12-30 16:40 Stephen J. Gaudet
     [not found] <Pine.SUN.3.95.961229232526.4125A-100000@fuji.ccs.neu.edu>
1996-12-30 15:04 ` Brian Toscano
     [not found] <Pine.BSI.3.91.961229213038.12919B-100000@shell.monmouth.com>
1996-12-30  4:34 ` Kirk Vogelsang
     [not found] <v03010d02aeecd4f81e0e@[204.178.75.110]>
1996-12-30  2:38 ` Brian Toscano
     [not found] <Pine.BSD/.3.91.961122233510.11896C-100000@nile.intac.com>
1996-11-24 21:06 ` Scott Locklin
     [not found] <Pine.UW2.3.95.961122120524.3305A-100000@cyber1>
1996-11-22 21:53 ` Craig Ruff
1996-11-23  4:40 ` Brian E.W. Wood
1996-11-22 23:10 Eric K. Wong
     [not found] <Pine.LNX.3.95.961121174000.1903F-100000@galaxy.ce.uevora.pt>
1996-11-22 17:15 ` JuGGerNauGhT
1996-11-20 10:06 Martin Ostermann
1996-11-08 20:25 Eric Smith
1996-11-08 18:17 Scott D. Webster
1996-11-07 23:39 Maurice Hilarius
1996-11-07 18:53 牧野 岩
1996-11-07  5:50 Bernd Robl
1996-11-06 18:33 Eric Smith
1996-11-06 17:40 Brian Hampton
1996-11-06 16:42 Randy Perry
1996-11-06 16:40 Matthew Jacob
1996-11-06 16:20 Stephen J. Gaudet
1996-06-14 16:47 ` Igor Kurnikov
1996-11-06 16:17 Maurice Hilarius
1996-11-06 14:44 Randy Perry
1996-11-06 13:31 Stephen J. Gaudet
1996-11-06 15:11 ` D. Steven Daniel
1996-11-06  7:47 Bernd Robl
1996-10-25 14:39 Ei7iG
1996-10-17  0:16 Erik Troan
1996-10-16  6:34 Andrew J. Hutton
1996-10-07  0:49 David Francis
1996-10-04  5:50 Sonic
1996-10-02 23:39 rrussell
1996-10-02 14:07 Pat Villani
1996-10-02  0:19 rrussell
1996-08-13  7:50 David A Rusling
1996-07-19  4:39 Douglas F. Elznic
1996-05-31 23:35 David Mosberger-Tang
1996-03-11 18:11 J.K. Perquin
1996-03-10 14:28 Federico Noferi
1996-03-09 14:58 Ka'plaagh 09-Mar-1996 1501 +0000
1996-03-05 13:23 Stephen J. Gaudet
1996-01-31 15:15 Przemek Klosowski
1996-01-31  3:35 Stephen Thompson
     [not found] <9601310123.AA14980@reef.cs.jcu.edu.au>
1996-01-31  2:58 ` Matthew Geier
read-only archive

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