Uploaded image for project: 'libdiscid'
  1. libdiscid
  2. LIB-50

Solaris: segfault in mb_disc_load_toc

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: libdiscid 0.5.1, libdiscid master
    • Fix Version/s: libdiscid 0.5.2
    • Labels:
      None
    • Environment:
      Solaris

      Description

      test_core with debug build in gdb:

      Testing discid_get_version_string ... OK
      Testing discid_get_feature_list ... OK
      Testing discid_get_default_device ... OK
      Testing discid_new ... OK
      
      Program received signal SIGSEGV, Segmentation fault.
      [Switching to Thread 1 (LWP 1)]
      mb_disc_load_toc (disc=0x218d8, toc=0xffbff6e0)
          at /vol/fob-vol1/mi05/dewender/git/libdiscid/src/toc.c:62
      62                      if ( !(track->control & DATA_TRACK) ) {
      (gdb) bt
      #0  mb_disc_load_toc (disc=0x218d8, toc=0xffbff6e0)
          at /vol/fob-vol1/mi05/dewender/git/libdiscid/src/toc.c:62
      #1  0xff351414 in mb_disc_read_unportable (disc=0x218d8, 
          device=<value optimized out>, features=1)
          at /vol/fob-vol1/mi05/dewender/git/libdiscid/src/unix.c:89
      #2  0xff351fc0 in discid_read_sparse (d=0x218d8, device=<value optimized out>, 
          features=4294967295)
          at /vol/fob-vol1/mi05/dewender/git/libdiscid/src/disc.c:157
      #3  0x00010fe8 in main (argc=1, argv=0xffbffbac)
          at /vol/fob-vol1/mi05/dewender/git/libdiscid/test/test_core.c:84
      

      The failing code:

      result = discid_read(d, "invalid_device_name");
      

      This must be the test "giving invalid device" which should just return with an error state Oo.

      Has this something to do with device=<value optimized out>?

        Attachments

          Activity

            People

            • Assignee:
              jonnyjd Johannes Dewender
              Reporter:
              jonnyjd Johannes Dewender
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                libdiscid 0.5.2