Hi,
I tried both -O0 and -O1 for both libprf and pfmon, but same segfault with
same gdb-output.
Hmmmm, if you recall the solution please tell me... Otherwise I will get
into the sources tomorrow or so, when I find the time....
Thanks,
Andrej
On Mon, Aug 25, 2008 at 9:23 PM, stephane eranian <[EMAIL PROTECTED]>wrote:
> Andrej,
>
> On Mon, Aug 25, 2008 at 12:31 PM, Andrej van der Zee
> <[EMAIL PROTECTED]> wrote:
> > pfmon.c:1296
> > #2 <signal handler called>
> > #3 0xb7e4c283 in strlen () from /lib/tls/i686/cmov/libc.so.6
> > #4 0xb7f34d61 in pfm_get_max_event_name_len (len=0xbfe2b330) at
> > pfmlib_common.c:889
> > #5 0x0804d880 in pfmon_initialize (argv=0xbfe2b434) at pfmon.c:1391
> > #6 0x0804e60c in main (argc=1, argv=0xbfe2b434) at pfmon.c:1832
> > (gdb) up 4
> > #4 0xb7f34d61 in pfm_get_max_event_name_len (len=0xbfe2b330) at
> > pfmlib_common.c:889
> > 889 l = strlen(pfm_current->get_event_name(i));
> > (gdb) list
> > 884 return PFMLIB_ERR_NOINIT;
> > 885 if (len == NULL)
> > 886 return PFMLIB_ERR_INVAL;
> > 887
> > 888 for(i=0; i < pfm_current->pme_count; i++) {
> > 889 l = strlen(pfm_current->get_event_name(i));
> > 890 if (l > max) max = l;
> > 891
> > 892 num_masks = pfm_num_masks(i);
> > 893 /*
> > (gdb) print i
> > $1 = 68
> > (gdb)
> >
>
> I have seen this problem with strlen() before. I thikn somebody
> reported this error on MIPS.
> Can you try compiling libpfm with a lower optimization level (-O1 or -O0)?
>
--
Andrej van der Zee
2-40-19 Koenji-minami
Suginami-ku, Tokyo
166-0003 JAPAN
Mobile: 0031-(0)80-65251092
Phone/Fax: 0031-(0)3-3318-3155
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
perfmon2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel