[rrd-developers] Developing against librrd

David Olsen lude at linuxpimpz.com
Wed Jan 22 21:58:20 MET 2003

Hey all,

I'm trying to write a snmp poller in C that will use RRD as its data storage format, however I've run into nothing but troubles.

If i "fake" and argv[] style array to pass to rrd_create, like so:
    char *args[]={  "./rrdpoll",
                    0 };

and call it like this:

    printf("Making test2.rrd: %d\n", rrd_create(16,&args[1]));

I get a bus error backtracing like so:
(gdb) bt
#0  0x2826dcc0 in strtok_r () from /usr/lib/libc_r.so.4
#1  0x2826dd0d in strtok () from /usr/lib/libc_r.so.4
#2  0x281c4893 in rrd_create (argc=16, argv=0xbfbffa2c) at rrd_create.c:182
#3  0x80495f0 in createrrd (argv=0xbfbffb74) at rrdpoll.c:179
#4  0x80494b8 in main (argc=14, argv=0xbfbffb74) at rrdpoll.c:32
#5  0x8048b5a in _start ()

Anyone have any suggestions?

Best Regards, 

David Olsen
ISPrime, Inc.
866.502.4678 ext. 87
AIM: Dave ISPrime - ICQ: 136633378

Unsubscribe mailto:rrd-developers-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-developers-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-developers
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

More information about the rrd-developers mailing list